4#include <deal.II/base/tensor.h>
5#include <deal.II/base/vectorization.h>
7#include <core/exceptions.h>
13#define constV(value) make_vectorized_array(value)
18#define constT(vector, dim) make_tensor_of_vectorized_arrays<dim>(vector)
20template <
int dim,
typename datatype>
21dealii::Tensor<1, dim, dealii::VectorizedArray<datatype>>
22make_tensor_of_vectorized_arrays(
const std::vector<datatype> &input_vector)
24 AssertDimension(input_vector.size(), dim);
26 dealii::Tensor<1, dim, dealii::VectorizedArray<datatype>> tensor;
29 for (
unsigned int i = 0; i < input_vector.size(); ++i)
31 tensor[i] = dealii::make_vectorized_array(input_vector[i]);