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) |
| Multiply through by a scalar constant. | |
| int | size () const |
| Vector< Scalar > | dotStar (const Vector< Scalar > &other) const |
| Element-by-element product (Matlab dot-star operator). | |
| Vector< Scalar > | dotSlash (const Vector< Scalar > &other) const |
| Element-by-element division (Matlab dot-slash operator). | |
| Vector< Scalar > | reciprocal () const |
| Return element-by-element reciprocal as a new vector. | |
| Vector< Scalar > | abs () const |
| Return element-by-element absolute value as a new vector. | |
| Scalar | norm2 () const |
| Return Euclidean norm. | |
| Scalar | norm1 () const |
| Return 1-norm. | |
| Scalar | normInf () const |
| Return infinity norm. | |
| Scalar | max () const |
| Return max element. | |
| Scalar | min () const |
| Return min element. | |
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] |
| Scalar Playa::LCNBase< Scalar, N >::min | ( | ) | const [inline] |
| 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] |
| Scalar Playa::LCNBase< Scalar, N >::norm2 | ( | ) | const [inline] |
| Scalar Playa::LCNBase< Scalar, N >::normInf | ( | ) | const [inline] |
| 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().