]> https://gitweb.dealii.org/ - dealii.git/commitdiff
comparison operators added
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Tue, 22 Mar 2005 00:07:14 +0000 (00:07 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Tue, 22 Mar 2005 00:07:14 +0000 (00:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@10197 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/matrix_lib.h
deal.II/lac/source/matrix_lib.cc

index 5e488a1b196c8c8769d239c00a599edc7eabe6db..3cb932683fd42d2e16633296e8f196aa2e3a1b17 100644 (file)
@@ -94,6 +94,11 @@ class ProductMatrix : public PointerMatrixBase<VECTOR>
                                      * Memory for auxiliary vector.
                                      */
     SmartPointer<VectorMemory<VECTOR> > mem;
+                                    /**
+                                     * Return some kind of
+                                     * identifier.
+                                     */
+    virtual const void* get() const;
 };
 
 
@@ -180,6 +185,11 @@ class ProductSparseMatrix : public PointerMatrixBase<Vector<vector_number> >
                                      * Memory for auxiliary vector.
                                      */
     SmartPointer<VectorMemory<VectorType> > mem;
+                                    /**
+                                     * Return some kind of
+                                     * identifier.
+                                     */
+    virtual const void* get() const;
 };
 
 
@@ -338,6 +348,14 @@ ProductMatrix<VECTOR>::Tvmult_add (VECTOR& dst, const VECTOR& src) const
 }
 
 
+template<class VECTOR>
+const void*
+ProductMatrix<VECTOR>::get () const
+{
+  return (void*) m1;
+}
+
+
 //----------------------------------------------------------------------//
 
 template <class VECTOR>
index d0e4856f4c4239725825f0624974a857963a16d9..b37aea504864cd86d664006f66a7cd77ba877ec8 100644 (file)
@@ -83,6 +83,14 @@ ProductSparseMatrix<number, vnumber>::Tvmult_add (VectorType& dst, const VectorT
 }
 
 
+template<typename number, typename vnumber>
+const void*
+ProductSparseMatrix<number, vnumber>::get () const
+{
+  return &*m1;
+}
+
+
 template class ProductSparseMatrix<double, double>;
 template class ProductSparseMatrix<double, float>;
 template class ProductSparseMatrix<float, double>;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.