Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91332547
Allocate.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
Sun, Nov 10, 02:13
Size
1 KB
Mime Type
text/x-c
Expires
Tue, Nov 12, 02:13 (2 d)
Engine
blob
Format
Raw Data
Handle
22244623
Attached To
rGOOSEFEM GooseFEM
Allocate.hpp
View Options
/* =================================================================================================
(c - GPLv3) T.W.J. de Geus (Tom) | tom@geus.me | www.geus.me | github.com/tdegeus/GooseFEM
================================================================================================= */
#include <GooseFEM/Allocate.h>
#include <pybind11/pybind11.h>
#include <xtensor-python/pyarray.hpp>
namespace
py
=
pybind11
;
void
init_Allocate
(
py
::
module
&
m
)
{
m
.
def
(
"AsTensor"
,
static_cast
<
xt
::
xarray
<
double
>
(
*
)(
const
xt
::
pyarray
<
double
>&
,
const
std
::
vector
<
size_t
>&
)
>
(
&
GooseFEM
::
AsTensor
),
"See :cpp:func:`GooseFEM::AsTensor`."
,
py
::
arg
(
"arg"
),
py
::
arg
(
"shape"
));
m
.
def
(
"AsTensor"
,
static_cast
<
xt
::
xarray
<
double
>
(
*
)(
size_t
,
const
xt
::
pyarray
<
double
>&
,
size_t
)
>
(
&
GooseFEM
::
AsTensor
),
"See :cpp:func:`GooseFEM::AsTensor`."
,
py
::
arg
(
"rank"
),
py
::
arg
(
"arg"
),
py
::
arg
(
"n"
));
m
.
def
(
"as3d"
,
&
GooseFEM
::
as3d
<
xt
::
pyarray
<
double
>>
,
"See :cpp:func:`GooseFEM::as3d`."
,
py
::
arg
(
"arg"
));
}
Event Timeline
Log In to Comment