|
cheshirekow
v0.1.0
|
Expression template presents a view of a matrix where each element is normalized, such that the sum of the elements is 1.0. More...
#include <fiber/normalize.h>
Public Types | |
| enum | { ROWS_ = Exp::ROWS_, COLS_ = Exp::COLS_, SIZE_ = ROWS_ * COLS_ } |
Public Member Functions | |
| _Normalize (Exp const &A) | |
| Size | cols () const |
| Scalar | operator() (Index i, Index j) const |
| Scalar | operator[] (Index i) const |
| Size | rows () const |
| Size | size () const |
Public Member Functions inherited from fiber::_RValue< Scalar, _Normalize< Scalar, Exp > > | |
| Size | cols () const |
| Scalar | operator() (Size i, Size j) const |
| Scalar | operator[] (Size i) const |
| Size | rows () const |
| Size | size () const |
Private Attributes | |
| Scalar | norm_ |
| 2-norm of elements in the expression More... | |
| Exp const & | v_ |
| underlying expression More... | |
Expression template presents a view of a matrix where each element is normalized, such that the sum of the elements is 1.0.
Definition at line 58 of file normalize.h.
| anonymous enum |
| Enumerator | |
|---|---|
| ROWS_ | |
| COLS_ | |
| SIZE_ | |
Definition at line 63 of file normalize.h.
|
inline |
Definition at line 69 of file normalize.h.
|
inline |
Definition at line 73 of file normalize.h.
|
inline |
Definition at line 79 of file normalize.h.
|
inline |
Definition at line 75 of file normalize.h.
|
inline |
Definition at line 72 of file normalize.h.
|
inline |
Definition at line 71 of file normalize.h.
|
private |
2-norm of elements in the expression
Definition at line 59 of file normalize.h.
|
private |
underlying expression
Definition at line 60 of file normalize.h.