Function peroxide::structure::matrix::combine

source ·
pub fn combine(m1: Matrix, m2: Matrix, m3: Matrix, m4: Matrix) -> Matrix
Expand description

Combine separated matrix to one matrix

Examples

extern crate peroxide;
use peroxide::*;

let a = matrix!(1;16;1, 4, 4, Row);
let (m1, m2, m3, m4) = a.block();
let m = combine(m1,m2,m3,m4);
assert_eq!(m, a);

let b = matrix!(1;16;1, 4, 4, Col);
let (n1, n2, n3, n4) = b.block();
let n = combine(n1,n2,n3,n4);
assert_eq!(n, b);