utility.h File Reference

Some utility functions. More...

#include <vector>
#include "object.h"

Include dependency graph for utility.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool ldivide (std::vector< std::vector< REAL > > &A, const std::vector< REAL > &b, std::vector< REAL > &x)
template<class N>
bool gray_next (std::vector< N > &v, typename std::vector< N >::size_type &p)
 Gray code: start from all 0's, and iteratively go through all numbers.
template<class N>
bool gray_next (std::vector< N > &v)


Detailed Description

Some utility functions.

Id
utility.h 2631 2006-02-08 21:58:14Z ling

Definition in file utility.h.


Function Documentation

bool gray_next std::vector< N > &  v  ) 
 

Definition at line 47 of file utility.h.

References gray_next().

bool gray_next std::vector< N > &  v,
typename std::vector< N >::size_type &  p
 

Gray code: start from all 0's, and iteratively go through all numbers.

Definition at line 22 of file utility.h.

Referenced by gray_next(), and AdaBoost_ECOC::max_cut().

bool ldivide std::vector< std::vector< REAL > > &  A,
const std::vector< REAL > &  b,
std::vector< REAL > &  x
 

Solve inv(A) * b, when A is symmetric and positive-definite. Actually we only need the upper triangular part of A.


Generated on Wed Nov 8 08:16:21 2006 for LEMGA by  doxygen 1.4.6