Chemical Data Processing Library C++ API - Version 1.4.0
Public Types | Static Public Member Functions | List of all members
CDPL::Math::MatrixNorm1< M > Struct Template Reference

Functor returning the L1 (maximum absolute column sum) norm of a matrix expression. More...

#include <Functional.hpp>

+ Inheritance diagram for CDPL::Math::MatrixNorm1< M >:

Public Types

typedef MatrixScalarRealUnaryFunctor< M >::ValueType ValueType
 
typedef MatrixScalarRealUnaryFunctor< M >::RealType RealType
 
typedef MatrixScalarRealUnaryFunctor< M >::ResultType ResultType
 
- Public Types inherited from CDPL::Math::MatrixScalarRealUnaryFunctor< M >
typedef M::ValueType ValueType
 The matrix's element value type. More...
 
typedef TypeTraits< ValueType >::RealType RealType
 The real-valued type derived from ValueType via Math::TypeTraits. More...
 
typedef RealType ResultType
 The real-valued result type. More...
 

Static Public Member Functions

static ResultType apply (const MatrixExpression< M > &e)
 Returns the L1 norm of e. More...
 

Detailed Description

template<typename M>
struct CDPL::Math::MatrixNorm1< M >

Functor returning the L1 (maximum absolute column sum) norm of a matrix expression.

Template Parameters
MThe matrix expression type.

Member Typedef Documentation

◆ ValueType

◆ RealType

template<typename M >
typedef MatrixScalarRealUnaryFunctor<M>::RealType CDPL::Math::MatrixNorm1< M >::RealType

◆ ResultType

Member Function Documentation

◆ apply()

template<typename M >
static ResultType CDPL::Math::MatrixNorm1< M >::apply ( const MatrixExpression< M > &  e)
inlinestatic

Returns the L1 norm of e.

Parameters
eThe matrix expression.
Returns
\( \max_j \sum_i \|e(i, j)\|_1 \).

The documentation for this struct was generated from the following file: