#include <itpp/config.h>
#include <itpp/itconfig.h>
#include <itpp/base/itassert.h>
#include <itpp/base/scalfunc.h>
#include <itpp/base/factory.h>
#include <itpp/base/copy_vector.h>
#include <itpp/base/mat.h>
Go to the source code of this file.
Namespaces | |
namespace | itpp |
Classes | |
class | itpp::Vec< Num_T > |
Templated vectors. More... | |
Typedefs | |
typedef Vec< double > | vec |
Definition of double vector type. | |
typedef Vec< std::complex< double > > | cvec |
Definition of complex<double> vector type. | |
typedef Vec< int > | ivec |
Definition of integer vector type. | |
typedef Vec< short int > | svec |
Definition of short vector type. | |
typedef Vec< bin > | bvec |
Definition of binary vector type. | |
Functions | |
template<class Num_T> | |
const Vec< Num_T > | operator+ (const Vec< Num_T > &v1, const Vec< Num_T > &v2) |
Addition of two vectors. | |
template<class Num_T> | |
const Vec< Num_T > | operator+ (const Vec< Num_T > &v, const Num_T t) |
Addition of a vector and a scalar. | |
template<class Num_T> | |
const Vec< Num_T > | operator+ (const Num_T t, const Vec< Num_T > &v) |
Addition of a scalar and a vector. | |
template<class Num_T> | |
const Vec< Num_T > | operator- (const Vec< Num_T > &v1, const Vec< Num_T > &v2) |
Subtraction of v2 from v1 . | |
template<class Num_T> | |
const Vec< Num_T > | operator- (const Vec< Num_T > &v, const Num_T t) |
Subtraction of scalar from vector. | |
template<class Num_T> | |
const Vec< Num_T > | operator- (const Num_T t, const Vec< Num_T > &v) |
Sutraction of vector from scalar. | |
template<class Num_T> | |
const Vec< Num_T > | operator- (const Vec< Num_T > &v) |
Negation of vector. | |
template<class Num_T> | |
Num_T | dot (const Vec< Num_T > &v1, const Vec< Num_T > &v2) |
Inner (dot) product. | |
template<class Num_T> | |
Num_T | operator * (const Vec< Num_T > &v1, const Vec< Num_T > &v2) |
Inner (dot) product. | |
template<class Num_T> | |
const Mat< Num_T > | outer_product (const Vec< Num_T > &v1, const Vec< Num_T > &v2) |
Outer product of two vectors v1 and v2. | |
template<class Num_T> | |
const Vec< Num_T > | operator * (const Vec< Num_T > &v, const Num_T t) |
Elementwise multiplication of vector and scalar. | |
template<class Num_T> | |
const Vec< Num_T > | operator * (const Num_T t, const Vec< Num_T > &v) |
Elementwise multiplication of vector and scalar. | |
template<class Num_T> | |
const Vec< Num_T > | elem_mult (const Vec< Num_T > &v1, const Vec< Num_T > &v2) |
Elementwise multiplication. | |
template<class Num_T> | |
const Vec< Num_T > | elem_mult (const Vec< Num_T > &v1, const Vec< Num_T > &v2, const Vec< Num_T > &v3) |
Elementwise multiplication of three vectors. | |
template<class Num_T> | |
const Vec< Num_T > | elem_mult (const Vec< Num_T > &v1, const Vec< Num_T > &v2, const Vec< Num_T > &v3, const Vec< Num_T > &v4) |
Elementwise multiplication of four vectors. | |
template<class Num_T> | |
const Vec< Num_T > | operator/ (const Vec< Num_T > &v, const Num_T t) |
Elementwise division. | |
template<class Num_T> | |
const Vec< Num_T > | operator/ (const Num_T t, const Vec< Num_T > &v) |
Elementwise division. | |
template<class Num_T> | |
const Vec< Num_T > | elem_div (const Vec< Num_T > &v1, const Vec< Num_T > &v2) |
Elementwise division. | |
template<class Num_T> | |
const Vec< Num_T > | elem_div (const Num_T t, const Vec< Num_T > &v) |
Elementwise division. | |
template<class Num_T> | |
const Vec< Num_T > | concat (const Vec< Num_T > &v, const Num_T a) |
Append element a to the end of the vector v . | |
template<class Num_T> | |
const Vec< Num_T > | concat (const Num_T a, const Vec< Num_T > &v) |
Concat element a to the beginning of the vector v . | |
template<class Num_T> | |
const Vec< Num_T > | concat (const Vec< Num_T > &v1, const Vec< Num_T > &v2) |
Concat vectors v1 and v2 . | |
template<class Num_T> | |
const Vec< Num_T > | concat (const Vec< Num_T > &v1, const Vec< Num_T > &v2, const Vec< Num_T > &v3) |
Concat vectors v1 , v2 and v3 . | |
template<class Num_T> | |
const Vec< Num_T > | concat (const Vec< Num_T > &v1, const Vec< Num_T > &v2, const Vec< Num_T > &v3, const Vec< Num_T > &v4) |
Concat vectors v1 , v2 , v3 and v4 . | |
template<class Num_T> | |
const Vec< Num_T > | concat (const Vec< Num_T > &v1, const Vec< Num_T > &v2, const Vec< Num_T > &v3, const Vec< Num_T > &v4, const Vec< Num_T > &v5) |
Concat vectors v1 , v2 v3 , v4 and v5 . | |
template<class Num_T> | |
std::ostream & | operator<< (std::ostream &os, const Vec< Num_T > &v) |
template<class Num_T> | |
std::istream & | operator>> (std::istream &is, Vec< Num_T > &v) |
-------------------------------------------------------------------------
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 vec.h.
|
Definition of double vector type.
|
|
Definition of complex<double> vector type.
|
|
Definition of integer vector type.
|
|
Definition of short vector type.
|
|
Definition of binary vector type.
|
|
Addition of two vectors.
|
|
Addition of a vector and a scalar.
|
|
Addition of a scalar and a vector.
|
|
Subtraction of
|
|
Subtraction of scalar from vector.
|
|
Sutraction of vector from scalar.
|
|
Negation of vector.
|
|
Inner (dot) product.
|
|
Inner (dot) product.
|
|
Outer product of two vectors v1 and v2.
For complex arguments, v2 is a transposed vector only (not Hermitian transposed). This is equivalent to the Matlab's (v1 * v2.') operation. Please use |
|
Elementwise multiplication of vector and scalar.
|
|
Elementwise multiplication of vector and scalar.
|
|
Elementwise multiplication.
|
|
Elementwise multiplication of three vectors.
|
|
Elementwise multiplication of four vectors.
|
|
Elementwise division.
|
|
Elementwise division.
|
|
Elementwise division.
|
|
Elementwise division.
|
|
Append element
|
|
Concat element
|
|
Concat vectors
|
|
Concat vectors
|
|
Concat vectors
|
|
Concat vectors
|
Generated on Fri Jan 11 08:51:39 2008 for IT++ by Doxygen 1.3.9.1