File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,10 @@ fn test_matrix_real<T: Scalar>() -> Array2<T::Real> {
87
87
}
88
88
89
89
fn test_matrix_real_t < T : Scalar > ( ) -> Array2 < T :: Real > {
90
- test_matrix_real :: < T > ( ) . t ( ) . permuted_axes ( [ 1 , 0 ] ) . to_owned ( )
90
+ let orig = test_matrix_real :: < T > ( ) ;
91
+ let mut out = Array2 :: zeros ( orig. raw_dim ( ) . f ( ) ) ;
92
+ out. assign ( & orig) ;
93
+ out
91
94
}
92
95
93
96
fn answer_eig_real < T : Scalar > ( ) -> Array1 < T :: Complex > {
@@ -154,10 +157,10 @@ fn test_matrix_complex<T: Scalar>() -> Array2<T::Complex> {
154
157
}
155
158
156
159
fn test_matrix_complex_t < T : Scalar > ( ) -> Array2 < T :: Complex > {
157
- test_matrix_complex :: < T > ( )
158
- . t ( )
159
- . permuted_axes ( [ 1 , 0 ] )
160
- . to_owned ( )
160
+ let orig = test_matrix_complex :: < T > ( ) ;
161
+ let mut out = Array2 :: zeros ( orig . raw_dim ( ) . f ( ) ) ;
162
+ out . assign ( & orig ) ;
163
+ out
161
164
}
162
165
163
166
fn answer_eig_complex < T : Scalar > ( ) -> Array1 < T :: Complex > {
You can’t perform that action at this time.
0 commit comments