IT++ Logo Newcom Logo

converters.cpp File Reference

Implementation of converters between different vector and matrix types. More...

#include <itpp/base/converters.h>
#include <itpp/base/matfunc.h>

Go to the source code of this file.

Namespaces

namespace  itpp

Functions

template<class T>
bvec to_bvec (const Vec< T > &v)
template<class T>
svec to_svec (const Vec< T > &v)
template<class T>
ivec to_ivec (const Vec< T > &v)
template<class T>
vec to_vec (const Vec< T > &v)
template<class T>
cvec to_cvec (const Vec< T > &v)
cvec to_cvec (const bvec &v)
ivec to_ivec (int s)
vec to_vec (double s)
cvec to_cvec (double real, double imag)
template<class T>
bmat to_bmat (const Mat< T > &m)
template<class T>
smat to_smat (const Mat< T > &m)
template<class T>
imat to_imat (const Mat< T > &m)
template<class T>
mat to_mat (const Mat< T > &m)
template<class T>
cmat to_cmat (const Mat< T > &m)
cmat to_cmat (const bmat &m)
template<class T>
cvec to_cvec (const Vec< T > &real, const Vec< T > &imag)
template<class T>
cmat to_cmat (const Mat< T > &real, const Mat< T > &imag)
bvec dec2bin (int length, int index)
 Convert a decimal int index to bvec using length bits in the representation.
bvec dec2bin (int index, bool msb_first)
 Convert a decimal int index to bvec with the first bit as MSB if msb_first == true.
void dec2bin (int index, bvec &v)
 Convert a decimal int index to bvec. Value returned in v.
int bin2dec (const bvec &inbvec, bool msb_first)
 Convert a bvec to decimal int with the first bit as MSB if msb_first == true.
bvec oct2bin (const ivec &octalindex, short keepzeros)
 Convert ivec of octal form to bvec.
ivec bin2oct (const bvec &inbits)
 Convert bvec to octal ivec.
ivec bin2pol (const bvec &inbvec)
 Convert bvec to polar binary representation as ivec.
bvec pol2bin (const ivec &inpol)
 Convert binary polar ivec to bvec.
std::string to_str (const double &i, const int precision)
 Convert double to string.
template bvec to_bvec (const svec &v)
 Template instantiation of to_bvec.
template bvec to_bvec (const Vec< int > &v)
 Template instantiation of to_bvec.
template svec to_svec (const bvec &v)
 Template instantiation of to_svec.
template svec to_svec (const ivec &v)
 Template instantiation of to_svec.
template svec to_svec (const svec &v)
 Template instantiation of to_svec.
template svec to_svec (const vec &v)
template ivec to_ivec (const bvec &v)
 Template instantiation of to_ivec.
template ivec to_ivec (const svec &v)
 Template instantiation of to_ivec.
template ivec to_ivec (const ivec &v)
 Template instantiation of to_ivec.
template ivec to_ivec (const vec &v)
 Template instantiation of to_ivec.
template vec to_vec (const bvec &v)
 Template instantiation of to_vec.
template vec to_vec (const svec &v)
 Template instantiation of to_vec.
template vec to_vec (const ivec &v)
 Template instantiation of to_vec.
template vec to_vec (const vec &v)
 Template instantiation of to_vec.
template cvec to_cvec (const svec &v)
 Template instantiation of to_cvec.
template cvec to_cvec (const ivec &v)
 Template instantiation of to_cvec.
template cvec to_cvec (const vec &v)
 Template instantiation of to_cvec.
template cvec to_cvec (const cvec &v)
 Template instantiation of to_cvec.
template cvec to_cvec (const bvec &real, const bvec &imag)
 Template instantiation of to_cvec.
template cvec to_cvec (const svec &real, const svec &imag)
 Template instantiation of to_cvec.
template cvec to_cvec (const ivec &real, const ivec &imag)
 Template instantiation of to_cvec.
template cvec to_cvec (const vec &real, const vec &imag)
 Template instantiation of to_cvec.
template bmat to_bmat (const smat &m)
 Template instantiation of to_bmat.
template bmat to_bmat (const imat &m)
 Template instantiation of to_bmat.
template smat to_smat (const bmat &m)
 Template instantiation of to_bmat.
template smat to_smat (const imat &m)
 Template instantiation of to_bmat.
template imat to_imat (const bmat &m)
 Template instantiation of to_imat.
template imat to_imat (const smat &m)
 Template instantiation of to_imat.
template imat to_imat (const imat &m)
 Template instantiation of to_imat.
template imat to_imat (const mat &m)
template mat to_mat (const bmat &m)
 Template instantiation of to_mat.
template mat to_mat (const smat &m)
 Template instantiation of to_mat.
template mat to_mat (const imat &m)
 Template instantiation of to_mat.
template mat to_mat (const mat &m)
 Template instantiation of to_mat.
template cmat to_cmat (const smat &m)
 Template instantiation of to_cmat.
template cmat to_cmat (const imat &m)
 Template instantiation of to_cmat.
template cmat to_cmat (const mat &m)
 Template instantiation of to_cmat.
template cmat to_cmat (const cmat &m)
 Template instantiation of to_cmat.
