Page MenuHomec4science

MatrixDiagonalPartitioned.hpp
No OneTemporary

File Metadata

Created
Fri, Jul 30, 06:00

MatrixDiagonalPartitioned.hpp

/* =================================================================================================
(c - GPLv3) T.W.J. de Geus (Tom) | tom@geus.me | www.geus.me | github.com/tdegeus/GooseFEM
================================================================================================= */
#include <GooseFEM/MatrixDiagonalPartitioned.h>
#include <pybind11/pybind11.h>
#include <pyxtensor/pyxtensor.hpp>
namespace py = pybind11;
void init_MatrixDiagonalPartitioned(py::module& m)
{
py::class_<GooseFEM::MatrixDiagonalPartitioned, GooseFEM::MatrixDiagonal>(m, "MatrixDiagonalPartitioned")
.def(py::init<
const xt::xtensor<size_t, 2>&,
const xt::xtensor<size_t, 2>&,
const xt::xtensor<size_t, 1>&>(),
"Diagonal, partitioned, matrix",
py::arg("conn"),
py::arg("dofs"),
py::arg("iip"))
.def("nnu",
&GooseFEM::MatrixDiagonalPartitioned::nnu,
"See :cpp:func:`GooseFEM::MatrixDiagonalPartitioned::nnu`.")
.def("nnp",
&GooseFEM::MatrixDiagonalPartitioned::nnp,
"See :cpp:func:`GooseFEM::MatrixDiagonalPartitioned::nnp`.")
.def("iiu",
&GooseFEM::MatrixDiagonalPartitioned::iiu,
"See :cpp:func:`GooseFEM::MatrixDiagonalPartitioned::iiu`.")
.def("iip",
&GooseFEM::MatrixDiagonalPartitioned::iip,
"See :cpp:func:`GooseFEM::MatrixDiagonalPartitioned::iip`.")
.def("Dot_u",
py::overload_cast<const xt::xtensor<double, 1>&, const xt::xtensor<double, 1>&>(
&GooseFEM::MatrixDiagonalPartitioned::Dot_u, py::const_),
"See :cpp:func:`GooseFEM::MatrixDiagonalPartitioned::Dot_u`.",
py::arg("x_u"),
py::arg("x_p"))
.def("Dot_p",
py::overload_cast<const xt::xtensor<double, 1>&, const xt::xtensor<double, 1>&>(
&GooseFEM::MatrixDiagonalPartitioned::Dot_p, py::const_),
"See :cpp:func:`GooseFEM::MatrixDiagonalPartitioned::Dot_p`.",
py::arg("x_u"),
py::arg("x_p"))
.def("Solve_u",
py::overload_cast<const xt::xtensor<double, 1>&, const xt::xtensor<double, 1>&>(
&GooseFEM::MatrixDiagonalPartitioned::Solve_u),
"See :cpp:func:`GooseFEM::MatrixDiagonalPartitioned::Solve_u`.",
py::arg("b_u"),
py::arg("x_p"))
.def("Reaction",
py::overload_cast<const xt::xtensor<double, 1>&, const xt::xtensor<double, 1>&>(
&GooseFEM::MatrixDiagonalPartitioned::Reaction, py::const_),
"See :cpp:func:`GooseFEM::MatrixDiagonalPartitioned::Reaction`.",
py::arg("x"),
py::arg("b"))
.def("Reaction",
py::overload_cast<const xt::xtensor<double, 2>&, const xt::xtensor<double, 2>&>(
&GooseFEM::MatrixDiagonalPartitioned::Reaction, py::const_),
"See :cpp:func:`GooseFEM::MatrixDiagonalPartitioned::Reaction`.",
py::arg("x"),
py::arg("b"))
.def("Reaction_p",
py::overload_cast<const xt::xtensor<double, 1>&, const xt::xtensor<double, 1>&>(
&GooseFEM::MatrixDiagonalPartitioned::Reaction_p, py::const_),
"See :cpp:func:`GooseFEM::MatrixDiagonalPartitioned::Reaction_p`.",
py::arg("x_u"),
py::arg("x_p"))
.def("__repr__", [](const GooseFEM::MatrixDiagonalPartitioned&) {
return "<GooseFEM.MatrixDiagonalPartitioned>";
});
}

Event Timeline