Add log and log's unittest.

This commit is contained in:
sunwen
2023-04-23 11:44:24 +08:00
parent 5e85d0f361
commit 8cec1440f2
4 changed files with 33 additions and 2 deletions

View File

@@ -144,7 +144,7 @@ namespace Aurora {
return result;
}
double *malloc(int size, bool complex) {
double *malloc(size_t size, bool complex) {
if (!complex) return (double *) mkl_malloc(size * sizeof(double), 64);
return (double *) mkl_malloc(size * sizeof(std::complex<double>), 64);
}