Constant (in space) value which can be attached to a Form.
More...
#include <Constant.h>
|
|
using | value_type = T |
| | Field type.
|
|
|
std::vector< value_type > | value |
| | Values, stored as a row-major flattened array.
|
|
std::vector< std::size_t > | shape |
| | Shape.
|
Constant (in space) value which can be attached to a Form.
Constants may be scalar (rank 0), vector (rank 1), or tensor-valued.
- Template Parameters
-
◆ Constant() [1/3]
Create a rank-0 (scalar-valued) constant.
- Parameters
-
| [in] | c | Value of the constant. |
◆ Constant() [2/3]
Create a rank-1 (vector-valued) constant.
- Parameters
-
| [in] | c | Value of the constant. |
◆ Constant() [3/3]
| Constant |
( |
std::span< const value_type > | c, |
|
|
std::span< const std::size_t > | shape ) |
|
inline |
Create a rank-d constant.
- Parameters
-
The documentation for this class was generated from the following file:
- /build/fenics-dolfinx-PdyzCE/fenics-dolfinx-0.10.0.post5/cpp/dolfinx/fem/Constant.h