pub fn cbind(m1: Matrix, m2: Matrix) -> Result<Matrix>
Expand description
R like cbind - concatenate two matrix by column 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, Col);
let b = matrix!(5;8;1, 2, 2, Col);
let c = matrix!(1;8;1, 2, 4, Col);
assert_eq!(cbind(a,b)?, c);
Ok(())
}