SparsePattern Class Reference

A way to store sparse matrix patterns. More...

#include <sparse_pattern.h>

List of all members.

Public Types

typedef std::vector< IntervalIntervalList

Public Member Functions

 SparsePattern (const BasisInfoStruct &bis_)
 ~SparsePattern ()
void add (int nRanges, const int(*range)[2])
 marks specified ranges as used.
void save (FILE *f) const
 Save itself to the specified stream.
void load (FILE *f)
 Load itself from the specified stream.
const Columnoperator[] (int column) const
int getColumnSize (int col) const
 returns the number of stored elements for specified column.
int size () const
 Returns the dimension of the pattern.
int sizeTotal () const
 returns the total number of nonzero elements.

Private Attributes

const BasisInfoStructbis
Columnranges

Classes

struct  Column
struct  Interval
 ranges are upper-exclusive: involve i: lo <= i < hi. More...


Detailed Description

A way to store sparse matrix patterns.


Member Typedef Documentation

typedef std::vector<Interval> SparsePattern::IntervalList


Constructor & Destructor Documentation

SparsePattern::SparsePattern ( const BasisInfoStruct bis_  )  [inline, explicit]

SparsePattern::~SparsePattern (  )  [inline]


Member Function Documentation

void SparsePattern::add ( int  nRanges,
const int *  range[2] 
)

marks specified ranges as used.

int SparsePattern::getColumnSize ( int  col  )  const [inline]

returns the number of stored elements for specified column.

void SparsePattern::load ( FILE *  f  ) 

Load itself from the specified stream.

const Column& SparsePattern::operator[] ( int  column  )  const [inline]

void SparsePattern::save ( FILE *  f  )  const

Save itself to the specified stream.

int SparsePattern::size (  )  const [inline]

Returns the dimension of the pattern.

Auxiliary function.

int SparsePattern::sizeTotal (  )  const

returns the total number of nonzero elements.


Member Data Documentation

const BasisInfoStruct& SparsePattern::bis [private]

Column* SparsePattern::ranges [private]


The documentation for this class was generated from the following files:
Generated on Mon Sep 17 14:30:42 2012 for ergo by  doxygen 1.4.7