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


Detailed Description

Implementation of converters between different vector and matrix types.

Author:
Tony Ottosson, Tobias Ringstrom and Pal Frenger
Date
2006-10-24 21:54:50 +0200 (wto, 24 paź 2006)
Revision
694

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

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

Copyright (C) 1995-2005 (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.

SourceForge Logo

Generated on Thu Apr 19 14:43:45 2007 for IT++ by Doxygen 1.5.1