Skip to content

Commit b639675

Browse files
committed
Fix scnrm2_ return type
1 parent b41f00c commit b639675

File tree

1 file changed

+1
-1
lines changed
  • source/source_base/module_container/base/third_party

1 file changed

+1
-1
lines changed

source/source_base/module_container/base/third_party/blas.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ double ddot_(const int *N, const double *x, const int *incx, const double *y, co
4343
// Peize Lin add ?nrm2 2018-06-12, to compute out = ||x||_2 = \sqrt{ \sum_i x_i**2 }
4444
float snrm2_( const int *n, const float *x, const int *incx );
4545
double dnrm2_( const int *n, const double *x, const int *incx );
46-
double scnrm2_( const int *n, const std::complex<float> *x, const int *incx );
46+
float scnrm2_( const int *n, const std::complex<float> *x, const int *incx );
4747
double dznrm2_( const int *n, const std::complex<double> *x, const int *incx );
4848

4949
// level 2: matrix-std::vector operations, O(n^2) data and O(n^2) work.

0 commit comments

Comments
 (0)