Function Dune::XT::Common::make_field_container

Function template Dune::XT::Common::make_field_container

template<class K, int ROWS, int COLS>
FieldMatrix<K, ROWS, COLS> Dune::XT::Common::make_field_container(Dune::FieldMatrix<K, ROWS, COLS> &&vec)

Wraps an rvalue Dune::FieldMatrix into an XT::Common::FieldMatrix.

Function template Dune::XT::Common::make_field_container

template<class K, int ROWS, int COLS>
FieldMatrix<K, ROWS, COLS> Dune::XT::Common::make_field_container(FieldMatrix<K, ROWS, COLS> &&vec)

Passes an rvalue XT::Common::FieldMatrix through unchanged.

Function template Dune::XT::Common::make_field_container

template<class K, int SIZE>
FieldVector<K, SIZE> Dune::XT::Common::make_field_container(Dune::FieldVector<K, SIZE> &&vec)

Wraps an rvalue Dune::FieldVector into an XT::Common::FieldVector.

Function template Dune::XT::Common::make_field_container

template<class K, int SIZE>
FieldVector<K, SIZE> Dune::XT::Common::make_field_container(FieldVector<K, SIZE> &&vec)

Passes an rvalue XT::Common::FieldVector through unchanged.

Function template Dune::XT::Common::make_field_container

template<class M>
typename std::enable_if<is_matrix<M>::value && MatrixAbstraction<M>::has_static_size, FieldMatrix<typename MatrixAbstraction<M>::S, MatrixAbstraction<M>::static_rows, MatrixAbstraction<M>::static_cols>>::type Dune::XT::Common::make_field_container(const M &mat)

Copies a static-size matrix into an XT::Common::FieldMatrix and returns it by value.

Function template Dune::XT::Common::make_field_container

template<class V>
typename std::enable_if<is_vector<V>::value && VectorAbstraction<V>::has_static_size, FieldVector<typename VectorAbstraction<V>::S, VectorAbstraction<V>::static_size>>::type Dune::XT::Common::make_field_container(const V &vec)

Copies a static-size vector into an XT::Common::FieldVector and returns it by value.