Build the comparison functions as needed to avoid missing references

This commit is contained in:
Martin Kroeker
2026-02-18 11:43:43 +01:00
committed by GitHub
parent d0a6e36896
commit 7d7a6c6708
+4 -2
View File
@@ -50,6 +50,7 @@ void drand_generate(double *alpha, blasint n)
alpha[i] = (double)rand() / (double)RAND_MAX;
}
#ifdef BUILD_SINGLE
/**
* Find difference between two rectangle matrix
* return norm of differences
@@ -76,7 +77,8 @@ float smatrix_difference(float *a, float *b, blasint cols, blasint rows, blasint
}
return norm/(float)(rows);
}
#endif
#ifdef BUILD_DOUBLE
double dmatrix_difference(double *a, double *b, blasint cols, blasint rows, blasint ld)
{
blasint i = 0;
@@ -99,7 +101,7 @@ double dmatrix_difference(double *a, double *b, blasint cols, blasint rows, blas
}
return norm/(double)(rows);
}
#endif
/**
* Complex conjugate operation for vector
*