Macro faer_core::col

source ·
macro_rules! col {
    () => { ... };
    ($($v:expr),+ $(,)?) => { ... };
}
Expand description

Creates a Col containing the arguments.

use faer_core::col;

let col_vec = col![3.0, 5.0, 7.0, 9.0];

assert_eq!(col_vec.read(0), 3.0);
assert_eq!(col_vec.read(1), 5.0);
assert_eq!(col_vec.read(2), 7.0);
assert_eq!(col_vec.read(3), 9.0);