Macro nalgebra_macros::dvector [−][src]
dvector!() { /* proc-macro */ }
Expand description
Construct a dynamic column vector directly from data.
Note: Requires the macro
feature to be enabled (enabled by default).
The syntax is exactly the same as for vector!
, but instead of producing instances of
SVector
, it produces instances of DVector
. At the moment it is not usable
in const fn
contexts.
use nalgebra::dvector; // Produces a DVector<_> let v = dvector![1, 2, 3];