pub fn rbind(m1: Matrix, m2: Matrix) -> Result<Matrix>
Expand description
R like rbind - concatenate two matrix by row direction
§Examples
#[macro_use]
extern crate peroxide;
use peroxide::fuga::*;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let a = matrix!(1;4;1, 2, 2, Row);
let b = matrix!(5;8;1, 2, 2, Row);
let c = matrix!(1;8;1, 4, 2, Row);
assert_eq!(rbind(a,b)?, c);
Ok(())
}