svec.h File Reference

Sparse Vector Class definitions. More...

#include <itpp/config.h>
#include <itpp/base/vec.h>
#include <itpp/base/math/min_max.h>
#include <cstdlib>

Go to the source code of this file.

Classes

class  itpp::Sparse_Vec< T >
 Templated sparse vector class. More...

Functions

template<class T >
Sparse_Vec< T > itpp::operator+ (const Sparse_Vec< T > &v1, const Sparse_Vec< T > &v2)
 v1+v2 where v1 and v2 are sparse vector
template<class T >
itpp::operator* (const Sparse_Vec< T > &v1, const Sparse_Vec< T > &v2)
 v1*v2 where v1 and v2 are sparse vectors
template<class T >
itpp::operator* (const Sparse_Vec< T > &v1, const Vec< T > &v2)
 v1*v2 where v1 is a sparse vector and v2 is a dense vector
template<class T >
itpp::operator* (const Vec< T > &v1, const Sparse_Vec< T > &v2)
 v1*v2 where v1 is a dense vector and v2 is a sparse vector
template<class T >
Sparse_Vec< T > itpp::elem_mult (const Sparse_Vec< T > &v1, const Sparse_Vec< T > &v2)
 Elementwise multiplication of two sparse vectors returning a sparse vector.
template<class T >
Vec< T > itpp::elem_mult (const Sparse_Vec< T > &v1, const Vec< T > &v2)
 Elementwise multiplication of a sparse vector and a dense vector returning a dense vector.
template<class T >
Sparse_Vec< T > itpp::elem_mult_s (const Sparse_Vec< T > &v1, const Vec< T > &v2)
 Elementwise multiplication of a sparse vector and a dense vector returning a sparse vector.
template<class T >
Vec< T > itpp::elem_mult (const Vec< T > &v1, const Sparse_Vec< T > &v2)
 Elementwise multiplication of a dense vector and a sparse vector returning a dense vector.
template<class T >
Sparse_Vec< T > itpp::elem_mult_s (const Vec< T > &v1, const Sparse_Vec< T > &v2)
 Elementwise multiplication of a dense vector and a sparse vector returning a sparse vector.
template<class T >
Sparse_Vec< T > itpp::sparse (const Vec< T > &v)
 Convert a dense vector v into its sparse representation.
template<class T >
Sparse_Vec< T > itpp::sparse (const Vec< T > &v, T epsilon)
 Convert a dense vector v into its sparse representation.
template<class T >
Vec< T > itpp::full (const Sparse_Vec< T > &s)
 Convert a sparse vector s into its dense representation.


Detailed Description

Sparse Vector Class definitions.

Author:
Tony Ottosson and Tobias Ringstrom
-------------------------------------------------------------------------

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

This file is part of IT++ - a C++ library of mathematical, signal processing, speech processing, and communications classes and functions.

IT++ 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 3 of the License, or (at your option) any later version.

IT++ 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 IT++. If not, see <http://www.gnu.org/licenses/>.

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


Generated on Tue Jun 2 10:02:14 2009 for mixpp by  doxygen 1.5.8