Skip to content

Commit ddc3bb9

Browse files
committed
Add moc of SVD
1 parent a17ec9d commit ddc3bb9

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

src/impl2/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11

22
pub mod opnorm;
33
pub mod qr;
4+
pub mod svd;
5+
46
pub use self::opnorm::*;
57
pub use self::qr::*;
8+
pub use self::svd::*;
69

710
pub trait LapackScalar: OperatorNorm_ + QR_ {}
811
impl<A> LapackScalar for A where A: OperatorNorm_ + QR_ {}

src/impl2/svd.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
//! Implement Operator norms for matrices
2+
3+
use lapack::c;
4+
5+
use types::*;
6+
use error::*;
7+
use layout::Layout;
8+
9+
#[repr(u8)]
10+
pub enum FlagSVD {
11+
All = b'A',
12+
OverWrite = b'O',
13+
Separately = b'S',
14+
No = b'N',
15+
}
16+
17+
pub trait SVD_: Sized {
18+
fn svd(Layout, u_flag: FlagSVD, v_flag: FlagSVD, a: &[Self]) -> Result<()>;
19+
}

0 commit comments

Comments
 (0)