Operators in Dune::XT::Common¶
Function Dune::XT::Common::operator!=¶
-
bool Dune::XT::Common::operator!=(const Configuration &left, const Configuration &right)¶
returns true if the Configurations differ in any key/value pair
Function template Dune::XT::Common::operator*¶
-
template<class OtherScalar, int otherCols>
auto Dune::XT::Common::operator*(const ThisType &matrixA, const Dune::FieldMatrix<OtherScalar, 1, otherCols> &matrixB)¶ Matrix-matrix multiplication
Function template Dune::XT::Common::operator*¶
-
template<class OtherScalar, int otherCols>
auto Dune::XT::Common::operator*(const ThisType &matrixA, const FieldMatrix<OtherScalar, 1, otherCols> &matrixB)¶ No documentation provided.
Function template Dune::XT::Common::operator*¶
-
template<class OtherScalar, int otherCols>
auto Dune::XT::Common::operator*(const ThisType &matrixA, const FieldMatrix<OtherScalar, COLS, otherCols> &matrixB)¶ No documentation provided.
Function template Dune::XT::Common::operator*¶
-
template<class OtherScalar, int otherRows>
auto Dune::XT::Common::operator*(const Dune::FieldMatrix<OtherScalar, otherRows, 1> &matrixA, const ThisType &matrixB)¶ No documentation provided.
Function template Dune::XT::Common::operator*¶
-
template<class OtherScalar, int otherRows>
auto Dune::XT::Common::operator*(const Dune::FieldMatrix<OtherScalar, otherRows, ROWS> &matrixA, const ThisType &matrixB)¶ Matrix-matrix multiplication with a Dune::FieldMatrix on the right.
Intentionally not provided (see https://github.com/dune-gdt/dune-gdt/issues/107).
Since dune-common 2.9, Dune::FieldMatrix provides generic hidden-friend operator* overloads for any static-size, non-FieldMatrix matrix on either side: friend auto operator*(const FieldMatrix & , const OtherMatrix & ); friend auto operator*(const OtherMatrix & , const FieldMatrix & ); both constrained by (Impl::IsStaticSizeMatrix_v
& & !Impl::IsFieldMatrix_v ). This XT::Common::FieldMatrix satisfies that constraint: it inherits the static rows/cols members from Dune::FieldMatrix (so IsStaticSizeMatrix is true), but it is a derived type, not Dune::FieldMatrix itself (and IsFieldMatrix matches the exact type only, so IsFieldMatrix is false). As a consequence dune-common already handles
XT::Common::FieldMatrix * Dune::FieldMatrix(returning a Dune::FieldMatrix, which converts back to XT::Common::FieldMatrix where needed). Re-adding an own friend auto operator*(const ThisType & , const Dune::FieldMatrix <OtherScalar , COLS, otherCols> & ) here is an equally good match as dune-common’soperator*(const OtherMatrix & , const FieldMatrix & )and makes that expression an ambiguous call. TheXT::Common::FieldMatrix * XT::Common::FieldMatrixoverload below is still required (and unambiguous) because there dune-common’s two generic friends would otherwise tie.
Function template Dune::XT::Common::operator*¶
Function template Dune::XT::Common::operator*¶
template <class Scalar, std::enable_if_t<IsNumber<Scalar>::value, int> = 0> auto Dune::XT::Common::operator*(Scalar scalar, const ThisType &matrix)
vector space multiplication with scalar
Function template Dune::XT::Common::operator*¶
Function template Dune::XT::Common::operator*¶
template <class Scalar, std::enable_if_t<IsNumber<Scalar>::value, int> = 0> auto Dune::XT::Common::operator*(const ThisType &matrix, Scalar scalar)
vector space multiplication with scalar
Function template Dune::XT::Common::operator+¶
-
template<class OtherScalar>
auto Dune::XT::Common::operator+(const ThisType &matrixA, const Dune::FieldMatrix<OtherScalar, 1, 1> &matrixB)¶ vector space addition – two-argument version
Function template Dune::XT::Common::operator+¶
-
template<class OtherScalar>
auto Dune::XT::Common::operator+(const ThisType &matrixA, const Dune::FieldMatrix<OtherScalar, ROWS, COLS> &matrixB)¶ vector space addition – two-argument version
Function template Dune::XT::Common::operator+¶
Function template Dune::XT::Common::operator+¶
Function template Dune::XT::Common::operator-¶
-
template<class OtherScalar>
auto Dune::XT::Common::operator-(const ThisType &matrixA, const Dune::FieldMatrix<OtherScalar, 1, 1> &matrixB)¶ vector space subtraction – two-argument version
Function template Dune::XT::Common::operator-¶
-
template<class OtherScalar>
auto Dune::XT::Common::operator-(const ThisType &matrixA, const Dune::FieldMatrix<OtherScalar, ROWS, COLS> &matrixB)¶ vector space subtraction – two-argument version
Function template Dune::XT::Common::operator-¶
Function template Dune::XT::Common::operator-¶
Function template Dune::XT::Common::operator/¶
Function template Dune::XT::Common::operator/¶
template <class Scalar, std::enable_if_t<IsNumber<Scalar>::value, int> = 0> auto Dune::XT::Common::operator/(const ThisType &matrix, Scalar scalar)
vector space division by scalar
Function Dune::XT::Common::operator<<¶
-
std::ostream &Dune::XT::Common::operator<<(std::ostream &out, const Configuration &config)¶
writes a Configuration to an output stream (via report)
Function Dune::XT::Common::operator<<¶
Function Dune::XT::Common::operator<<¶
-
std::ostream &Dune::XT::Common::operator<<(std::ostream &out, const ParameterType ¶m_type)¶
writes a ParameterType (its keys and value sizes) to an output stream
Function template Dune::XT::Common::operator<<¶
-
template<class CharType, class CharTraits>
std::basic_ostream<CharType, CharTraits> &Dune::XT::Common::operator<<(std::basic_ostream<CharType, CharTraits> &out, const ThisType &mat)¶ No documentation provided.
Function template Dune::XT::Common::operator<<¶
Function template Dune::XT::Common::operator<<¶
-
template<class V, class CharType, class CharTraits>
std::enable_if_t<Dune::XT::Common::is_vector<V>::value && !Dune::XT::Common::VectorAbstraction<V>::has_ostream, std::basic_ostream<CharType, CharTraits>&> Dune::XT::Common::operator<<(std::basic_ostream<CharType, CharTraits> &out, const V &vec)¶ writes a vector (whose own type provides no ostream operator) to a stream as “[a b c]”
Function template Dune::XT::Common::operator<<¶
Function Dune::XT::Common::operator==¶
-
bool Dune::XT::Common::operator==(const Configuration &left, const Configuration &right)¶
returns true if both Configurations contain the same key/value pairs
Function Dune::XT::Common::operator>>¶
-
std::istream &Dune::XT::Common::operator>>(std::istream &in, HexToString<ElemT> &out)¶
No documentation provided.