compbio
Classes | Public Member Functions | Public Attributes | Protected Types | Protected Attributes | Friends | List of all members
Eigen::SkylineMatrix< _Scalar, _Options > Class Template Reference

The main skyline matrix class. More...

#include <SkylineMatrix.h>

Inheritance diagram for Eigen::SkylineMatrix< _Scalar, _Options >:
Eigen::SkylineMatrixBase< SkylineMatrix< _Scalar, _Options > > Eigen::EigenBase< Derived >

Classes

class  InnerLowerIterator
 
class  InnerUpperIterator
 

Public Member Functions

Index rows () const
 
Index cols () const
 
Index innerSize () const
 
Index outerSize () const
 
Index upperNonZeros () const
 
Index lowerNonZeros () const
 
Index upperNonZeros (Index j) const
 
Index lowerNonZeros (Index j) const
 
const Scalar * _diagPtr () const
 
Scalar * _diagPtr ()
 
const Scalar * _upperPtr () const
 
Scalar * _upperPtr ()
 
const Scalar * _lowerPtr () const
 
Scalar * _lowerPtr ()
 
const Index_upperProfilePtr () const
 
Index_upperProfilePtr ()
 
const Index_lowerProfilePtr () const
 
Index_lowerProfilePtr ()
 
Scalar coeff (Index row, Index col) const
 
Scalar & coeffRef (Index row, Index col)
 
Scalar coeffDiag (Index idx) const
 
Scalar coeffLower (Index row, Index col) const
 
Scalar coeffUpper (Index row, Index col) const
 
Scalar & coeffRefDiag (Index idx)
 
Scalar & coeffRefLower (Index row, Index col)
 
bool coeffExistLower (Index row, Index col)
 
Scalar & coeffRefUpper (Index row, Index col)
 
bool coeffExistUpper (Index row, Index col)
 
void setZero ()
 Removes all non zeros.
 
Index nonZeros () const
 
void reserve (Index reserveSize, Index reserveUpperSize, Index reserveLowerSize)
 Preallocates reserveSize non zeros.
 
EIGEN_DONT_INLINE Scalar & insert (Index row, Index col)
 
void finalize ()
 Must be called after inserting a set of non zero entries.
 
void squeeze ()
 
void prune (Scalar reference, RealScalar epsilon=dummy_precision< RealScalar >())
 
void resize (size_t rows, size_t cols)
 Resizes the matrix to a rows x cols matrix and initializes it to zero. More...
 
void resizeNonZeros (Index size)
 
 SkylineMatrix (size_t rows, size_t cols)
 
template<typename OtherDerived >
 SkylineMatrix (const SkylineMatrixBase< OtherDerived > &other)
 
 SkylineMatrix (const SkylineMatrix &other)
 
void swap (SkylineMatrix &other)
 
SkylineMatrixoperator= (const SkylineMatrix &other)
 
template<typename OtherDerived >
SkylineMatrixoperator= (const SkylineMatrixBase< OtherDerived > &other)
 
 ~SkylineMatrix ()
 Destructor.
 
Scalar sum () const
 Overloaded for performance.
 
- Public Member Functions inherited from Eigen::SkylineMatrixBase< SkylineMatrix< _Scalar, _Options > >
const SkylineMatrix< _Scalar, _Options > & derived () const
 
SkylineMatrix< _Scalar, _Options > & derived ()
 
SkylineMatrix< _Scalar, _Options > & const_cast_derived () const
 
Index rows () const
 
Index cols () const
 
Index size () const
 
Index nonZeros () const
 
Index outerSize () const
 
Index innerSize () const
 
bool isRValue () const
 
SkylineMatrix< _Scalar, _Options > & markAsRValue ()
 
SkylineMatrix< _Scalar, _Options > & operator= (const SkylineMatrix< _Scalar, _Options > &other)
 
SkylineMatrix< _Scalar, _Options > & operator= (const SkylineMatrixBase< OtherDerived > &other)
 
SkylineMatrix< _Scalar, _Options > & operator= (const SkylineProduct< Lhs, Rhs, SkylineTimeSkylineProduct > &product)
 
void assignGeneric (const OtherDerived &other)
 
const SkylineProductReturnType< SkylineMatrix< _Scalar, _Options >, OtherDerived >::Type operator* (const MatrixBase< OtherDerived > &other) const
 
EIGEN_STRONG_INLINE const SkylineProductReturnType< SkylineMatrix< _Scalar, _Options >, OtherDerived >::Type operator* (const MatrixBase< OtherDerived > &other) const
 
