Skip to content
Snippets Groups Projects
Commit 1771a4e0 authored by Saad Jbabdi's avatar Saad Jbabdi
Browse files

set method here(r,c) to protected

parent 3c1a53b2
No related branches found
No related tags found
No related merge requests found
...@@ -172,6 +172,7 @@ public: ...@@ -172,6 +172,7 @@ public:
protected: protected:
const std::vector<unsigned int>& get_ri(unsigned int i) const; const std::vector<unsigned int>& get_ri(unsigned int i) const;
const std::vector<T>& get_val(unsigned int i) const; const std::vector<T>& get_val(unsigned int i) const;
T& here(unsigned int r, unsigned int c);
private: private:
unsigned int _m; unsigned int _m;
...@@ -181,8 +182,7 @@ private: ...@@ -181,8 +182,7 @@ private:
std::vector<std::vector<T> > _val; std::vector<std::vector<T> > _val;
bool _pw; // Print Warnings bool _pw; // Print Warnings
bool found(const std::vector<unsigned int>& ri, unsigned int key, int& pos) const; bool found(const std::vector<unsigned int>& ri, unsigned int key, int& pos) const;
T& here(unsigned int r, unsigned int c);
void insert(std::vector<unsigned int>& vec, int indx, unsigned int val); void insert(std::vector<unsigned int>& vec, int indx, unsigned int val);
void insert(std::vector<T>& vec, int indx, const T& val); void insert(std::vector<T>& vec, int indx, const T& val);
bool same_sparsity(const SpMat<T>& M) const; bool same_sparsity(const SpMat<T>& M) const;
......
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