Add function to Sparse
This commit is contained in:
@@ -41,4 +41,11 @@ namespace Aurora
|
|||||||
{
|
{
|
||||||
return mValueVector;
|
return mValueVector;
|
||||||
}
|
}
|
||||||
|
size_t Sparse::getM() const{
|
||||||
|
return mM;
|
||||||
|
}
|
||||||
|
|
||||||
|
size_t Sparse::getN() const{
|
||||||
|
return mN;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -10,10 +10,11 @@ namespace Aurora {
|
|||||||
Sparse(Matrix Cols, Matrix Rows, Matrix Values,size_t M, size_t N);
|
Sparse(Matrix Cols, Matrix Rows, Matrix Values,size_t M, size_t N);
|
||||||
~Sparse();
|
~Sparse();
|
||||||
bool isValid() const;
|
bool isValid() const;
|
||||||
Matrix& getColVector();
|
Matrix& getColVector() ;
|
||||||
Matrix& getRowVector();
|
Matrix& getRowVector() ;
|
||||||
Matrix& getValVector();
|
Matrix& getValVector() ;
|
||||||
|
size_t getM() const ;
|
||||||
|
size_t getN() const;
|
||||||
// TODO:add operators
|
// TODO:add operators
|
||||||
private:
|
private:
|
||||||
Matrix mColIdxVector;
|
Matrix mColIdxVector;
|
||||||
|
|||||||
Reference in New Issue
Block a user