Isis 3.0 Object Programmers' Reference |
Home |
#include <SparseBlockMatrix.h>
Public Member Functions | |
~SparseBlockRowMatrix () | |
Destructor. | |
SparseBlockRowMatrix (const SparseBlockRowMatrix &src) | |
Copy constructor. | |
SparseBlockRowMatrix & | operator= (const SparseBlockRowMatrix &src) |
"Equals" operator. | |
void | wipe () |
Deletes all pointer elements and removes them from the map. | |
void | copy (const SparseBlockRowMatrix &src) |
Copy method. | |
void | zeroBlocks () |
Sets all elements of all matrix blocks to zero. | |
bool | InsertMatrixBlock (int nRowBlock, int nRows, int nCols) |
Inserts a "newed" boost matrix<double>* of size (nRows, nCols) into the map with the block row number as key. | |
void | copyToBoost (boost::numeric::ublas::compressed_matrix< double > &B) |
Copies a SparseBlockRowMatrix to a Boost compressed_matrix This may be a temporary implementation. | |
int | numberOfElements () |
Returns total number of matrix elements in map (NOTE: NOT the number of matrix blocks). | |
void | print (std::ostream &outstream) |
Prints matrix blocks to std output stream out for debugging. | |
This class is bla bla bla.
2011-07-29 Ken Edmundson Created
2014-02-25 Ken Edmundson - operators to read/write matrices to binary disk file and to write matrices to QDebug stream.
Definition at line 93 of file SparseBlockMatrix.h.
Isis::SparseBlockRowMatrix::~SparseBlockRowMatrix | ( | ) |
Destructor.
See description of wipe method below.
Definition at line 324 of file SparseBlockMatrix.cpp.
Isis::SparseBlockRowMatrix::SparseBlockRowMatrix | ( | const SparseBlockRowMatrix & | src | ) |
Copy constructor.
Calls method immediately below.
Definition at line 343 of file SparseBlockMatrix.cpp.
void Isis::SparseBlockRowMatrix::copy | ( | const SparseBlockRowMatrix & | src | ) |
Copy method.
Definition at line 351 of file SparseBlockMatrix.cpp.
void Isis::SparseBlockRowMatrix::copyToBoost | ( | boost::numeric::ublas::compressed_matrix< double > & | B | ) |
Copies a SparseBlockRowMatrix to a Boost compressed_matrix This may be a temporary implementation.
Definition at line 472 of file SparseBlockMatrix.cpp.
bool Isis::SparseBlockRowMatrix::InsertMatrixBlock | ( | int | nRowBlock, |
int | nRows, | ||
int | nCols | ||
) |
Inserts a "newed" boost matrix<double>* of size (nRows, nCols) into the map with the block row number as key.
The matrix::clear call initializes the matrix elements to zero. If an entry exists at the key nRowBlock, no insertion is made.
nRowBlock | block row number of inserted matrix (key into map) |
nRows | number of rows in matrix to be inserted |
nCols | number of columns in matrix to be inserted |
Definition at line 393 of file SparseBlockMatrix.cpp.
Referenced by Isis::operator>>(), and Isis::BundleAdjust::product_ATransB().
int Isis::SparseBlockRowMatrix::numberOfElements | ( | ) |
Returns total number of matrix elements in map (NOTE: NOT the number of matrix blocks).
The sum of all the elements of all the matrix blocks.
Definition at line 415 of file SparseBlockMatrix.cpp.
SparseBlockRowMatrix & Isis::SparseBlockRowMatrix::operator= | ( | const SparseBlockRowMatrix & | src | ) |
"Equals" operator.
Definition at line 373 of file SparseBlockMatrix.cpp.
void Isis::SparseBlockRowMatrix::print | ( | std::ostream & | outstream | ) |
Prints matrix blocks to std output stream out for debugging.
Definition at line 435 of file SparseBlockMatrix.cpp.
void Isis::SparseBlockRowMatrix::wipe | ( | ) |
Deletes all pointer elements and removes them from the map.
Effectively, a destructor, and in fact, called by the ~SparseBlockColumnMatrix above.
Definition at line 334 of file SparseBlockMatrix.cpp.
void Isis::SparseBlockRowMatrix::zeroBlocks | ( | ) |
Sets all elements of all matrix blocks to zero.
Definition at line 459 of file SparseBlockMatrix.cpp.
Referenced by Isis::BundleAdjust::formNormals2_CHOLMOD().