17 using SmallMatrix = Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic,
33 template <
typename Derived>
34 void assign(
const Eigen::MatrixBase<Derived> &matrix)
36 resize(matrix.rows(), matrix.cols());
37 visit([&](
auto &H) { H = matrix; });
44 return std::forward<F>(f)(
small_);
45 return std::forward<F>(f)(
large_);
52 return std::forward<F>(f)(
small_);
53 return std::forward<F>(f)(
large_);
Reusable element matrix with inline storage for small blocks and a dynamic fallback for high-order el...
void assign(const Eigen::MatrixBase< Derived > &matrix)
decltype(auto) visit(F &&f) const
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor, SmallDofs, SmallDofs > SmallMatrix
Eigen::Index rows() const
void resize(const Eigen::Index rows, const Eigen::Index cols)
Eigen::Index cols() const
decltype(auto) visit(F &&f)
static constexpr int SmallDofs