CEDRIC  Revision_backup-2009-02
Namespaces | Functions
ublasTools.h File Reference
#include <boost/numeric/ublas/vector.hpp>
#include <boost/numeric/ublas/vector_proxy.hpp>
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/triangular.hpp>
#include <boost/numeric/ublas/operation.hpp>
#include <boost/numeric/ublas/lu.hpp>
#include <iostream>
#include <assert.h>

Go to the source code of this file.

Namespaces

 ublasTools
 Some utility function for vector and matrix calculation.
 

Functions

template<class ValueType >
bool ublasTools::affine_fit (const ublas::matrix< ValueType > &q_, const ublas::matrix< ValueType > &p, ublas::matrix< ValueType > &A, ublas::vector< ValueType > &b)
 Fit affine transformation such that $p_i\approx Aq_i + t$. More...
 
template<class ValueType >
ublas::vector< ValueType > ublasTools::column_means (ublas::matrix< ValueType > &A)
 Calculate column means of a matrix. More...
 
template<class ValueType >
ublas::vector< ValueType > ublasTools::row_means (ublas::matrix< ValueType > &A)
 Calculate row means of a matrix. More...
 
template<class ValueType >
ValueType ublasTools::grand_mean (const ublas::matrix< ValueType > &A)
 Calculate grand means of a matrix. More...
 
template<class ValueType >
void ublasTools::double_center (ublas::matrix< ValueType > &D)
 Double center matrix, i.e. substract column and row means and add in grand mean. More...
 
template<class ValueType >
void ublasTools::zero_eps (ublas::matrix< ValueType > &A, ValueType eps=1e-7)
 Eliminate all matrix entries smaller than some epsilon. More...
 
template<class ValueType >
void ublasTools::zero_eps (ublas::vector< ValueType > &v, ValueType eps=1e-7)
 Eliminate all vector entries smaller than some epsilon. More...