Macro mathru::vector

source ·
macro_rules! vector {
    ($( $x: expr ),*) => { ... };
    ($( $x: expr );*) => { ... };
}
Expand description

Macro to construct vectors

use mathru::{vector, algebra::linear::vector::Vector};

// Construct a column vector of f64
let v1: Vector<f64> = vector![1.0; 2.0; 3.0];
// Construct a row vector of f32
let v2: Vector<f32> = vector![2.0, 3.0, 4.0];