void evalTo (MatrixBase< DenseDerived > &dst) const
 
Matrix< Scalar, RowsAtCompileTime, ColsAtCompileTimetoDense () const
 
EIGEN_STRONG_INLINE const internal::eval< SkylineMatrix< _Scalar, _Options >, IsSkyline >::type eval () const
 
- Public Member Functions inherited from Eigen::EigenBase< Derived >
EIGEN_DEVICE_FUNC Derived & derived ()
 
EIGEN_DEVICE_FUNC const Derived & derived () const
 
EIGEN_DEVICE_FUNC Derived & const_cast_derived () const
 
EIGEN_DEVICE_FUNC const Derived & const_derived () const
 
EIGEN_DEVICE_FUNC Index rows () const
 
EIGEN_DEVICE_FUNC Index cols () const
 
EIGEN_DEVICE_FUNC Index size () const
 
template<typename Dest >
EIGEN_DEVICE_FUNC void evalTo (Dest &dst) const
 
template<typename Dest >
EIGEN_DEVICE_FUNC void addTo (Dest &dst) const
 
template<typename Dest >
EIGEN_DEVICE_FUNC void subTo (Dest &dst) const
 
template<typename Dest >
EIGEN_DEVICE_FUNC void applyThisOnTheRight (Dest &dst) const
 
template<typename Dest >
EIGEN_DEVICE_FUNC void applyThisOnTheLeft (Dest &dst) const
 

Public Attributes

Indexm_colStartIndex
 
Indexm_rowStartIndex
 
SkylineStorage< Scalar > m_data
 

Protected Types

typedef SkylineMatrix< Scalar,(Flags &~RowMajorBit)|(IsRowMajor ? RowMajorBit :0) > TransposedSkylineMatrix
 

Protected Attributes

Index m_outerSize
 
Index m_innerSize
 
- Protected Attributes inherited from Eigen::SkylineMatrixBase< SkylineMatrix< _Scalar, _Options > >
bool m_isRValue
 

Friends

std::ostream & operator<< (std::ostream &s, const SkylineMatrix &m)
 

Additional Inherited Members

- Public Types inherited from Eigen::SkylineMatrixBase< SkylineMatrix< _Scalar, _Options > >
enum  
 
typedef internal::traits< SkylineMatrix< _Scalar, _Options > >::Scalar Scalar
 
typedef internal::traits< SkylineMatrix< _Scalar, _Options > >::StorageKind StorageKind
 
typedef internal::index< StorageKind >::type Index
 
typedef NumTraits< Scalar >::Real RealScalar
 This is the "real scalar" type; if the Scalar type is already real numbers (e.g. More...
 
typedef Matrix< Scalar, EIGEN_SIZE_MAX(RowsAtCompileTime, ColsAtCompileTime), EIGEN_SIZE_MAX(RowsAtCompileTime, ColsAtCompileTime) > SquareMatrixType
 type of the equivalent square matrix
 
- Public Types inherited from Eigen::EigenBase< Derived >
typedef Eigen::Index Index
 The interface type of indices. More...
 
typedef internal::traits< Derived >::StorageKind StorageKind
 

Detailed Description

template<typename _Scalar, int _Options>
class Eigen::SkylineMatrix< _Scalar, _Options >

The main skyline matrix class.

This class implements a skyline matrix using the very uncommon storage scheme.

Parameters
_Scalarthe scalar type, i.e. the type of the coefficients
_OptionsUnion of bit flags controlling the storage scheme. Currently the only possibility is RowMajor. The default is 0 which means column-major.

Member Function Documentation

§ insert()

template<typename _Scalar , int _Options>
EIGEN_DONT_INLINE Scalar& Eigen::SkylineMatrix< _Scalar, _Options >::insert ( Index  row,
Index  col 
)
inline
Returns
a reference to a novel non zero coefficient with coordinates row x col.
Warning
This function can be extremely slow if the non zero coefficients are not inserted in a coherent order.

After an insertion session, you should call the finalize() function.

§ nonZeros()

template<typename _Scalar , int _Options>
Index Eigen::SkylineMatrix< _Scalar, _Options >::nonZeros ( ) const
inline
Returns
the number of non zero coefficients

§ resize()

template<typename _Scalar , int _Options>
void Eigen::SkylineMatrix< _Scalar, _Options >::resize ( size_t  rows,
size_t  cols 
)
inline

Resizes the matrix to a rows x cols matrix and initializes it to zero.

See also
resizeNonZeros(Index), reserve(), setZero()

The documentation for this class was generated from the following file: