const BlockMatrixType &matrix);
- /**
- * @deprecated Add
- * <tt>matrix</tt> scaled by
- * <tt>factor</tt> to this
- * matrix, i.e. the matrix
- * <tt>factor*matrix</tt> is
- * added to <tt>this</tt>.
- *
- * This function is
- * deprecated. Use <tt>add</tt>
- * instead, since this has the
- * same interface as the other
- * matrix and vector classes in
- * the library.
- */
- template <class BlockMatrixType>
- void add_scaled (const value_type factor,
- const BlockMatrixType &matrix);
-
/**
* Adding Matrix-vector
* multiplication. Add $M*src$ on
-template <class MatrixType>
-template <class BlockMatrixType>
-void
-BlockMatrixBase<MatrixType>::
-add_scaled (const value_type factor,
- const BlockMatrixType &matrix)
-{
- for (unsigned int r=0; r<n_block_rows(); ++r)
- for (unsigned int c=0; c<n_block_cols(); ++c)
- block(r,c).add (factor, matrix.block(r,c));
-}
-
-
-
-
template <class MatrixType>
template <class BlockVectorType>
void
void add (const number factor,
const SparseMatrix<somenumber> &matrix);
- /**
- * @deprecated Add
- * <tt>matrix</tt> scaled by
- * <tt>factor</tt> to this
- * matrix, i.e. the matrix
- * <tt>factor*matrix</tt> is
- * added to <tt>this</tt>.
- *
- * This function is
- * deprecated. Use <tt>add</tt>
- * instead, since this has the
- * same interface as the other
- * matrix and vector classes in
- * the library.
- */
- template <typename somenumber>
- void add_scaled (const number factor,
- const SparseMatrix<somenumber> &matrix);
//@}
/**
* @name Entry Access
}
-template <typename number>
-template <typename somenumber>
-void
-SparseMatrix<number>::add_scaled (const number factor,
- const SparseMatrix<somenumber> &matrix)
-{
- add(factor, matrix);
-}
-
-
template <typename number>
template <class OutVector, class InVector>
void
void add (const number factor,
const MATRIX &matrix);
- /**
- * @deprecated Add @p matrix
- * scaled by @p factor to this
- * matrix.
- *
- * This function is
- * deprecated. Use <tt>add</tt>
- * instead, since this has the
- * same interface as the other
- * matrix and vector classes in
- * the library.
- */
- template <class MATRIX>
- void add_scaled (const number factor,
- const MATRIX &matrix);
-
/**
* Return the value of the entry
* (i,j). This may be an
}
-template<typename number>
-template <class MATRIX>
-inline
-void
-SparseMatrixEZ<number>::add_scaled (const number factor,
- const MATRIX& M)
-{
- add (factor, M);
-}
-
template<typename number>
template <class MATRIXA, class MATRIXB>
// $Id$
// Version: $Name$
//
-// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2006 by the deal.II authors
+// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2006, 2007 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
template void SparseMatrix<TYPEMAT>::add<TYPE2> (const TYPEMAT,
const SparseMatrix<TYPE2> &);
-template void SparseMatrix<TYPEMAT>::add_scaled<TYPE2> (const TYPEMAT,
- const SparseMatrix<TYPE2> &);
-
DEAL_II_NAMESPACE_CLOSE