RFFGen
 All Classes Namespaces Files Functions Typedefs Enumerations Groups
Public Member Functions | List of all members
RFFGen::LinearAlgebra::SquaredEuclideanNorm< Matrix, class > Struct Template Reference

Compute squared matrix norm $ \|A\|^2 = A\negthinspace : \negthinspace A = \mathrm{tr}(A^TA) = \sum_{i,j} A_{ij}^2. $. More...

#include <euclideanNorm.hh>

Inheritance diagram for RFFGen::LinearAlgebra::SquaredEuclideanNorm< Matrix, class >:
RFFGen::Base

Public Member Functions

 SquaredEuclideanNorm ()=default
 Default constructor.
 
 SquaredEuclideanNorm (const Matrix &A)
 Constructor. More...
 
void update (const Matrix &A)
 Reset matrix to compute squared norm from.
 
auto operator() () const noexcept
 Squared matrix norm. Convenient access to d0().
 
auto d0 () const noexcept
 Squared matrix norm.
 
template<int >
auto d1 (const Matrix &dA) const
 First directional derivative.
 
template<int , int >
auto d2 (const Matrix &dA1, const Matrix &dA2) const
 Second directional derivative.
 
- Public Member Functions inherited from RFFGen::Base
template<class Arg >
void update (const Arg &)
 Update on changed input.
 
template<int id, class Arg >
void updateVariable (const Arg &)
 Empty variables.
 

Detailed Description

template<class Matrix, class = Concepts::MatrixConceptCheck<Matrix>>
struct RFFGen::LinearAlgebra::SquaredEuclideanNorm< Matrix, class >

Compute squared matrix norm $ \|A\|^2 = A\negthinspace : \negthinspace A = \mathrm{tr}(A^TA) = \sum_{i,j} A_{ij}^2. $.

Constructor & Destructor Documentation

template<class Matrix , class = Concepts::MatrixConceptCheck<Matrix>>
RFFGen::LinearAlgebra::SquaredEuclideanNorm< Matrix, class >::SquaredEuclideanNorm ( const Matrix &  A)
inlineexplicit

Constructor.

Parameters
Amatrix to compute squared norm from.

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