10 #include <type_traits>
12 #include <xtensor/xarray.hpp>
26 typename = std::enable_if_t<
28 T> || std::is_same_v<T, std::complex<float>> || std::is_same_v<T, std::complex<double>>>>
Constant value which can be attached to a Form. Constants may be scalar (rank 0), vector (rank 1),...
Definition: Constant.h:21
std::vector< int > shape
Shape.
Definition: Constant.h:41
Constant(T c)
Create a rank-0 (scalar-valued) constant.
Definition: Constant.h:29
std::vector< T > value
Values, stored as a row-major flattened array.
Definition: Constant.h:44
Constant(const xt::xarray< T > &c)
Create a rank-d constant.
Definition: Constant.h:35
Finite element method functionality.
Definition: assemble_matrix_impl.h:24