1#ifndef SparseBlockMatrix_h 
    2#define SparseBlockMatrix_h 
   19#include <boost/numeric/ublas/fwd.hpp> 
   58      public QMap< int, LinearAlgebra::Matrix * > {
 
   80    void print(std::ostream& outstream);
 
 
  125      public QMap< int, LinearAlgebra::Matrix  * > {
 
  142    void copyToBoost(boost::numeric::ublas::compressed_matrix<double>& B);
 
  145    void print(std::ostream& outstream);
 
 
  150  QDataStream &
operator<<(QDataStream &, 
const SparseBlockRowMatrix &);
 
  151  QDataStream &
operator>>(QDataStream &, SparseBlockRowMatrix &);
 
  154  QDebug 
operator<<(QDebug dbg, 
const SparseBlockRowMatrix &sbcm);
 
  208    void print(std::ostream& outstream);
 
  210    bool write(std::ofstream &fp_out, 
bool binary=
true);
 
 
boost::numeric::ublas::matrix< double > Matrix
Definition for an Isis::LinearAlgebra::Matrix of doubles.
Definition LinearAlgebra.h:102
 
SparseBlockColumnMatrix.
Definition SparseBlockMatrix.h:58
 
int numberOfElements()
Returns total number of matrix elements in map (NOTE: NOT the number of matrix blocks).
Definition SparseBlockMatrix.cpp:168
 
void wipe()
Deletes all pointer elements and removes them from the map.
Definition SparseBlockMatrix.cpp:52
 
void printClean(std::ostream &outstream)
Prints matrix blocks to std output stream out for debugging.
Definition SparseBlockMatrix.cpp:266
 
int startColumn() const
Sets starting column for block in full matrix.
Definition SparseBlockMatrix.cpp:157
 
~SparseBlockColumnMatrix()
Destructor.
Definition SparseBlockMatrix.cpp:43
 
void print(std::ostream &outstream)
Prints matrix blocks to std output stream out for debugging.
Definition SparseBlockMatrix.cpp:239
 
SparseBlockColumnMatrix & operator=(const SparseBlockColumnMatrix &src)
"Equals" operator.
Definition SparseBlockMatrix.cpp:99
 
void zeroBlocks()
Sets all elements of all matrix blocks to zero.
Definition SparseBlockMatrix.cpp:299
 
bool insertMatrixBlock(int nColumnBlock, int nRows, int nCols)
Inserts a "newed" LinearAlgebra::Matrix pointer of size (nRows, nCols) into the map with the block co...
Definition SparseBlockMatrix.cpp:121
 
int numberOfColumns()
Returns total number of columns in map (NOTE: NOT the number of matrix blocks).
Definition SparseBlockMatrix.cpp:190
 
int numberOfRows()
Returns total number of rows in map (this needs to be clarified and maybe rewritten).
Definition SparseBlockMatrix.cpp:215
 
int m_startColumn
starting column for this Block Column in full matrix e.g.
Definition SparseBlockMatrix.h:84
 
SparseBlockColumnMatrix()
Default constructor.
Definition SparseBlockMatrix.cpp:35
 
void copy(const SparseBlockColumnMatrix &src)
Copy method.
Definition SparseBlockMatrix.cpp:73
 
void setStartColumn(int nStartColumn)
Sets starting column for block in full matrix.
Definition SparseBlockMatrix.cpp:147
 
SparseBlockMatrix.
Definition SparseBlockMatrix.h:186
 
void copy(const SparseBlockMatrix &src)
Copy method.
Definition SparseBlockMatrix.cpp:839
 
void zeroBlocks()
Sets all elements of all matrix blocks to zero.
Definition SparseBlockMatrix.cpp:994
 
int numberOfBlocks()
Returns total number of blocks in matrix.
Definition SparseBlockMatrix.cpp:905
 
int numberOfDiagonalBlocks()
Returns number of diagonal matrix blocks (equivalent to size - there is one per column).
Definition SparseBlockMatrix.cpp:924
 
int getLeadingRowsForBlock(int nblockRow)
Sums and returns the number of rows in each matrix block prior to nblockRow.
Definition SparseBlockMatrix.cpp:1088
 
void wipe()
Deletes all pointer elements and removes them from the list.
Definition SparseBlockMatrix.cpp:818
 
SparseBlockMatrix()
Definition SparseBlockMatrix.h:189
 
bool insertMatrixBlock(int nColumnBlock, int nRowBlock, int nRows, int nCols)
Inserts a "newed" boost LinearAlgebra::Matrix pointer of size (nRows, nCols) into the matrix at nColu...
Definition SparseBlockMatrix.cpp:895
 
int numberOfOffDiagonalBlocks()
Returns number of off-diagonal matrix blocks.
Definition SparseBlockMatrix.cpp:953
 
void print(std::ostream &outstream)
Prints matrix blocks to std output stream out for debugging.
Definition SparseBlockMatrix.cpp:1005
 
SparseBlockMatrix & operator=(const SparseBlockMatrix &src)
"Equals" operator.
Definition SparseBlockMatrix.cpp:855
 
~SparseBlockMatrix()
Destructor.
Definition SparseBlockMatrix.cpp:809
 
void printClean(std::ostream &outstream)
Prints matrix blocks to std output stream out for debugging.
Definition SparseBlockMatrix.cpp:1029
 
LinearAlgebra::Matrix * getBlock(int column, int row)
Returns pointer to boost matrix at position (column, row).
Definition SparseBlockMatrix.cpp:986
 
bool setNumberOfColumns(int n)
Initializes number of columns (SparseBlockColumnMatrix).
Definition SparseBlockMatrix.cpp:873
 
int getLeadingColumnsForBlock(int nblockColumn)
Sums and returns the number of columns in each matrix block prior to nblockColumn.
Definition SparseBlockMatrix.cpp:1054
 
int numberOfElements()
Returns number of matrix elements in matrix.
Definition SparseBlockMatrix.cpp:963
 
bool write(std::ofstream &fp_out, bool binary=true)
 
SparseBlockRowMatrix.
Definition SparseBlockMatrix.h:125
 
int numberOfElements()
Returns total number of matrix elements in map (NOTE: NOT the number of matrix blocks).
Definition SparseBlockMatrix.cpp:530
 
void print(std::ostream &outstream)
Prints matrix blocks to std output stream out for debugging.
Definition SparseBlockMatrix.cpp:552
 
SparseBlockRowMatrix()
Definition SparseBlockMatrix.h:128
 
void copy(const SparseBlockRowMatrix &src)
Copy method.
Definition SparseBlockMatrix.cpp:458
 
void printClean(std::ostream &outstream)
Prints matrix blocks to std output stream out for debugging.
Definition SparseBlockMatrix.cpp:578
 
SparseBlockRowMatrix & operator=(const SparseBlockRowMatrix &src)
"Equals" operator.
Definition SparseBlockMatrix.cpp:482
 
~SparseBlockRowMatrix()
Destructor.
Definition SparseBlockMatrix.cpp:428
 
void copyToBoost(boost::numeric::ublas::compressed_matrix< double > &B)
Copies a SparseBlockRowMatrix to a Boost compressed_matrix.
Definition SparseBlockMatrix.cpp:626
 
void zeroBlocks()
Sets all elements of all matrix blocks to zero.
Definition SparseBlockMatrix.cpp:611
 
void wipe()
Deletes all pointer elements and removes them from the map.
Definition SparseBlockMatrix.cpp:437
 
int getLeadingColumnsForBlock(int nblockColumn)
Sums and returns the number of columns in each matrix block prior to nblockColumn.
Definition SparseBlockMatrix.cpp:661
 
bool insertMatrixBlock(int nRowBlock, int nRows, int nCols)
Inserts a "newed" LinearAlgebra::Matrix pointer of size (nRows, nCols) into the map with the block ro...
Definition SparseBlockMatrix.cpp:507
 
This is free and unencumbered software released into the public domain.
Definition BoxcarCachingAlgorithm.h:13
 
This is free and unencumbered software released into the public domain.
Definition CubeIoHandler.h:22
 
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16
 
std::istream & operator>>(std::istream &is, CSVReader &csv)
Input read operator for input stream sources.
Definition CSVReader.cpp:447
 
QDebug operator<<(QDebug debug, const Hillshade &hillshade)
Print this class out to a QDebug object.
Definition Hillshade.cpp:313