The main skyline matrix class. More...
#include <SkylineMatrix.h>
Public Member Functions | |
| const Scalar * | _diagPtr () const |
| Scalar * | _diagPtr () |
| const Index * | _lowerProfilePtr () const |
| Index * | _lowerProfilePtr () |
| const Scalar * | _lowerPtr () const |
| Scalar * | _lowerPtr () |
| const Index * | _upperProfilePtr () const |
| Index * | _upperProfilePtr () |
| const Scalar * | _upperPtr () const |
| Scalar * | _upperPtr () |
| Scalar | coeff (Index row, Index col) const |
| Scalar | coeffDiag (Index idx) const |
| bool | coeffExistLower (Index row, Index col) |
| bool | coeffExistUpper (Index row, Index col) |
| Scalar | coeffLower (Index row, Index col) const |
| Scalar & | coeffRef (Index row, Index col) |
| Scalar & | coeffRefDiag (Index idx) |
| Scalar & | coeffRefLower (Index row, Index col) |
| Scalar & | coeffRefUpper (Index row, Index col) |
| Scalar | coeffUpper (Index row, Index col) const |
| Index | cols () const |
| void | finalize () |
| Index | innerSize () const |
| EIGEN_DONT_INLINE Scalar & | insert (Index row, Index col) |
| Index | lowerNonZeros () const |
| Index | lowerNonZeros (Index j) const |
| Index | nonZeros () const |
| SkylineMatrix & | operator= (const SkylineMatrix &other) |
| template<typename OtherDerived > | |
| SkylineMatrix & | operator= (const SkylineMatrixBase< OtherDerived > &other) |
| Index | outerSize () const |
| void | prune (Scalar reference, RealScalar epsilon=dummy_precision< RealScalar >()) |
| void | reserve (Index reserveSize, Index reserveUpperSize, Index reserveLowerSize) |
| void | resize (size_t rows, size_t cols) |
| void | resizeNonZeros (Index size) |
| Index | rows () const |
| void | setZero () |
| SkylineMatrix (size_t rows, size_t cols) | |
| template<typename OtherDerived > | |
| SkylineMatrix (const SkylineMatrixBase< OtherDerived > &other) | |
| SkylineMatrix (const SkylineMatrix &other) | |
| void | squeeze () |
| Scalar | sum () const |
| void | swap (SkylineMatrix &other) |
| Index | upperNonZeros () const |
| Index | upperNonZeros (Index j) const |
| ~SkylineMatrix () | |
Public Member Functions inherited from SkylineMatrixBase< SkylineMatrix< _Scalar, _Options > > | |
| void | assignGeneric (const OtherDerived &other) |
| const internal::eval < SkylineMatrix< _Scalar, _Options >, IsSkyline >::type | eval () const |
| void | evalTo (MatrixBase< DenseDerived > &dst) const |
| bool | isRValue () const |
|
SkylineMatrix< _Scalar, _Options > & | markAsRValue () |
|
const SkylineProductReturnType < SkylineMatrix< _Scalar, _Options >, OtherDerived > ::Type | operator* (const MatrixBase< OtherDerived > &other) const |
|
SkylineMatrix< _Scalar, _Options > & | operator= (const SkylineMatrix< _Scalar, _Options > &other) |
|
SkylineMatrix< _Scalar, _Options > & | operator= (const SkylineProduct< Lhs, Rhs, SkylineTimeSkylineProduct > &product) |
| Index | size () const |
|
Matrix< Scalar, RowsAtCompileTime, ColsAtCompileTime > | toDense () const |
Public Attributes | |
| Index * | m_colStartIndex |
| SkylineStorage< Scalar > | m_data |
| Index * | m_rowStartIndex |
Protected Types | |
|
typedef SkylineMatrix< Scalar,(Flags &~RowMajorBit)|(IsRowMajor?RowMajorBit:0) > | TransposedSkylineMatrix |
Protected Attributes | |
| Index | m_innerSize |
| Index | m_outerSize |
Protected Attributes inherited from SkylineMatrixBase< SkylineMatrix< _Scalar, _Options > > | |
| bool | m_isRValue |
Friends | |
| std::ostream & | operator<< (std::ostream &s, const SkylineMatrix &m) |
Additional Inherited Members | |
Public Types inherited from SkylineMatrixBase< SkylineMatrix< _Scalar, _Options > > | |
| enum | |
|
typedef internal::index < StorageKind >::type | Index |
|
typedef internal::traits < SkylineMatrix< _Scalar, _Options > >::Scalar | Scalar |
|
typedef internal::traits < SkylineMatrix< _Scalar, _Options > >::StorageKind | StorageKind |
The main skyline matrix class.
This class implements a skyline matrix using the very uncommon storage scheme.
| _Scalar | the scalar type, i.e. the type of the coefficients |
| _Options | Union of bit flags controlling the storage scheme. Currently the only possibility is RowMajor. The default is 0 which means column-major. |
|
inline |
Destructor
|
inline |
Reimplemented from SkylineMatrixBase< SkylineMatrix< _Scalar, _Options > >.
Referenced by SkylineMatrix< _Scalar, _Options >::finalize(), and SkylineMatrix< _Scalar, _Options >::insert().
|
inline |
Must be called after inserting a set of non zero entries.
References SkylineMatrix< _Scalar, _Options >::cols(), and SkylineMatrix< _Scalar, _Options >::rows().
|
inline |
Reimplemented from SkylineMatrixBase< SkylineMatrix< _Scalar, _Options > >.
Referenced by SkylineMatrix< _Scalar, _Options >::insert().
|
inline |
After an insertion session, you should call the finalize() function.
References SkylineMatrix< _Scalar, _Options >::cols(), SkylineMatrix< _Scalar, _Options >::innerSize(), SkylineMatrix< _Scalar, _Options >::outerSize(), and SkylineMatrix< _Scalar, _Options >::rows().
|
inline |
Reimplemented from SkylineMatrixBase< SkylineMatrix< _Scalar, _Options > >.
|
inline |
Reimplemented from SkylineMatrixBase< SkylineMatrix< _Scalar, _Options > >.
Referenced by SkylineMatrix< _Scalar, _Options >::insert().
|
inline |
Preallocates reserveSize non zeros
|
inline |
Resizes the matrix to a rows x cols matrix and initializes it to zero
References SkylineMatrix< _Scalar, _Options >::rows().
|
inline |
Reimplemented from SkylineMatrixBase< SkylineMatrix< _Scalar, _Options > >.
Referenced by SkylineMatrix< _Scalar, _Options >::finalize(), SkylineMatrix< _Scalar, _Options >::insert(), and SkylineMatrix< _Scalar, _Options >::resize().
|
inline |
Removes all non zeros
| Scalar sum | ( | ) | const |
Overloaded for performance
1.8.1.1