MyraMath
Classes | Functions
threshold.h File Reference

Generates a SparseMatrix by thresholding a dense Matrix, or another SparseMatrix. More...

#include <myramath/MYRAMATH_EXPORT.h>
#include <myramath/utility/Number.h>
Include dependency graph for threshold.h:

Go to the source code of this file.

Classes

class  myra::CMatrixRange< Number >
 Represents a const MatrixRange. More...
 
class  myra::CSparseMatrixRange< Number >
 Represents a const SparseMatrixRange. More...
 
class  myra::SparseMatrix< Number >
 Stores an IxJ matrix A in compressed sparse column format. More...
 

Functions

SparseMatrix< NumberS > myra::dense2sparse_threshold (const CMatrixRange< NumberS > &A, float tolerance=1.0e-4)
 Thresholds a Matrix into a SparseMatrix.
 
SparseMatrix< NumberD > myra::dense2sparse_threshold (const CMatrixRange< NumberD > &A, double tolerance)
 
SparseMatrix< NumberC > myra::dense2sparse_threshold (const CMatrixRange< NumberC > &A, float tolerance)
 
SparseMatrix< NumberZ > myra::dense2sparse_threshold (const CMatrixRange< NumberZ > &A, double tolerance)
 
SparseMatrix< NumberS > myra::threshold (const CSparseMatrixRange< NumberS > &A, float tolerance)
 Thresholds one SparseMatrix into another (e.g. drops tiny values)
 
SparseMatrix< NumberD > myra::threshold (const CSparseMatrixRange< NumberD > &A, double tolerance)
 
SparseMatrix< NumberC > myra::threshold (const CSparseMatrixRange< NumberC > &A, float tolerance)
 
SparseMatrix< NumberZ > myra::threshold (const CSparseMatrixRange< NumberZ > &A, double tolerance)
 

Detailed Description

Generates a SparseMatrix by thresholding a dense Matrix, or another SparseMatrix.