Skip to content
Snippets Groups Projects
Commit 40249808 authored by Oliver Sander's avatar Oliver Sander
Browse files

more istlification -- still not even close to being finished

[[Imported from SVN: r615]]
parent 714d93b3
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
SUBDIRS = . tutorial test paamg
SOURCES = allocator.hh basearray.hh bcrsmatrix.hh bvector.hh gsetc.hh io.hh istlexception.hh istl.hh vbcrsmatrix.hh vbvector.hh ilu.hh operators.hh preconditioners.hh solvers.hh indexset.hh communicator.hh remoteindices.hh mpitraits.hh interface.hh indicessyncer.hh matrixindexset.hh selection.hh plocalindex.hh localindex.hh scalarproducts.hh solvercategory.hh bdmatrix.hh matrixutils.hh schwarz.hh owneroverlapcopy.hh
SOURCES = allocator.hh basearray.hh bcrsmatrix.hh bvector.hh gsetc.hh io.hh istlexception.hh istl.hh vbcrsmatrix.hh vbvector.hh ilu.hh operators.hh preconditioners.hh solvers.hh indexset.hh communicator.hh remoteindices.hh mpitraits.hh interface.hh indicessyncer.hh matrixindexset.hh selection.hh plocalindex.hh localindex.hh scalarproducts.hh solvercategory.hh bdmatrix.hh matrixutils.hh schwarz.hh owneroverlapcopy.hh matrix.hh
istldir = $(includedir)/dune/istl
istl_HEADERS = $(SOURCES)
......
......@@ -3,25 +3,34 @@
#ifndef DUNE_MATRIX_HH
#define DUNE_MATRIX_HH
/** \file
\brief A dynamic dense block matrix class
*/
#include <vector>
#include "simplevector.hh"
#include <dune/common/simplevector.hh>
namespace Dune {
/** \brief A generic dynamic matrix
\ingroup Common
\addtogroup ISTL
*/
template<class T>
template<class T, class A=ISTLAllocator>
class Matrix
{
class ISTLError : public Exception {};
public:
/** \brief Export the type representing the underlying field */
typedef typename T::field_type field_type;
/** \brief Export the type representing the components */
typedef T block_type;
/** \brief Export the allocator */
typedef A allocator_type;
/** \brief Type for indices and sizes */
typedef int size_type;
typedef typename A::size_type size_type;
/** \brief Create empty matrix */
Matrix() : data(0), rows_(0), cols_(0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment