Add function to Sparse

This commit is contained in:
kradchen
2023-05-30 17:53:21 +08:00
parent e9be863a67
commit b7e3970dce
2 changed files with 15 additions and 7 deletions

View File

@@ -41,4 +41,11 @@ namespace Aurora
{
return mValueVector;
}
size_t Sparse::getM() const{
return mM;
}
size_t Sparse::getN() const{
return mN;
}
}

View File

@@ -13,7 +13,8 @@ namespace Aurora {
Matrix& getColVector() ;
Matrix& getRowVector() ;
Matrix& getValVector() ;
size_t getM() const ;
size_t getN() const;
// TODO:add operators
private:
Matrix mColIdxVector;