[−][src]Trait peroxide::structure::matrix::LinearOps
Common trait for Matrix & Vector
Required methods
Loading content...Implementors
impl LinearOps for Matrix
[src]
fn to_matrix(&self) -> Self
[src]
Just clone
fn transpose(&self) -> Self
[src]
Transpose
Examples
extern crate peroxide; use peroxide::*; let a = matrix(vec![1,2,3,4], 2, 2, Row); println!("{}", a); // [[1,3],[2,4]]
fn t(&self) -> Self
[src]
R-like transpose function
Examples
extern crate peroxide; use peroxide::*; let a = matrix!(1;4;1, 2, 2, Row); assert_eq!(a.transpose(), a.t());