|
svMultiPhysics
|
Fixed-size vector types for FE computations, backed by Eigen. More...
#include <Eigen/Core>#include <cstddef>Go to the source code of this file.
Typedefs | |
| template<typename T , std::size_t N> | |
| using | svmp::FE::math::Vector = Eigen::Matrix< T, static_cast< int >(N), 1 > |
| Fixed-size column vector for element-level computations. | |
Fixed-size vector types for FE computations, backed by Eigen.
The FE library standardizes on Eigen for linear algebra. These aliases give element-level code a stable vocabulary type without re-exporting all of Eigen. Note that, unlike the previous in-house implementation, Eigen types are NOT zero-initialized by default construction; use Vector::Zero() where a zeroed value is required.
This is a small, fixed-size (compile-time length) vector for element-level FE kernels in namespace svmp::FE::math. It is distinct from, and not a replacement for, the legacy dynamically sized container in solver/Vector.h: the two differ in namespace, size model (compile-time vs runtime), and memory management, and coexist deliberately.