From abb64919d5d50034f583c9b6afc2dd74b54bf4c5 Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Tue, 22 Mar 2005 00:07:14 +0000 Subject: [PATCH] comparison operators added git-svn-id: https://svn.dealii.org/trunk@10197 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/matrix_lib.h | 18 ++++++++++++++++++ deal.II/lac/source/matrix_lib.cc | 8 ++++++++ 2 files changed, 26 insertions(+) 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; -- 2.39.5