From 64f88a2add30de2aa992141b77bb2e0f0e05b9ba Mon Sep 17 00:00:00 2001 From: guido Date: Thu, 17 Mar 2005 00:14:09 +0000 Subject: [PATCH] helper function git-svn-id: https://svn.dealii.org/trunk@10177 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/pointer_matrix.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/deal.II/lac/include/lac/pointer_matrix.h b/deal.II/lac/include/lac/pointer_matrix.h index 2a27125a47..37a9890cb1 100644 --- a/deal.II/lac/include/lac/pointer_matrix.h +++ b/deal.II/lac/include/lac/pointer_matrix.h @@ -145,6 +145,26 @@ private: SmartPointer m; }; + +/** + * This function helps you creating a PointerMatrixBase object if you + * do not want to provide the full template arguments of + * PointerMatrix. + * + * The result is a PointerMatrixBase* pointing to matrix. The + * VECTOR argument is a dummy just used to determine the + * template arguments. + * + * @relates PointerMatrixBase + */ +template +inline +PointerMatrixBase* +new_pointer_matrix_base(MATRIX& matrix, const VECTOR&) +{ + return new PointerMatrix(&matrix); +} + /*@}*/ //----------------------------------------------------------------------// -- 2.39.5