10#include "dolfinx/common/types.h"
21template <dolfinx::scalar T>
32 :
Constant(c, std::vector<std::size_t>{c.size()})
Constant value which can be attached to a Form.
Definition Constant.h:23
Constant(std::span< const T > c, std::span< const std::size_t > shape)
Create a rank-d constant.
Definition Constant.h:39
std::vector< std::size_t > shape
Shape.
Definition Constant.h:48
std::vector< T > value
Values, stored as a row-major flattened array.
Definition Constant.h:45
Constant(std::span< const T > c)
Create a rank-1 (vector-valued) constant.
Definition Constant.h:31
Constant(T c)
Create a rank-0 (scalar-valued) constant.
Definition Constant.h:27
Finite element method functionality.
Definition assemble_matrix_impl.h:25