File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,11 @@ impl UPLO {
141
141
UPLO :: Lower => UPLO :: Upper ,
142
142
}
143
143
}
144
+
145
+ /// To use Fortran LAPACK API in lapack-sys crate
146
+ pub fn as_ptr ( & self ) -> * const u8 {
147
+ self as * const UPLO as * const u8
148
+ }
144
149
}
145
150
146
151
#[ derive( Debug , Clone , Copy ) ]
@@ -151,6 +156,13 @@ pub enum Transpose {
151
156
Hermite = b'C' ,
152
157
}
153
158
159
+ impl Transpose {
160
+ /// To use Fortran LAPACK API in lapack-sys crate
161
+ pub fn as_ptr ( & self ) -> * const u8 {
162
+ self as * const Transpose as * const u8
163
+ }
164
+ }
165
+
154
166
#[ derive( Debug , Clone , Copy ) ]
155
167
#[ repr( u8 ) ]
156
168
pub enum NormType {
@@ -167,6 +179,11 @@ impl NormType {
167
179
NormType :: Frobenius => NormType :: Frobenius ,
168
180
}
169
181
}
182
+
183
+ /// To use Fortran LAPACK API in lapack-sys crate
184
+ pub fn as_ptr ( & self ) -> * const u8 {
185
+ self as * const NormType as * const u8
186
+ }
170
187
}
171
188
172
189
/// Create a vector without initialization
You can’t perform that action at this time.
0 commit comments