29 :
Constant(c, std::vector<std::size_t>{c.size()})
Constant value which can be attached to a Form. Constants may be scalar (rank 0), vector (rank 1),...
Definition: Constant.h:20
Constant(std::span< const T > c, std::span< const std::size_t > shape)
Create a rank-d constant.
Definition: Constant.h:36
std::vector< std::size_t > shape
Shape.
Definition: Constant.h:45
std::vector< T > value
Values, stored as a row-major flattened array.
Definition: Constant.h:42
Constant(std::span< const T > c)
Create a rank-1 (vector-valued) constant.
Definition: Constant.h:28
Constant(T c)
Create a rank-0 (scalar-valued) constant.
Definition: Constant.h:24
Finite element method functionality.
Definition: assemble_matrix_impl.h:25