@@ -624,9 +624,10 @@ use crate::traits::{
624624 fp:: { FPMatrix , FPVector } ,
625625 general:: Algorithm ,
626626 math:: { InnerProduct , LinearOp , MatrixProduct , Norm , Normed , Vector } ,
627- matrix:: { Form , LinearAlgebra , MatrixTrait , SolveKind , PQLU , QR , SVD , WAZD } ,
627+ matrix:: { Form , LinearAlgebra , MatrixTrait , SolveKind , PQLU , QR , SVD , WAZD , UPLO } ,
628628 mutable:: MutMatrix ,
629629} ;
630+ #[ allow( unused_imports) ]
630631use crate :: util:: {
631632 low_level:: { copy_vec_ptr, swap_vec_ptr} ,
632633 non_macro:: { cbind, eye, rbind, zeros} ,
@@ -3538,6 +3539,7 @@ impl LinearAlgebra<Matrix> for Matrix {
35383539 Some ( dgrf) => match dgrf. status {
35393540 LAPACK_STATUS :: Singular => panic ! ( "Try solve for Singluar matrix" ) ,
35403541 LAPACK_STATUS :: NonSingular => {
3542+ let b = b. to_vec ( ) ;
35413543 lapack_dgetrs ( & dgrf, & ( b. into ( ) ) ) . unwrap ( ) . into ( )
35423544 }
35433545 } ,
@@ -4238,13 +4240,6 @@ pub enum POSITIVE_STATUS {
42384240 Failed ( i32 ) ,
42394241}
42404242
4241- #[ allow( non_camel_case_types) ]
4242- #[ derive( Debug , Copy , Clone , Eq , PartialEq ) ]
4243- pub enum UPLO {
4244- Upper ,
4245- Lower ,
4246- }
4247-
42484243/// Temporary data structure from `dgetrf`
42494244#[ derive( Debug , Clone ) ]
42504245pub struct DGETRF {
0 commit comments