Loading [MathJax]/jax/output/NativeMML/config.js
 |
Isis Developer Reference
|
Go to the documentation of this file. 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);
int getLeadingColumnsForBlock(int nblockColumn)
Sums and returns the number of columns in each matrix block prior to nblockColumn.
Definition: SparseBlockMatrix.cpp:1054
void printClean(std::ostream &outstream)
Prints matrix blocks to std output stream out for debugging.
Definition: SparseBlockMatrix.cpp:578
void copyToBoost(boost::numeric::ublas::compressed_matrix< double > &B)
Copies a SparseBlockRowMatrix to a Boost compressed_matrix.
Definition: SparseBlockMatrix.cpp:626
SparseBlockRowMatrix & operator=(const SparseBlockRowMatrix &src)
"Equals" operator.
Definition: SparseBlockMatrix.cpp:482
QDebug operator<<(QDebug debug, const Hillshade &hillshade)
Print this class out to a QDebug object.
Definition: Hillshade.cpp:314
bool write(std::ofstream &fp_out, bool binary=true)
SparseBlockColumnMatrix.
Definition: SparseBlockMatrix.h:58
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
void copy(const SparseBlockRowMatrix &src)
Copy method.
Definition: SparseBlockMatrix.cpp:458
void zeroBlocks()
Sets all elements of all matrix blocks to zero.
Definition: SparseBlockMatrix.cpp:611
~SparseBlockRowMatrix()
Destructor.
Definition: SparseBlockMatrix.cpp:428
SparseBlockRowMatrix()
Definition: SparseBlockMatrix.h:128
void wipe()
Deletes all pointer elements and removes them from the map.
Definition: SparseBlockMatrix.cpp:437
void setStartColumn(int nStartColumn)
Sets starting column for block in full matrix.
Definition: SparseBlockMatrix.cpp:147
SparseBlockColumnMatrix & operator=(const SparseBlockColumnMatrix &src)
"Equals" operator.
Definition: SparseBlockMatrix.cpp:99
void print(std::ostream &outstream)
Prints matrix blocks to std output stream out for debugging.
Definition: SparseBlockMatrix.cpp:239
int numberOfRows()
Returns total number of rows in map (this needs to be clarified and maybe rewritten).
Definition: SparseBlockMatrix.cpp:215
QDebug operator<<(QDebug dbg, const SparseBlockMatrix &m)
Writes matrix to QDebug stream.
Definition: SparseBlockMatrix.cpp:1160
boost::numeric::ublas::matrix< double > Matrix
Definition for an Isis::LinearAlgebra::Matrix of doubles.
Definition: LinearAlgebra.h:100
void printClean(std::ostream &outstream)
Prints matrix blocks to std output stream out for debugging.
Definition: SparseBlockMatrix.cpp:266
SparseBlockColumnMatrix()
Default constructor.
Definition: SparseBlockMatrix.cpp:35
~SparseBlockColumnMatrix()
Destructor.
Definition: SparseBlockMatrix.cpp:43
int startColumn() const
Sets starting column for block in full matrix.
Definition: SparseBlockMatrix.cpp:157
int numberOfElements()
Returns total number of matrix elements in map (NOTE: NOT the number of matrix blocks).
Definition: SparseBlockMatrix.cpp:530
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 getLeadingRowsForBlock(int nblockRow)
Sums and returns the number of rows in each matrix block prior to nblockRow.
Definition: SparseBlockMatrix.cpp:1088
int numberOfElements()
Returns number of matrix elements in matrix.
Definition: SparseBlockMatrix.cpp:963
~SparseBlockMatrix()
Destructor.
Definition: SparseBlockMatrix.cpp:809
int m_startColumn
starting column for this Block Column in full matrix e.g.
Definition: SparseBlockMatrix.h:84
void copy(const SparseBlockColumnMatrix &src)
Copy method.
Definition: SparseBlockMatrix.cpp:73
void wipe()
Deletes all pointer elements and removes them from the list.
Definition: SparseBlockMatrix.cpp:818
QDataStream & operator>>(QDataStream &stream, SparseBlockMatrix &sparseBlockMatrix)
Reads matrix from binary disk file pointed to by QDataStream stream.
Definition: SparseBlockMatrix.cpp:1141
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()
Definition: SparseBlockMatrix.h:189
LinearAlgebra::Matrix * getBlock(int column, int row)
Returns pointer to boost matrix at position (column, row).
Definition: SparseBlockMatrix.cpp:986
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
void print(std::ostream &outstream)
Prints matrix blocks to std output stream out for debugging.
Definition: SparseBlockMatrix.cpp:552
void printClean(std::ostream &outstream)
Prints matrix blocks to std output stream out for debugging.
Definition: SparseBlockMatrix.cpp:1029
int getLeadingColumnsForBlock(int nblockColumn)
Sums and returns the number of columns in each matrix block prior to nblockColumn.
Definition: SparseBlockMatrix.cpp:661
void zeroBlocks()
Sets all elements of all matrix blocks to zero.
Definition: SparseBlockMatrix.cpp:299
void zeroBlocks()
Sets all elements of all matrix blocks to zero.
Definition: SparseBlockMatrix.cpp:994
bool setNumberOfColumns(int n)
Initializes number of columns (SparseBlockColumnMatrix).
Definition: SparseBlockMatrix.cpp:873
This is free and unencumbered software released into the public domain.
Definition: CubeIoHandler.h:22
int numberOfColumns()
Returns total number of columns in map (NOTE: NOT the number of matrix blocks).
Definition: SparseBlockMatrix.cpp:190
int numberOfDiagonalBlocks()
Returns number of diagonal matrix blocks (equivalent to size - there is one per column).
Definition: SparseBlockMatrix.cpp:924
int numberOfElements()
Returns total number of matrix elements in map (NOTE: NOT the number of matrix blocks).
Definition: SparseBlockMatrix.cpp:168
Adds specific functionality to C++ strings.
Definition: IString.h:165
SparseBlockRowMatrix.
Definition: SparseBlockMatrix.h:125
void copy(const SparseBlockMatrix &src)
Copy method.
Definition: SparseBlockMatrix.cpp:839
std::istream & operator>>(std::istream &is, CSVReader &csv)
Input read operator for input stream sources.
Definition: CSVReader.cpp:447
SparseBlockMatrix.
Definition: SparseBlockMatrix.h:186
int numberOfBlocks()
Returns total number of blocks in matrix.
Definition: SparseBlockMatrix.cpp:905
void wipe()
Deletes all pointer elements and removes them from the map.
Definition: SparseBlockMatrix.cpp:52
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
SparseBlockMatrix & operator=(const SparseBlockMatrix &src)
"Equals" operator.
Definition: SparseBlockMatrix.cpp:855
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16