So-Bogus
A c++ sparse block matrix library aimed at Second Order cone problems
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
bogus::CompoundSparseBlockIndex< FirstIndexType, SecondIndexType, NativeOrder > Struct Template Reference
Inheritance diagram for bogus::CompoundSparseBlockIndex< FirstIndexType, SecondIndexType, NativeOrder >:
bogus::SparseBlockIndexBase< CompoundSparseBlockIndex< FirstIndexType, SecondIndexType, NativeOrder > >

Public Types

typedef FirstIndexType::Index Index
 
typedef FirstIndexType::BlockPtr BlockPtr
 
typedef SparseBlockIndexBase
< CompoundSparseBlockIndex
< FirstIndexType,
SecondIndexType, NativeOrder > > 
Base
 
typedef Base::InnerOffsetsType InnerOffsetsType
 
typedef Base::InnerIterator InnerIterator
 
typedef SparseBlockIndexTraits
< CompoundSparseBlockIndex
< FirstIndexType,
SecondIndexType, NativeOrder > > 
Traits
 

Public Member Functions

 CompoundSparseBlockIndex (const SparseBlockIndexBase< FirstIndexType > &index1, const SparseBlockIndexBase< SecondIndexType > &index2)
 
Index outerSize () const
 
Index nonZeros () const
 
const InnerOffsetsType & innerOffsetsArray () const
 
Index size (Index outerIdx) const
 
CompoundSparseBlockIndex
< FirstIndexType,
SecondIndexType, NativeOrder > & 
derived ()
 
const CompoundSparseBlockIndex
< FirstIndexType,
SecondIndexType, NativeOrder > & 
derived () const
 
Index innerSize () const
 Number of elements of the minor indexing direction. More...
 
bool hasInnerOffsets () const
 Returns whether the innerOffsetsArray() has been filled.
 
const Index * innerOffsetsData () const
 Same as innerOffsetsArray, but returns a pointer instead. Assumes hasInnerOffsets()
 
InnerIterator begin (const Index outerIdx) const
 Returns an iterator to the first non-empty block of outerIdx.
 
InnerIterator last (const Index outerIdx) const
 Returns an iterator to the last non-empty block of outerIdx.
 
InnerIterator end (const Index outerIdx) const
 Returns an iterator to the end of outerIdx.
 

Public Attributes

const FirstIndexType & first
 
const SecondIndexType & second
 
const InnerOffsetsType & innerOffsets
 
bool valid
 Whether this index is currently valid.
 

Member Function Documentation

Index bogus::SparseBlockIndexBase< CompoundSparseBlockIndex< FirstIndexType, SecondIndexType, NativeOrder > >::innerSize ( ) const
inherited

Number of elements of the minor indexing direction.

i.e. number of cols for a row-major index


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