Skip to content

Commit 7fe8bd8

Browse files
authored
build comparison functions for complex cases too
1 parent 7d431f3 commit 7fe8bd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utest/test_extensions/common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void drand_generate(double *alpha, blasint n)
5050
alpha[i] = (double)rand() / (double)RAND_MAX;
5151
}
5252

53-
#ifdef BUILD_SINGLE
53+
#if defined(BUILD_SINGLE) || defined(BUILD_COMPLEX)
5454
/**
5555
* Find difference between two rectangle matrix
5656
* return norm of differences
@@ -78,7 +78,7 @@ float smatrix_difference(float *a, float *b, blasint cols, blasint rows, blasint
7878
return norm/(float)(rows);
7979
}
8080
#endif
81-
#ifdef BUILD_DOUBLE
81+
#if defined(BUILD_DOUBLE) || defined(BUILD_COMPLEX16)
8282
double dmatrix_difference(double *a, double *b, blasint cols, blasint rows, blasint ld)
8383
{
8484
blasint i = 0;

0 commit comments

Comments
 (0)