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] |
Definition at line 20 of file PlayaLinearCombinationDecl.hpp.
Playa::LCNBase< Scalar, N >::LCNBase | ( | ) | [inline] |
Definition at line 24 of file PlayaLinearCombinationDecl.hpp.
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.
const Scalar& Playa::LCNBase< Scalar, N >::coeff | ( | int | i | ) | const [inline] |
Definition at line 33 of file PlayaLinearCombinationDecl.hpp.
Referenced by Playa::LCN< Scalar, 3 >::LCN(), Playa::LCN< Scalar, 2 >::LCN(), Playa::operator*(), Playa::Vector< Scalar >::operator+=(), Playa::operator-(), Playa::Vector< Scalar >::operator-=(), and Playa::Vector< Scalar >::operator=().
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.
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.
virtual Vector<Scalar> Playa::LCNBase< Scalar, N >::eval | ( | ) | const [pure virtual] |
Implemented in Playa::LCN< Scalar, N >, Playa::LCN< Scalar, 1 >, Playa::LCN< Scalar, 2 >, and Playa::LCN< Scalar, 3 >.
Referenced by Playa::LCNBase< Scalar, 2 >::abs(), Playa::LCNBase< Scalar, 2 >::dotSlash(), Playa::LCNBase< Scalar, 2 >::dotStar(), Playa::LCNBase< Scalar, 2 >::max(), Playa::LCNBase< Scalar, 2 >::min(), Playa::LCNBase< Scalar, 2 >::norm1(), Playa::LCNBase< Scalar, 2 >::norm2(), Playa::LCNBase< Scalar, 2 >::normInf(), and Playa::LCNBase< Scalar, 2 >::reciprocal().
Scalar Playa::LCNBase< Scalar, N >::max | ( | ) | const [inline] |
Return max element
Definition at line 66 of file PlayaLinearCombinationDecl.hpp.
Scalar Playa::LCNBase< Scalar, N >::min | ( | ) | const [inline] |
Return min element
Definition at line 69 of file PlayaLinearCombinationDecl.hpp.
void Playa::LCNBase< Scalar, N >::multiply | ( | const Scalar & | beta | ) | [inline] |
Multiply through by a scalar constant
Definition at line 36 of file PlayaLinearCombinationDecl.hpp.
Referenced by Playa::LCN< Scalar, 3 >::operator-(), Playa::LCN< Scalar, 2 >::operator-(), and Playa::LCN< Scalar, 1 >::operator-().
Scalar Playa::LCNBase< Scalar, N >::norm1 | ( | ) | const [inline] |
Return 1-norm
Definition at line 60 of file PlayaLinearCombinationDecl.hpp.
Scalar Playa::LCNBase< Scalar, N >::norm2 | ( | ) | const [inline] |
Return Euclidean norm
Definition at line 57 of file PlayaLinearCombinationDecl.hpp.
Scalar Playa::LCNBase< Scalar, N >::normInf | ( | ) | const [inline] |
Return infinity norm
Definition at line 63 of file PlayaLinearCombinationDecl.hpp.
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.
int Playa::LCNBase< Scalar, N >::size | ( | ) | const [inline] |
Definition at line 40 of file PlayaLinearCombinationDecl.hpp.
const Vector<Scalar>& Playa::LCNBase< Scalar, N >::vec | ( | int | i | ) | const [inline] |
Definition at line 30 of file PlayaLinearCombinationDecl.hpp.
Referenced by Playa::LCN< Scalar, 3 >::LCN(), Playa::LCN< Scalar, 2 >::LCN(), Playa::operator*(), Playa::Vector< Scalar >::operator+=(), Playa::operator-(), Playa::Vector< Scalar >::operator-=(), and Playa::Vector< Scalar >::operator=().
Scalar Playa::LCNBase< Scalar, N >::a_[N] [protected] |
Definition at line 74 of file PlayaLinearCombinationDecl.hpp.
Referenced by Playa::LCNBase< Scalar, 2 >::coeff(), and Playa::LCNBase< Scalar, 2 >::multiply().
Vector<Scalar> Playa::LCNBase< Scalar, N >::x_[N] [protected] |
Definition at line 73 of file PlayaLinearCombinationDecl.hpp.
Referenced by Playa::LCNBase< Scalar, 2 >::vec().