Operators in Dune

bool Dune::operator!=(const int &left, const int &right)

returns true if the ParameterTrees differ in any key/value pair

template<class K, int L_ROWS, int L_COLS, int R_COLS>
Dune::XT::Common::FieldMatrix<K, L_ROWS, R_COLS> Dune::operator*(const Dune::FieldMatrix<K, L_ROWS, L_COLS> &left, const Dune::FieldMatrix<K, L_COLS, R_COLS> &right)

Matrix-matrix product of two matrices with matching field type.

template<class K, int L_ROWS, int L_COLS, int R_COLS>
int Dune::operator*(const Dune::FieldMatrix<K, L_ROWS, L_COLS> &left, const int &right)

Matrix-matrix product where the right factor is held by unique_ptr, returning the result by unique_ptr.

template<class K, int L_ROWS, int L_COLS, int R_COLS>
int Dune::operator*(const int &left, const Dune::FieldMatrix<K, L_COLS, R_COLS> &right)

Matrix-matrix product where the left factor is held by unique_ptr, returning the result by unique_ptr.

template<class K, int L_ROWS, int L_COLS, int R_COLS>
int Dune::operator*(const int &left, const int &right)

Matrix-matrix product where both factors are held by unique_ptr, returning the result by unique_ptr.

template<class K, int L_ROWS>
Dune::XT::Common::FieldMatrix<K, L_ROWS, 1> Dune::operator*(const Dune::XT::Common::FieldMatrix<K, L_ROWS, 1> &left, const Dune::FieldMatrix<K, 1, 1> &right)

Matrix-matrix product of a column-matrix with a 1x1 matrix.

template<class K, int SIZE>
typename std::enable_if<SIZE != 1, K>::type Dune::operator*(const Dune::FieldVector<K, SIZE> &vec, const Dune::FieldMatrix<K, SIZE, 1> &mat)

Inner product of a vector with a single-column matrix, yielding a scalar.

template<class K>
int Dune::operator*(const int &lhs, const int &rhs)

returns the matrix product of two DynamicMatrices

template<class L, int L_ROWS, int L_COLS, class R, int R_COLS>
int Dune::operator*(const Dune::FieldMatrix<L, L_ROWS, L_COLS> &left, const Dune::FieldMatrix<R, L_COLS, R_COLS> &right)

Matrix-matrix product of two matrices with differing field types, returned with the promoted field type.

template<class S, class V>
int Dune::operator*(const S &alpha, const int &vec)

Returns the product of a scalar and a dense vector.

template<class V, class S>
int Dune::operator*(const int &vec, const S &alpha)

Returns the product of a dense vector and a scalar.

template<class K>
int Dune::operator+(const int &lhs, const int &rhs)

returns the entry-wise sum of two DynamicMatrices

template<class L, int ROWS, int COLS, class R>
int Dune::operator+(const Dune::FieldMatrix<L, ROWS, COLS> &left, const Dune::FieldMatrix<R, ROWS, COLS> &right)

Entrywise sum of two equally-shaped matrices, returned with the promoted field type.

template<class ScalarType, int size>
FieldVector<ScalarType, size> &Dune::operator+=(FieldVector<ScalarType, size> &lhs, const XT::LA::CommonSparseVector<ScalarType> &rhs)

Adds a CommonSparseVector in-place to a Dune::FieldVector.

template<class K>
int Dune::operator-(const int &lhs, const int &rhs)

returns the entry-wise difference of two DynamicMatrices

template<class L, int ROWS, int COLS, class R>
int Dune::operator-(const Dune::FieldMatrix<L, ROWS, COLS> &left, const Dune::FieldMatrix<R, ROWS, COLS> &right)

Entrywise difference of two equally-shaped matrices, returned with the promoted field type.

template<class V, class S>
int Dune::operator/(const int &vec, const S &alpha)

Returns the quotient of a dense vector divided by a scalar.

template<int cd, int dim, class GridImp, template<int, int, class> class EntityImp>
std::ostream &Dune::operator<<(std::ostream &out, const int &entity)

Streams a textual representation of an entity (including its corners) to an output stream.

bool Dune::operator==(const int &left, const int &right)

returns true if both ParameterTrees contain the same key/value pairs