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