Skip to content
Snippets Groups Projects
Commit 324ef54f authored by Tom Fischer's avatar Tom Fischer
Browse files

- changed non const access operator of class template CRSMatrix

- added interface for erasing enties from the matrix (implemented asap)
- added interface for getting a column of the matrix (implemented asap)
parent 3237b11d
No related branches found
No related tags found
No related merge requests found
...@@ -73,7 +73,7 @@ public: ...@@ -73,7 +73,7 @@ public:
* @param col the column number * @param col the column number
* @return The corresponding matrix entry. * @return The corresponding matrix entry.
*/ */
FP_TYPE const& operator() (IDX_TYPE row, IDX_TYPE col) const FP_TYPE operator() (IDX_TYPE row, IDX_TYPE col) const
{ {
assert(0 <= row && row < MatrixBase::_n_rows); assert(0 <= row && row < MatrixBase::_n_rows);
...@@ -87,6 +87,7 @@ public: ...@@ -87,6 +87,7 @@ public:
} }
j++; j++;
} }
return 0.0;
} }
/** /**
...@@ -112,6 +113,22 @@ public: ...@@ -112,6 +113,22 @@ public:
} }
} }
void eraseEntries (IDX_TYPE n_entries, IDX_TYPE* rows, IDX_TYPE *cols)
{
// ToDo
//*** determine the number of new entries
unsigned cnt_new_entries(_row_ptr[MatrixBase::_n_rows]);
//*** create new memory
//*** copy the entries
//*** apply changes to attributes
}
void getColumn(IDX_TYPE col, FP_TYPE* column_entries)
{
// ToDo
}
protected: protected:
IDX_TYPE *_row_ptr; IDX_TYPE *_row_ptr;
IDX_TYPE *_col_idx; IDX_TYPE *_col_idx;
......
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