Vectors of small dimension

In spaces of small dimension, such as \(\mathbb{R}^d\) with \(d = 1,2,3\), vector calculus is performed with the class SmallVector. In particular, vertices of meshes are systematically considered as points of \(\mathbb{R}^3\), even for 1D or 2D meshes, and are modelled by objects of type SmallVector<double,3>.

template<typename T, std::size_t D>
class SmallVector

Model for vectors of small dimension.

The class SmallVector<T,D> models D-dimensional vectors with coefficients of type T.