Function Dune::XT::Common::zeros_like

Function template Dune::XT::Common::zeros_like

template<class MatrixType>
typename std::enable_if<is_matrix<MatrixType>::value, MatrixType>::type Dune::XT::Common::zeros_like(const MatrixType &source)

creates a matrix of the same type and shape as source, filled with zeros

Function template Dune::XT::Common::zeros_like

template<class TargetMatrixType, class SourceMatrixType>
typename std::enable_if<is_matrix<TargetMatrixType>::value && is_matrix<SourceMatrixType>::value, TargetMatrixType>::type Dune::XT::Common::zeros_like(const SourceMatrixType &source)

creates a TargetMatrixType of the same shape as source, filled with zeros

Function template Dune::XT::Common::zeros_like

template<class TargetVectorType, class SourceVectorType>
typename std::enable_if<is_vector<TargetVectorType>::value && is_vector<SourceVectorType>::value, TargetVectorType>::type Dune::XT::Common::zeros_like(const SourceVectorType &source)

creates a TargetVectorType of the same size as source, filled with zeros

Function template Dune::XT::Common::zeros_like

template<class VectorType>
typename std::enable_if<is_vector<VectorType>::value, VectorType>::type Dune::XT::Common::zeros_like(const VectorType &source)

creates a vector of the same type and size as source, filled with zeros