lemga::op Namespace Reference

Operators used in optimization. More...


Functions

template<typename R>
inner_product (const Boosting::BoostWgt &w1, const Boosting::BoostWgt &w2)
template<typename R, typename N>
vector< R > & operator+= (vector< R > &u, const vector< N > &v)
 u += v.
template<typename R>
vector< R > operator- (const vector< R > &v)
 -v.
template<typename R, typename N>
inner_product (const R &u, const N &v)
 Inner product of u and v.
template<typename RET, typename R, typename N>
RET inner_product (const vector< R > &u, const vector< N > &v)
template<typename R, typename N>
vector< R > & operator *= (vector< R > &v, const N &r)
 v *= r.


Detailed Description

Operators used in optimization.

Todo:
documentation


Function Documentation

RET lemga::op::inner_product const vector< R > &  u,
const vector< N > &  v
 

Definition at line 65 of file vectorop.h.

R lemga::op::inner_product const R &  u,
const N &  v
[inline]
 

Inner product of u and v.

The return type has to be explicitly specified, e.g.,
double ip = inner_product<double>(u, v);
The compiler will still complain if there is `downward' coercion.

Definition at line 61 of file vectorop.h.

R lemga::op::inner_product const Boosting::BoostWgt &  w1,
const Boosting::BoostWgt &  w2
 

Definition at line 270 of file boosting.h.

References LearnModel::get_output(), Boosting::BoostWgt::models(), R, Boosting::BoostWgt::size(), LearnModel::train_data(), and Boosting::BoostWgt::weights().

Referenced by NNLayer::feed_forward().

vector<R>& lemga::op::operator *= vector< R > &  v,
const N &  r
 

v *= r.

Definition at line 76 of file vectorop.h.

vector<R>& lemga::op::operator+= vector< R > &  u,
const vector< N > &  v
 

u += v.

Definition at line 37 of file vectorop.h.

vector<R> lemga::op::operator- const vector< R > &  v  ) 
 

-v.

Definition at line 47 of file vectorop.h.


Generated on Wed Nov 8 08:17:42 2006 for LEMGA by  doxygen 1.4.6