Macro nalgebra::dvector

source ·
dvector!() { /* proc-macro */ }
Expand description

Construct a dynamic column vector directly from data.

Note: Requires the macros 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.

Example

use nalgebra::dvector;

// Produces a DVector<_>
let v = dvector![1, 2, 3];