IT++ Logo
svec.cpp
Go to the documentation of this file.
1
29#include <itpp/base/svec.h>
30
32
33namespace itpp
34{
35
36// ---------------------------------------------------------------------
37// Instantiations
38// ---------------------------------------------------------------------
39
40template class ITPP_EXPORT Sparse_Vec<int>;
41template class ITPP_EXPORT Sparse_Vec<double>;
42template class ITPP_EXPORT Sparse_Vec<std::complex<double> >;
43
44template ITPP_EXPORT sparse_ivec operator+(const sparse_ivec &, const sparse_ivec &);
45template ITPP_EXPORT sparse_vec operator+(const sparse_vec &, const sparse_vec &);
46template ITPP_EXPORT sparse_cvec operator+(const sparse_cvec &, const sparse_cvec &);
47
48template ITPP_EXPORT int operator*(const sparse_ivec &, const sparse_ivec &);
49template ITPP_EXPORT double operator*(const sparse_vec &, const sparse_vec &);
50template ITPP_EXPORT std::complex<double> operator*(const sparse_cvec &, const sparse_cvec &);
51
52template ITPP_EXPORT int operator*(const sparse_ivec &, const ivec &);
53template ITPP_EXPORT double operator*(const sparse_vec &, const vec &);
54template ITPP_EXPORT std::complex<double> operator*(const sparse_cvec &, const cvec &);
55
56template ITPP_EXPORT int operator*(const ivec &, const sparse_ivec &);
57template ITPP_EXPORT double operator*(const vec &, const sparse_vec &);
58template ITPP_EXPORT std::complex<double> operator*(const cvec &, const sparse_cvec &);
59
60template ITPP_EXPORT sparse_ivec elem_mult(const sparse_ivec &, const sparse_ivec &);
61template ITPP_EXPORT sparse_vec elem_mult(const sparse_vec &, const sparse_vec &);
62template ITPP_EXPORT sparse_cvec elem_mult(const sparse_cvec &, const sparse_cvec &);
63
64template ITPP_EXPORT ivec elem_mult(const sparse_ivec &, const ivec &);
65template ITPP_EXPORT vec elem_mult(const sparse_vec &, const vec &);
66template ITPP_EXPORT cvec elem_mult(const sparse_cvec &, const cvec &);
67
68template ITPP_EXPORT sparse_ivec elem_mult_s(const sparse_ivec &, const ivec &);
69template ITPP_EXPORT sparse_vec elem_mult_s(const sparse_vec &, const vec &);
70template ITPP_EXPORT sparse_cvec elem_mult_s(const sparse_cvec &, const cvec &);
71
72template ITPP_EXPORT ivec elem_mult(const ivec &, const sparse_ivec &);
73template ITPP_EXPORT vec elem_mult(const vec &, const sparse_vec &);
74template ITPP_EXPORT cvec elem_mult(const cvec &, const sparse_cvec &);
75
76template ITPP_EXPORT sparse_ivec elem_mult_s(const ivec &, const sparse_ivec &);
77template ITPP_EXPORT sparse_vec elem_mult_s(const vec &, const sparse_vec &);
78template ITPP_EXPORT sparse_cvec elem_mult_s(const cvec &, const sparse_cvec &);
79
80} // namespace itpp
81
itpp namespace
Definition itmex.h:37
GF2mat operator*(const GF2mat &X, const GF2mat &Y)
GF(2) matrix multiplication.
Definition gf2mat.cpp:847
Sparse_Vec< T > 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.
Definition svec.h:1118
GF2mat operator+(const GF2mat &X, const GF2mat &Y)
GF(2) matrix addition.
Definition gf2mat.cpp:948
Mat< Num_T > elem_mult(const Mat< Num_T > &m1, const Mat< Num_T > &m2)
Element wise multiplication of two matrices.
Definition mat.h:1582
Sparse Vector Class definitions.
SourceForge Logo

Generated on Mon Jun 10 2024 11:49:19 for IT++ by Doxygen 1.9.8