Skip to content
Snippets Groups Projects
Commit 47b55345 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[matrix.hh] Remove deprecated method transposedMult.

[[Imported from SVN: r1644]]
parent 905de9fe
No related branches found
No related tags found
No related merge requests found
......@@ -263,12 +263,6 @@ namespace Dune {
return out;
}
//! \brief Multiplication of the transposed matrix times a vector
//!
//! This method is deprecated. Use method mtv instead.
template <class X, class Y>
Y transposedMult(const X& vec) DUNE_DEPRECATED;
/// Generic matrix multiplication.
friend Matrix<T> operator*(const Matrix<T>& m1, const Matrix<T>& m2) {
Matrix<T> out(m1.N(), m2.M());
......@@ -561,25 +555,6 @@ namespace Dune {
size_type cols_;
};
template<class T, class A>
template<class X, class Y>
inline Y Matrix<T,A>::transposedMult(const X& vec)
{
#ifdef DUNE_ISTL_WITH_CHECKING
if (N()!=vec.size())
DUNE_THROW(ISTLError, "Vector size doesn't match the number of matrix rows!");
#endif
Y out(M());
out = 0;
for (size_type i=0; i<out.size(); i++ ) {
for ( size_type j=0; j<vec.size(); j++ )
out[i] += (*this)[j][i]*vec[j];
}
return out;
}
/** \} */
} // end namespace Dune
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment