Public Member Functions | Protected Attributes
Playa::LCNBase< Scalar, N > Class Template Reference
Inheritance diagram for Playa::LCNBase< Scalar, N >:
Playa::LCN< Scalar, N >

List of all members.

Public Member Functions

 LCNBase ()
virtual Vector< Scalar > eval () const =0
const Vector< Scalar > & vec (int i) const
const Scalar & coeff (int i) const
void multiply (const Scalar &beta)
int size () const
Vector< Scalar > dotStar (const Vector< Scalar > &other) const
Vector< Scalar > dotSlash (const Vector< Scalar > &other) const
Vector< Scalar > reciprocal () const
Vector< Scalar > abs () const
Scalar norm2 () const
Scalar norm1 () const
Scalar normInf () const
Scalar max () const
Scalar min () const

Protected Attributes

Vector< Scalar > x_ [N]
Scalar a_ [N]

Detailed Description

template<class Scalar, int N>
class Playa::LCNBase< Scalar, N >

Definition at line 57 of file PlayaLinearCombinationDecl.hpp.


Constructor & Destructor Documentation

template<class Scalar, int N>
Playa::LCNBase< Scalar, N >::LCNBase ( ) [inline]

Definition at line 61 of file PlayaLinearCombinationDecl.hpp.


Member Function Documentation

template<class Scalar, int N>
Vector<Scalar> Playa::LCNBase< Scalar, N >::abs ( ) const [inline]

Return element-by-element absolute value as a new vector

Definition at line 91 of file PlayaLinearCombinationDecl.hpp.

Referenced by Playa::abs().

template<class Scalar, int N>
const Scalar& Playa::LCNBase< Scalar, N >::coeff ( int  i) const [inline]
template<class Scalar, int N>
Vector<Scalar> Playa::LCNBase< Scalar, N >::dotSlash ( const Vector< Scalar > &  other) const [inline]

Element-by-element division (Matlab dot-slash operator)

Definition at line 84 of file PlayaLinearCombinationDecl.hpp.

template<class Scalar, int N>
Vector<Scalar> Playa::LCNBase< Scalar, N >::dotStar ( const Vector< Scalar > &  other) const [inline]

Element-by-element product (Matlab dot-star operator)

Definition at line 80 of file PlayaLinearCombinationDecl.hpp.

template<class Scalar, int N>
virtual Vector<Scalar> Playa::LCNBase< Scalar, N >::eval ( ) const [pure virtual]
template<class Scalar, int N>
Scalar Playa::LCNBase< Scalar, N >::max ( ) const [inline]

Return max element

Definition at line 103 of file PlayaLinearCombinationDecl.hpp.

Referenced by Playa::max().

template<class Scalar, int N>
Scalar Playa::LCNBase< Scalar, N >::min ( ) const [inline]

Return min element

Definition at line 106 of file PlayaLinearCombinationDecl.hpp.

Referenced by Playa::min().

template<class Scalar, int N>
void Playa::LCNBase< Scalar, N >::multiply ( const Scalar &  beta) [inline]
template<class Scalar, int N>
Scalar Playa::LCNBase< Scalar, N >::norm1 ( ) const [inline]

Return 1-norm

Definition at line 97 of file PlayaLinearCombinationDecl.hpp.

Referenced by Playa::norm1().

template<class Scalar, int N>
Scalar Playa::LCNBase< Scalar, N >::norm2 ( ) const [inline]

Return Euclidean norm

Definition at line 94 of file PlayaLinearCombinationDecl.hpp.

Referenced by Playa::norm2().

template<class Scalar, int N>
Scalar Playa::LCNBase< Scalar, N >::normInf ( ) const [inline]

Return infinity norm

Definition at line 100 of file PlayaLinearCombinationDecl.hpp.

Referenced by Playa::normInf().

template<class Scalar, int N>
Vector<Scalar> Playa::LCNBase< Scalar, N >::reciprocal ( ) const [inline]

Return element-by-element reciprocal as a new vector

Definition at line 88 of file PlayaLinearCombinationDecl.hpp.

Referenced by Playa::reciprocal().

template<class Scalar, int N>
int Playa::LCNBase< Scalar, N >::size ( ) const [inline]

Definition at line 77 of file PlayaLinearCombinationDecl.hpp.

template<class Scalar, int N>
const Vector<Scalar>& Playa::LCNBase< Scalar, N >::vec ( int  i) const [inline]

Member Data Documentation

template<class Scalar, int N>
Scalar Playa::LCNBase< Scalar, N >::a_[N] [protected]
template<class Scalar, int N>
Vector<Scalar> Playa::LCNBase< Scalar, N >::x_[N] [protected]

Site Contact