#include <base/exceptions.h>
+#include <base/subscriptor.h>
+#include <base/smartpointer.h>
//forward declarations
@author Original version by Roland Becker, Guido Kanschat, Franz-Theo Suttmeier; lots of enhancements, reorganisation and documentation by Wolfgang Bangerth
*/
-class SparseMatrixStruct
+class SparseMatrixStruct : public Subscriptor
{
public:
/**
@author Original version by Roland Becker, Guido Kanschat, Franz-Theo Suttmeier; lots of enhancements, reorganisation and documentation by Wolfgang Bangerth 1998
*/
template <typename number>
-class SparseMatrix
+class SparseMatrix : public Subscriptor
{
public:
/**
DeclException0 (ExcInvalidConstructorCall);
private:
- const SparseMatrixStruct * cols;
+ SmartPointer<const SparseMatrixStruct> cols;
number* val;
unsigned int max_len;
bool is_ilu;