10#include "dolfinx/common/types.h"
21template <dolfinx::scalar T>
34 explicit Constant(std::span<const value_type> c)
35 :
Constant(c, std::vector<std::size_t>{c.size()})
42 Constant(std::span<const value_type> c, std::span<const std::size_t>
shape)
Constant value which can be attached to a Form.
Definition Form.h:29
Constant(std::span< const value_type > c, std::span< const std::size_t > shape)
Create a rank-d constant.
Definition Constant.h:42
Constant(value_type c)
Create a rank-0 (scalar-valued) constant.
Definition Constant.h:30
Constant(std::span< const value_type > c)
Create a rank-1 (vector-valued) constant.
Definition Constant.h:34
std::vector< value_type > value
Values, stored as a row-major flattened array.
Definition Constant.h:48
std::vector< std::size_t > shape
Shape.
Definition Constant.h:51
T value_type
Field type.
Definition Constant.h:26
Finite element method functionality.
Definition assemble_matrix_impl.h:26