Skip to main content

bvector

Macro bvector 

Source
macro_rules! bvector {
    ($($x:expr),+ $(,)?) => { ... };
}
Expand description

Macro to construct a BVector with compile-time dimension inferred from the number of elements provided.

Example:

  • let v = bvector![1.0, 2.0, 3.0]; // BVector<f64, 3>
  • let v = bvector![2.0, -1.5]; // BVector<f64, 2>