File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -54,22 +54,22 @@ macro_rules! impl_rcond_complex {
54
54
let ( n, _) = l. size( ) ;
55
55
let mut rcond = Self :: Real :: zero( ) ;
56
56
let mut info = 0 ;
57
- let mut work = unsafe { vec_uninit( 2 * n as usize ) } ;
58
- let mut rwork = unsafe { vec_uninit( 2 * n as usize ) } ;
57
+ let mut work: Vec < Self > = unsafe { vec_uninit( 2 * n as usize ) } ;
58
+ let mut rwork: Vec < Self :: Real > = unsafe { vec_uninit( 2 * n as usize ) } ;
59
59
let norm_type = match l {
60
60
MatrixLayout :: C { .. } => NormType :: Infinity ,
61
61
MatrixLayout :: F { .. } => NormType :: One ,
62
- } as u8 ;
62
+ } ;
63
63
unsafe {
64
64
$gecon(
65
- norm_type,
66
- n,
67
- a ,
68
- l. lda( ) ,
69
- anorm,
65
+ norm_type. as_ptr ( ) ,
66
+ & n,
67
+ AsPtr :: as_ptr ( a ) ,
68
+ & l. lda( ) ,
69
+ & anorm,
70
70
& mut rcond,
71
- & mut work,
72
- & mut rwork,
71
+ AsPtr :: as_mut_ptr ( & mut work) ,
72
+ AsPtr :: as_mut_ptr ( & mut rwork) ,
73
73
& mut info,
74
74
)
75
75
} ;
@@ -81,5 +81,5 @@ macro_rules! impl_rcond_complex {
81
81
} ;
82
82
}
83
83
84
- impl_rcond_complex ! ( c32, lapack :: cgecon ) ;
85
- impl_rcond_complex ! ( c64, lapack :: zgecon ) ;
84
+ impl_rcond_complex ! ( c32, lapack_sys :: cgecon_ ) ;
85
+ impl_rcond_complex ! ( c64, lapack_sys :: zgecon_ ) ;
You can’t perform that action at this time.
0 commit comments