From: Guido Kanschat Date: Tue, 22 Mar 2005 00:07:14 +0000 (+0000) Subject: comparison operators added X-Git-Tag: v8.0.0~14341 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abb64919d5d50034f583c9b6afc2dd74b54bf4c5;p=dealii.git comparison operators added git-svn-id: https://svn.dealii.org/trunk@10197 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/matrix_lib.h b/deal.II/lac/include/lac/matrix_lib.h index 5e488a1b19..3cb932683f 100644 --- a/deal.II/lac/include/lac/matrix_lib.h +++ b/deal.II/lac/include/lac/matrix_lib.h @@ -94,6 +94,11 @@ class ProductMatrix : public PointerMatrixBase * Memory for auxiliary vector. */ SmartPointer > mem; + /** + * Return some kind of + * identifier. + */ + virtual const void* get() const; }; @@ -180,6 +185,11 @@ class ProductSparseMatrix : public PointerMatrixBase > * Memory for auxiliary vector. */ SmartPointer > mem; + /** + * Return some kind of + * identifier. + */ + virtual const void* get() const; }; @@ -338,6 +348,14 @@ ProductMatrix::Tvmult_add (VECTOR& dst, const VECTOR& src) const } +template +const void* +ProductMatrix::get () const +{ + return (void*) m1; +} + + //----------------------------------------------------------------------// template diff --git a/deal.II/lac/source/matrix_lib.cc b/deal.II/lac/source/matrix_lib.cc index d0e4856f4c..b37aea5048 100644 --- a/deal.II/lac/source/matrix_lib.cc +++ b/deal.II/lac/source/matrix_lib.cc @@ -83,6 +83,14 @@ ProductSparseMatrix::Tvmult_add (VectorType& dst, const VectorT } +template +const void* +ProductSparseMatrix::get () const +{ + return &*m1; +} + + template class ProductSparseMatrix; template class ProductSparseMatrix; template class ProductSparseMatrix;