MyraMath
minmax.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_MINMAX_H
7 #define MYRAMATH_SPARSE_MINMAX_H
8 
14 #include <myramath/MYRAMATH_EXPORT.h>
16 #include <myramath/dense/minmax.h>
17 
18 namespace myra {
19 
20 // Forward declarations.
21 template<class Number> class CSparseMatrixRange;
22 
24 MYRAMATH_EXPORT MatrixExtrema<NumberS> min(const CSparseMatrixRange<NumberS>& A);
25 MYRAMATH_EXPORT MatrixExtrema<NumberD> min(const CSparseMatrixRange<NumberD>& A);
26 MYRAMATH_EXPORT MatrixExtrema<NumberC> min(const CSparseMatrixRange<NumberC>& A);
27 MYRAMATH_EXPORT MatrixExtrema<NumberZ> min(const CSparseMatrixRange<NumberZ>& A);
28 
30 MYRAMATH_EXPORT MatrixExtrema<NumberS> max(const CSparseMatrixRange<NumberS>& A);
31 MYRAMATH_EXPORT MatrixExtrema<NumberD> max(const CSparseMatrixRange<NumberD>& A);
32 MYRAMATH_EXPORT MatrixExtrema<NumberC> max(const CSparseMatrixRange<NumberC>& A);
33 MYRAMATH_EXPORT MatrixExtrema<NumberZ> max(const CSparseMatrixRange<NumberZ>& A);
34 
35 }
36 
37 #endif
Expression< 1, NumberS > min(const Expression< 1, NumberS > &A, const Expression< 1, NumberS > &B)
Returns the smaller of two real Expression&#39;s, min(A(i),B(i))
Definition: functions_measure.cpp:60
Expression< 1, NumberS > max(const Expression< 1, NumberS > &A, const Expression< 1, NumberS > &B)
Returns the larger of two real Expression&#39;s, max(A(i),B(i))
Definition: functions_measure.cpp:83
Definition: syntax.dox:1
Routines to find the extremal values of a Matrix or Vector.
Various utility functions/classes related to scalar Number types.