Commit 772dafa 1 parent 8088bde commit 772dafa Copy full SHA for 772dafa
File tree 1 file changed +10
-8
lines changed
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -238,14 +238,6 @@ impl<T: FloatLike> SquareMatrix<T> {
238
238
} )
239
239
}
240
240
241
- pub fn get_dim ( & self ) -> usize {
242
- self . dim
243
- }
244
-
245
- pub fn get_raw_data ( self ) -> SmallVec < [ T ; 36 ] > {
246
- self . data
247
- }
248
-
249
241
fn new_identity ( dim : usize ) -> Self {
250
242
let mut res = Self :: new_zeros ( dim) ;
251
243
for i in 0 ..dim {
@@ -269,6 +261,16 @@ impl<T: FloatLike> SquareMatrix<T> {
269
261
}
270
262
}
271
263
264
+ impl < T > SquareMatrix < T > {
265
+ pub fn get_dim ( & self ) -> usize {
266
+ self . dim
267
+ }
268
+
269
+ pub fn get_raw_data ( self ) -> SmallVec < [ T ; 36 ] > {
270
+ self . data
271
+ }
272
+ }
273
+
272
274
impl SquareMatrix < f128 > {
273
275
pub fn downcast ( & self ) -> SquareMatrix < f64 > {
274
276
SquareMatrix {
You can’t perform that action at this time.
0 commit comments