From 8fb0c1fb8c7c9795f5d7789e027d3d4b1e4c911f Mon Sep 17 00:00:00 2001 From: Guido Kanschat 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