Change Sparse
This commit is contained in:
@@ -10,9 +10,9 @@ namespace Aurora
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
Sparse::Sparse(Matrix Cols, Matrix Rows, Matrix Values,size_t M, size_t N)
|
Sparse::Sparse(Matrix RowIdxs, Matrix ColIdxs , Matrix Values,size_t M, size_t N)
|
||||||
: mColIdxVector(Cols),
|
: mColIdxVector(ColIdxs),
|
||||||
mRowIdxVector(Rows),
|
mRowIdxVector(RowIdxs),
|
||||||
mValueVector(Values),
|
mValueVector(Values),
|
||||||
mM(M),
|
mM(M),
|
||||||
mN(N)
|
mN(N)
|
||||||
|
|||||||
14
src/Sparse.h
14
src/Sparse.h
@@ -7,13 +7,23 @@ namespace Aurora {
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Sparse();
|
Sparse();
|
||||||
Sparse(Matrix Cols, Matrix Rows, Matrix Values,size_t M, size_t N);
|
Sparse(Matrix RowIdxs, Matrix ColIdxs, 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 ;
|
/**
|
||||||
|
* @brief Rows
|
||||||
|
*
|
||||||
|
* @return size_t
|
||||||
|
*/
|
||||||
|
size_t getM() const;
|
||||||
|
/**
|
||||||
|
* @brief Cols
|
||||||
|
*
|
||||||
|
* @return size_t
|
||||||
|
*/
|
||||||
size_t getN() const;
|
size_t getN() const;
|
||||||
// TODO:add operators
|
// TODO:add operators
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user