#include <base/subscriptor.h>
#include <base/smartpointer.h>
+#include <vector>
+
template<typename number> class Vector;
template<typename number> class FullMatrix;
* matrix, you can do so by using the
* @p{copy_from} function.
*/
- SparseMatrixEZ (const SparseMatrix &);
+ SparseMatrixEZ (const SparseMatrixEZ &);
/**
* Constructor. Generates a
/*
* Access to value.
*/
-// number& operator() (unsigned int column);
+ number& operator() (unsigned int column);
/**
* Read-only access to value.
/**
* Start of entry list.
*/
- std::vector<Entry>::iterator begin();
+ typename std::vector<Entry>::iterator begin();
/**
* Start of constant entry list.
*/
- std::vector<Entry>::const_iterator begin() const;
+ typename std::vector<Entry>::const_iterator begin() const;
/**
* End of entry list.
*/
- std::vector<Entry>::iterator end();
+ typename std::vector<Entry>::iterator end();
/**
* End of constant entry list.
*/
- std::vector<Entry>::const_iterator end() const;
+ typename std::vector<Entry>::const_iterator end() const;
private:
* entries of a row ordered
* by column number.
*/
- std::vector<Entry> values;
+ typename std::vector<Entry> values;
};
template <typename number>
inline
-std::vector<Entry>::iterator
+typename std::vector<typename SparseMatrixEZ<number>::Entry>::iterator
SparseMatrixEZ<number>::Row::begin()
{
return values.begin();
template <typename number>
inline
-std::vector<Entry>::const_iterator
+typename std::vector<typename SparseMatrixEZ<number>::Entry>::const_iterator
SparseMatrixEZ<number>::Row::begin() const
{
return values.begin();
template <typename number>
inline
-std::vector<Entry>::iterator
+typename std::vector<typename SparseMatrixEZ<number>::Entry>::iterator
SparseMatrixEZ<number>::Row::end()
{
return values.end();
template <typename number>
inline
-std::vector<Entry>::const_iterator
+typename std::vector<typename SparseMatrixEZ<number>::Entry>::const_iterator
SparseMatrixEZ<number>::Row::end() const
{
return values.end();