|
template<class T , class R > |
void | asTensor (const T &arg, R &ret) |
| "Broadcast" a scalar stored in an array (e.g. More...
|
|
template<class T , class S > |
auto | AsTensor (const T &arg, const S &shape) |
| "Broadcast" a scalar stored in an array (e.g. More...
|
|
template<class T , class I , size_t L> |
auto | AsTensor (const T &arg, const I(&shape)[L]) |
| "Broadcast" a scalar stored in an array (e.g. More...
|
|
template<size_t rank, class T > |
auto | AsTensor (const T &arg, size_t n) |
| "Broadcast" a scalar stored in an array (e.g. More...
|
|
template<class T > |
auto | AsTensor (size_t rank, const T &arg, size_t n) |
| "Broadcast" a scalar stored in an array (e.g. More...
|
|
template<class T > |
T | as3d (const T &arg) |
| Zero-pad columns to a matrix until is that shape [m, 3] . More...
|
|
template<class T > |
bool | is_unique (const T &arg) |
| Returns true is a list is unique (has not duplicate items). More...
|
|
std::string | version () |
| Return version string, e.g. More...
|
|
std::vector< std::string > | version_dependencies () |
| Return versions of this library and of all of its dependencies. More...
|
|
Toolbox to perform finite element computations.
template<class T , class I , size_t L>
auto GooseFEM::AsTensor |
( |
const T & |
arg, |
|
|
const I(&) |
shape[L] |
|
) |
| |
|
inline |
"Broadcast" a scalar stored in an array (e.g.
[r, s]
) to the same scalar of all tensor components of a tensor of certain rank (e.g. for rank 2: [r, s, i, j]
).
- Parameters
-
arg | An array with scalars. |
shape | The shape of the added tensor dimensions (e.g.: [i, j] ). |
- Returns
- Corresponding array with tensors.
Definition at line 176 of file Allocate.h.
template<class T , class S >
auto GooseFEM::AsTensor |
( |
const T & |
arg, |
|
|
const S & |
shape |
|
) |
| |
|
inline |
"Broadcast" a scalar stored in an array (e.g.
[r, s]
) to the same scalar of all tensor components of a tensor of certain rank (e.g. for rank 2: [r, s, i, j]
).
- Parameters
-
arg | An array with scalars. |
shape | The shape of the added tensor dimensions (e.g.: [i, j] ). |
- Returns
- Corresponding array with tensors.
Definition at line 167 of file Allocate.h.
template<class T , class R >
void GooseFEM::asTensor |
( |
const T & |
arg, |
|
|
R & |
ret |
|
) |
| |
|
inline |
"Broadcast" a scalar stored in an array (e.g.
[r, s]
) to the same scalar of all tensor components of a tensor of certain rank (e.g. for rank 2: [r, s, i, j]
).
- Parameters
-
arg | An array with scalars. |
ret | Corresponding array with tensors. |
Definition at line 153 of file Allocate.h.
template<size_t rank, class T >
auto GooseFEM::AsTensor |
( |
const T & |
arg, |
|
|
size_t |
n |
|
) |
| |
|
inline |
"Broadcast" a scalar stored in an array (e.g.
[r, s]
) to the same scalar of all tensor components of a tensor of certain rank (e.g. for rank 2: [r, s, n, n]
).
- Template Parameters
-
rank | Number of tensor dimensions (number of dimensions to add to the input). |
- Parameters
-
arg | An array with scalars. |
n | The shape along each of the added dimensions. |
- Returns
- Corresponding array with tensors.
Definition at line 192 of file Allocate.h.
template<class T >
auto GooseFEM::AsTensor |
( |
size_t |
rank, |
|
|
const T & |
arg, |
|
|
size_t |
n |
|
) |
| |
|
inline |
"Broadcast" a scalar stored in an array (e.g.
[r, s]
) to the same scalar of all tensor components of a tensor of certain rank (e.g. for rank 2: [r, s, n, n]
).
- Parameters
-
rank | Number of tensor dimensions (number of dimensions to add to the input). |
arg | An array with scalars. |
n | The shape along each of the added dimensions. |
- Returns
- Corresponding array with tensors.
Definition at line 209 of file Allocate.h.
std::vector< std::string > GooseFEM::version_dependencies |
( |
| ) |
|
|
inline |
Return versions of this library and of all of its dependencies.
The output is a list of strings, e.g.::
"goosefem=0.7.0",
"xtensor=0.20.1"
...
- Returns
- List of strings.
Definition at line 70 of file version.h.