10#include "dolfinx/common/types.h"
20template <dolfinx::scalar T>
33 explicit Constant(std::span<const value_type> c)
34 :
Constant(c, std::vector<std::size_t>{c.size()})
41 Constant(std::span<const value_type> c, std::span<const std::size_t>
shape)
Constant(std::span< const value_type > c, std::span< const std::size_t > shape)
Create a rank-d constant.
Definition Constant.h:41
Constant(value_type c)
Create a rank-0 (scalar-valued) constant.
Definition Constant.h:29
Constant(std::span< const value_type > c)
Create a rank-1 (vector-valued) constant.
Definition Constant.h:33
std::vector< value_type > value
Values, stored as a row-major flattened array.
Definition Constant.h:47
std::vector< std::size_t > shape
Shape.
Definition Constant.h:50
T value_type
Field type.
Definition Constant.h:25
Finite element method functionality.
Definition assemble_expression_impl.h:23