Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78774717
MatrixDiagonalPartitioned.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Aug 22, 22:18
Size
2 KB
Mime Type
text/x-c
Expires
Sat, Aug 24, 22:18 (2 d)
Engine
blob
Format
Raw Data
Handle
20097199
Attached To
rGOOSEFEM GooseFEM
MatrixDiagonalPartitioned.hpp
View Options
/**
\file
\copyright Copyright 2017. Tom de Geus. All rights reserved.
\license This project is released under the GNU Public License (GPLv3).
*/
#include <GooseFEM/MatrixDiagonalPartitioned.h>
#include <pybind11/pybind11.h>
#include <xtensor-python/pyarray.hpp>
#include <xtensor-python/pytensor.hpp>
namespace
py
=
pybind11
;
void
init_MatrixDiagonalPartitioned
(
py
::
module
&
m
)
{
py
::
class_
<
GooseFEM
::
MatrixDiagonalPartitioned
,
GooseFEM
::
MatrixDiagonal
>
(
m
,
"MatrixDiagonalPartitioned"
)
.
def
(
py
::
init
<
const
xt
::
pytensor
<
size_t
,
2
>&
,
const
xt
::
pytensor
<
size_t
,
2
>&
,
const
xt
::
pytensor
<
size_t
,
1
>&>
(),
"See :cpp:class:`GooseFEM::MatrixDiagonalPartitioned`."
,
py
::
arg
(
"conn"
),
py
::
arg
(
"dofs"
),
py
::
arg
(
"iip"
))
.
def_property_readonly
(
"nnu"
,
&
GooseFEM
::
MatrixDiagonalPartitioned
::
nnu
)
.
def_property_readonly
(
"nnp"
,
&
GooseFEM
::
MatrixDiagonalPartitioned
::
nnp
)
.
def_property_readonly
(
"iiu"
,
&
GooseFEM
::
MatrixDiagonalPartitioned
::
iiu
)
.
def_property_readonly
(
"iip"
,
&
GooseFEM
::
MatrixDiagonalPartitioned
::
iip
)
.
def
(
"Dot_u"
,
py
::
overload_cast
<
const
xt
::
pytensor
<
double
,
1
>&
,
const
xt
::
pytensor
<
double
,
1
>&>
(
&
GooseFEM
::
MatrixDiagonalPartitioned
::
Dot_u
,
py
::
const_
),
py
::
arg
(
"x_u"
),
py
::
arg
(
"x_p"
))
.
def
(
"Dot_p"
,
py
::
overload_cast
<
const
xt
::
pytensor
<
double
,
1
>&
,
const
xt
::
pytensor
<
double
,
1
>&>
(
&
GooseFEM
::
MatrixDiagonalPartitioned
::
Dot_p
,
py
::
const_
),
py
::
arg
(
"x_u"
),
py
::
arg
(
"x_p"
))
.
def
(
"Solve_u"
,
py
::
overload_cast
<
const
xt
::
pytensor
<
double
,
1
>&
,
const
xt
::
pytensor
<
double
,
1
>&>
(
&
GooseFEM
::
MatrixDiagonalPartitioned
::
Solve_u
),
py
::
arg
(
"b_u"
),
py
::
arg
(
"x_p"
))
.
def
(
"Reaction"
,
py
::
overload_cast
<
const
xt
::
pytensor
<
double
,
1
>&
,
const
xt
::
pytensor
<
double
,
1
>&>
(
&
GooseFEM
::
MatrixDiagonalPartitioned
::
Reaction
,
py
::
const_
),
py
::
arg
(
"x"
),
py
::
arg
(
"b"
))
.
def
(
"Reaction"
,
py
::
overload_cast
<
const
xt
::
pytensor
<
double
,
2
>&
,
const
xt
::
pytensor
<
double
,
2
>&>
(
&
GooseFEM
::
MatrixDiagonalPartitioned
::
Reaction
,
py
::
const_
),
py
::
arg
(
"x"
),
py
::
arg
(
"b"
))
.
def
(
"Reaction_p"
,
py
::
overload_cast
<
const
xt
::
pytensor
<
double
,
1
>&
,
const
xt
::
pytensor
<
double
,
1
>&>
(
&
GooseFEM
::
MatrixDiagonalPartitioned
::
Reaction_p
,
py
::
const_
),
py
::
arg
(
"x_u"
),
py
::
arg
(
"x_p"
))
.
def
(
"__repr__"
,
[](
const
GooseFEM
::
MatrixDiagonalPartitioned
&
)
{
return
"<GooseFEM.MatrixDiagonalPartitioned>"
;
});
}
Event Timeline
Log In to Comment