template cmat to_cmat (const bmat &real, const bmat &imag)
 Template instantiation of to_cmat.
template cmat to_cmat (const smat &real, const smat &imag)
 Template instantiation of to_cmat.
template cmat to_cmat (const imat &real, const imat &imag)
 Template instantiation of to_cmat.
template cmat to_cmat (const mat &real, const mat &imag)
 Template instantiation of to_cmat.


Detailed Description

Implementation of converters between different vector and matrix types.

Author:
Tony Ottosson, Tobias Ringstrom and Pal Frenger
Date
2007-04-18 08:58:29 +0200 (Wed, 18 Apr 2007)
Revision
1013

-------------------------------------------------------------------------

IT++ - C++ library of mathematical, signal processing, speech processing, and communications classes and functions

Copyright (C) 1995-2007 (see AUTHORS file for a list of contributors)

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

-------------------------------------------------------------------------

Definition in file converters.cpp.


Function Documentation

template bvec itpp::to_bvec const svec &  v  ) 
 

Template instantiation of to_bvec.

template bvec itpp::to_bvec const Vec< int > &  v  ) 
 

Template instantiation of to_bvec.

template svec itpp::to_svec const bvec &  v  ) 
 

Template instantiation of to_svec.

template svec itpp::to_svec const ivec &  v  ) 
 

Template instantiation of to_svec.

template svec itpp::to_svec const svec &  v  ) 
 

Template instantiation of to_svec.

template ivec itpp::to_ivec const bvec &  v  ) 
 

Template instantiation of to_ivec.

template ivec itpp::to_ivec const svec &  v  ) 
 

Template instantiation of to_ivec.

template ivec itpp::to_ivec const ivec &  v  ) 
 

Template instantiation of to_ivec.

template ivec itpp::to_ivec const vec &  v  ) 
 

Template instantiation of to_ivec.

template vec itpp::to_vec const bvec &  v  ) 
 

Template instantiation of to_vec.

template vec itpp::to_vec const svec &  v  ) 
 

Template instantiation of to_vec.

template vec itpp::to_vec const ivec &  v  ) 
 

Template instantiation of to_vec.

template vec itpp::to_vec const vec &  v  ) 
 

Template instantiation of to_vec.

template cvec itpp::to_cvec const svec &  v  ) 
 

Template instantiation of to_cvec.

template cvec itpp::to_cvec const ivec &  v  ) 
 

Template instantiation of to_cvec.

template cvec itpp::to_cvec const vec &  v  ) 
 

Template instantiation of to_cvec.

template cvec itpp::to_cvec const cvec &  v  ) 
 

Template instantiation of to_cvec.

template cvec itpp::to_cvec const bvec &  real,
const bvec &  imag
 

Template instantiation of to_cvec.

template cvec itpp::to_cvec const svec &  real,
const svec &  imag
 

Template instantiation of to_cvec.

template cvec itpp::to_cvec const ivec &  real,
const ivec &  imag
 

Template instantiation of to_cvec.

template cvec itpp::to_cvec const vec &  real,
const vec &  imag
 

Template instantiation of to_cvec.

template bmat itpp::to_bmat const smat &  m  ) 
 

Template instantiation of to_bmat.

template bmat itpp::to_bmat const imat &  m  ) 
 

Template instantiation of to_bmat.

template smat itpp::to_smat const bmat &  m  ) 
 

Template instantiation of to_bmat.

template smat itpp::to_smat const imat &  m  ) 
 

Template instantiation of to_bmat.

template imat itpp::to_imat const bmat &  m  ) 
 

Template instantiation of to_imat.

template imat itpp::to_imat const smat &  m  ) 
 

Template instantiation of to_imat.

template imat itpp::to_imat const imat &  m  ) 
 

Template instantiation of to_imat.

template mat itpp::to_mat const bmat &  m  ) 
 

Template instantiation of to_mat.

template mat itpp::to_mat const smat &  m  ) 
 

Template instantiation of to_mat.

template mat itpp::to_mat const imat &  m  ) 
 

Template instantiation of to_mat.

template mat itpp::to_mat const mat &  m  ) 
 

Template instantiation of to_mat.

template cmat itpp::to_cmat const smat &  m  ) 
 

Template instantiation of to_cmat.

template cmat itpp::to_cmat const imat &  m  ) 
 

Template instantiation of to_cmat.

template cmat itpp::to_cmat const mat &  m  ) 
 

Template instantiation of to_cmat.

template cmat itpp::to_cmat const cmat &  m  ) 
 

Template instantiation of to_cmat.

template cmat itpp::to_cmat const bmat &  real,
const bmat &  imag
 

Template instantiation of to_cmat.

template cmat itpp::to_cmat const smat &  real,
const smat &  imag
 

Template instantiation of to_cmat.

template cmat itpp::to_cmat const imat &  real,
const imat &  imag
 

Template instantiation of to_cmat.

template cmat itpp::to_cmat const mat &  real,
const mat &  imag
 

Template instantiation of to_cmat.

SourceForge Logo

Generated on Fri Jan 11 08:51:39 2008 for IT++ by Doxygen 1.3.9.1