Add function to Sparse
This commit is contained in:
@@ -27,18 +27,25 @@ namespace Aurora
|
||||
&& mColIdxVector.getDataSize() == mValueVector.getDataSize();
|
||||
}
|
||||
|
||||
Matrix& Sparse::getColVector()
|
||||
Matrix& Sparse::getColVector()
|
||||
{
|
||||
return mColIdxVector;
|
||||
}
|
||||
|
||||
Matrix& Sparse::getRowVector()
|
||||
Matrix& Sparse::getRowVector()
|
||||
{
|
||||
return mRowIdxVector;
|
||||
}
|
||||
|
||||
Matrix& Sparse::getValVector()
|
||||
Matrix& Sparse::getValVector()
|
||||
{
|
||||
return mValueVector;
|
||||
}
|
||||
size_t Sparse::getM() const{
|
||||
return mM;
|
||||
}
|
||||
|
||||
size_t Sparse::getN() const{
|
||||
return mN;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user