File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -17,22 +17,22 @@ macro_rules! impl_rcond_real {
17
17
let mut rcond = Self :: Real :: zero( ) ;
18
18
let mut info = 0 ;
19
19
20
- let mut work = unsafe { vec_uninit( 4 * n as usize ) } ;
20
+ let mut work: Vec < Self > = unsafe { vec_uninit( 4 * n as usize ) } ;
21
21
let mut iwork = unsafe { vec_uninit( n as usize ) } ;
22
22
let norm_type = match l {
23
23
MatrixLayout :: C { .. } => NormType :: Infinity ,
24
24
MatrixLayout :: F { .. } => NormType :: One ,
25
- } as u8 ;
25
+ } ;
26
26
unsafe {
27
27
$gecon(
28
- norm_type,
29
- n,
30
- a ,
31
- l. lda( ) ,
32
- anorm,
28
+ norm_type. as_ptr ( ) ,
29
+ & n,
30
+ AsPtr :: as_ptr ( a ) ,
31
+ & l. lda( ) ,
32
+ & anorm,
33
33
& mut rcond,
34
- & mut work,
35
- & mut iwork,
34
+ AsPtr :: as_mut_ptr ( & mut work) ,
35
+ iwork. as_mut_ptr ( ) ,
36
36
& mut info,
37
37
)
38
38
} ;
@@ -44,8 +44,8 @@ macro_rules! impl_rcond_real {
44
44
} ;
45
45
}
46
46
47
- impl_rcond_real ! ( f32 , lapack :: sgecon ) ;
48
- impl_rcond_real ! ( f64 , lapack :: dgecon ) ;
47
+ impl_rcond_real ! ( f32 , lapack_sys :: sgecon_ ) ;
48
+ impl_rcond_real ! ( f64 , lapack_sys :: dgecon_ ) ;
49
49
50
50
macro_rules! impl_rcond_complex {
51
51
( $scalar: ty, $gecon: path) => {
You can’t perform that action at this time.
0 commit comments