From: Guido Kanschat Date: Thu, 17 Mar 2005 00:14:09 +0000 (+0000) Subject: helper function X-Git-Tag: v8.0.0~14359 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fb0c1fb8c7c9795f5d7789e027d3d4b1e4c911f;p=dealii.git helper function git-svn-id: https://svn.dealii.org/trunk@10177 0785d39b-7218-0410-832d-ea1e28bc413d --- 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); +} + /*@}*/ //----------------------------------------------------------------------//