4#include <dune/python/pybind11/eigen.h>
5#include <dune/python/pybind11/operators.h>
6#include <dune/python/pybind11/pybind11.h>
11 namespace py = pybind11;
12 using namespace pybind11::literals;
15 auto utils = pybind11::module::import(
"ikarus.utils");
33 [](Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, 0, 3, 3> mat,
bool isStrain =
true) {
36 py::arg(
"matrix"), py::arg(
"isStrain") =
true);
53 [](Eigen::Matrix<double, Eigen::Dynamic, 1, 0, 6, 1> vec,
bool isStrain =
true) {
56 py::arg(
"vector"), py::arg(
"isStrain") =
true);
Helper for the Eigen::Tensor types.
void addBindingsToUtils()
Definition: utils.hh:10
constexpr Eigen::Index toVoigt(Eigen::Index i, Eigen::Index j) noexcept
Converts 2D indices to Voigt notation index.
Definition: tensorutils.hh:166
auto fromVoigt(const Eigen::Matrix< ST, size, 1, Options, maxSize, 1 > &EVoigt, bool isStrain=true)
Converts a vector given in Voigt notation to a matrix.
Definition: tensorutils.hh:271
Definition: assemblermanipulatorbuildingblocks.hh:22