-add Ones, DiagonalMatrix, DiagonalCoeffs

-expand and improve unit-tests
-various renaming and improvements
This commit is contained in:
Benoit Jacob
2007-12-15 18:16:30 +00:00
parent fc7b2b5c20
commit 7c38475291
18 changed files with 405 additions and 64 deletions

View File

@@ -40,23 +40,23 @@ class Matrix : public MatrixBase<_Scalar, Matrix<_Scalar, _Rows, _Cols> >,
static const int RowsAtCompileTime = _Rows, ColsAtCompileTime = _Cols;
const Scalar* array() const
{ return Storage::m_array; }
const Scalar* data() const
{ return Storage::m_data; }
Scalar* array()
{ return Storage::m_array; }
Scalar* data()
{ return Storage::m_data; }
private:
Ref _ref() const { return Ref(*this); }
const Scalar& _read(int row, int col) const
{
return array()[row + col * Storage::_rows()];
return data()[row + col * Storage::_rows()];
}
Scalar& _write(int row, int col)
{
return array()[row + col * Storage::_rows()];
return data()[row + col * Storage::_rows()];
}
public: