-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix compilation on macos with latest clang 15 and LAPACK from brew
- Loading branch information
Showing
3 changed files
with
19 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
module vlas | ||
|
||
fn C.LAPACKE_dlange(norm &char, m int, n int, a &f64, lda int, work &f64) f64 | ||
import vsl.vlas.internal.blas | ||
|
||
// double LAPACKE_dlange( int matrix_order, char norm, lapack_int m, | ||
// lapack_int n, const double* a, lapack_int lda ); | ||
|
||
// double LAPACKE_dlange_work( int matrix_order, char norm, lapack_int m, | ||
// lapack_int n, const double* a, lapack_int lda, double* work ); | ||
|
||
fn C.LAPACKE_dlange_work(matrix_order blas.MemoryLayout, norm char, m int, n int, const_a &f64, lda int, work &f64) f64 | ||
|
||
pub fn dlange(norm rune, m int, n int, a []f64, lda int, work []f64) f64 { | ||
return unsafe { C.LAPACKE_dlange(&char(norm.str().str), m, n, &a[0], lda, &work[0]) } | ||
return unsafe { C.LAPACKE_dlange_work(.row_major, char(norm), m, n, &a[0], lda, &work[0]) } | ||
} |