add size1 and size2

release/4.3a0
Kai Ni 2010-11-07 23:12:02 +00:00
parent c3f95f9409
commit 25c06b012d
1 changed files with 11 additions and 0 deletions

View File

@ -128,6 +128,17 @@ public:
*/
bool empty() const { return Ab_.size1() == 0;}
/**
* return the number of rows in the corresponding linear system
*/
size_t size1() const { return Ab_.size1(); }
/**
* return the number of columns in the corresponding linear system
*/
size_t size2() const { return Ab_.size2(); }
/** Get a view of the r.h.s. vector b */
constBVector getb() const { return Ab_.column(size(), 0); }