Playa::LCNBase< Scalar, N > Class Template Reference

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 20 of file PlayaLinearCombinationDecl.hpp.


Constructor & Destructor Documentation

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

Definition at line 24 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 54 of file PlayaLinearCombinationDecl.hpp.

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 47 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 43 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 66 of file PlayaLinearCombinationDecl.hpp.

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

Return min element

Definition at line 69 of file PlayaLinearCombinationDecl.hpp.

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 60 of file PlayaLinearCombinationDecl.hpp.

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

Return Euclidean norm

Definition at line 57 of file PlayaLinearCombinationDecl.hpp.

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

Return infinity norm

Definition at line 63 of file PlayaLinearCombinationDecl.hpp.

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 51 of file PlayaLinearCombinationDecl.hpp.

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

Definition at line 40 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]

Definition at line 73 of file PlayaLinearCombinationDecl.hpp.

Referenced by Playa::LCNBase< Scalar, 2 >::vec().

Site Contact