MyraMath
threshold.h
Go to the documentation of this file.
1 // ========================================================================= //
2 // This file is part of MyraMath, copyright (c) 2014-2019 by Ryan A Chilton //
3 // and distributed by MyraCore, LLC. See LICENSE.txt for license terms. //
4 // ========================================================================= //
5 
6 #ifndef MYRAMATH_SPARSE_THRESHOLD_H
7 #define MYRAMATH_SPARSE_THRESHOLD_H
8 
14 #include <myramath/MYRAMATH_EXPORT.h>
16 
17 namespace myra {
18 
19 template<class Number> class CMatrixRange;
20 template<class Number> class CSparseMatrixRange;
21 template<class Number> class SparseMatrix;
22 
24 MYRAMATH_EXPORT SparseMatrix<NumberS> dense2sparse_threshold(const CMatrixRange<NumberS>& A, float tolerance = 1.0e-4);
25 MYRAMATH_EXPORT SparseMatrix<NumberD> dense2sparse_threshold(const CMatrixRange<NumberD>& A, double tolerance = 1.0e-9);
26 MYRAMATH_EXPORT SparseMatrix<NumberC> dense2sparse_threshold(const CMatrixRange<NumberC>& A, float tolerance = 1.0e-4);
27 MYRAMATH_EXPORT SparseMatrix<NumberZ> dense2sparse_threshold(const CMatrixRange<NumberZ>& A, double tolerance = 1.0e-9);
28 
30 MYRAMATH_EXPORT SparseMatrix<NumberS> threshold(const CSparseMatrixRange<NumberS>& A, float tolerance = 1.0e-4);
31 MYRAMATH_EXPORT SparseMatrix<NumberD> threshold(const CSparseMatrixRange<NumberD>& A, double tolerance = 1.0e-9);
32 MYRAMATH_EXPORT SparseMatrix<NumberC> threshold(const CSparseMatrixRange<NumberC>& A, float tolerance = 1.0e-4);
33 MYRAMATH_EXPORT SparseMatrix<NumberZ> threshold(const CSparseMatrixRange<NumberZ>& A, double tolerance = 1.0e-9);
34 
35 } // namespace
36 
37 #endif
Definition: syntax.dox:1
Various utility functions/classes related to scalar Number types.