1 #ifndef LAP_IntegerVector_H
2 #define LAP_IntegerVector_H
55 inline static SP::LAP_IntegerVector
New() {
71 inline static SP::LAP_IntegerVector
New(
const int& s) {
84 inline static SP::LAP_IntegerVector
New(SPC::LAP_IntegerVector s) {
125 for (i=nvs-1;i>0;i--) n+=(vs[i]==0);
126 if (nvs>0) n+=(vs[i]==0);
tLVectorIndex getCapacity() const
get the capacity
Definition: LAP_Vector.h:524
static SP::LAP_IntegerVector New(const int &s)
create a new vector of double of size s
Definition: LAP_IntegerVector.h:71
Definition: LAP_IntegerVector.h:18
void copy(const LAP_IntegerVector &v)
copy the vector The view is taken into account
Definition: LAP_IntegerVector.cpp:25
void sub(const lapack_int &s)
sub operator
Definition: LAP_Vector.h:166
#define lapack_int
Definition: lapack_functions.h:7
DEFINE_SPTR(LAP_IntegerVector)
#define lapack_real
Definition: lapack_functions.h:9
LAP_IntegerVector & operator*=(const lapack_int &s)
scale operator
Definition: LAP_IntegerVector.h:166
LAP_IntegerVector & operator/=(const lapack_int &s)
division elementt by elementt vector operator
Definition: LAP_IntegerVector.h:153
#define null
Definition: types.h:13
tLVectorIndex indexMax() const
return the i such that |xi| is maximum
Definition: LAP_IntegerVector.cpp:59
void add(const lapack_real &alpha, const LAP_IntegerVector &x)
return this+=alpha. x the view is taken into account
Definition: LAP_IntegerVector.cpp:41
LAP_IntegerVector & operator^=(const lapack_int &s)
power operator
Definition: LAP_IntegerVector.h:147
tLVectorIndex getSize() const
get the size of the vector
Definition: LAP_Vector.h:519
virtual ~LAP_IntegerVector()
destroy a vector
Definition: LAP_IntegerVector.cpp:21
this class describes a vector of double
Definition: LAP_Vector.h:16
virtual tLVectorIndex getNullValuesNumber(const tReal &eps) const
Definition: LAP_IntegerVector.h:121
void power(const lapack_int &s)
power operator
Definition: LAP_Vector.h:178
LAP_IntegerVector & operator=(const lapack_int &s)
copy operator the view is taken into account
Definition: LAP_IntegerVector.h:98
virtual void add(const tLVectorIndex &i, const lapack_int &v)
add v to element at index i taking into account the view
Definition: LAP_IntegerVector.h:191
LAP_IntegerVector & operator-=(const lapack_int &s)
sub operator
Definition: LAP_IntegerVector.h:140
virtual void copy(const vector< T > &s)
copy the vector
Definition: LAP_Vector.h:250
#define tLVectorIndex
Definition: lapack_types.h:13
LAP_IntegerVector()
build a vector
Definition: LAP_IntegerVector.cpp:3
DEFINE_SVPTR(LAP_IntegerVector)
LAP_IntegerVector & operator+=(const lapack_int &s)
add operator
Definition: LAP_IntegerVector.h:133
void multiplyBy(const LAP_Vector< lapack_int > &s)
multiplication element by element vector operator
Definition: LAP_Vector.h:208
static SP::LAP_IntegerVector New(const tLVectorIndex &s)
create a new vector of double of size s
Definition: LAP_IntegerVector.h:63
void add(const T &s)
add operator
Definition: LAP_Vector.h:154
static SP::LAP_IntegerVector New(SPC::LAP_IntegerVector s)
create a new copy of s the view is taken into account
Definition: LAP_IntegerVector.h:84
LAP_IntegerVector & operator*=(const LAP_IntegerVector &s)
division elementt by elementt vector operator
Definition: LAP_IntegerVector.h:160
void init(const lapack_int &v)
init the value to v from the view
Definition: LAP_Vector.h:423
LAP_IntegerVector & operator=(const LAP_IntegerVector &s)
copy operator the view is taken into account
Definition: LAP_IntegerVector.h:112
static SP::LAP_IntegerVector New()
create a new vector of double
Definition: LAP_IntegerVector.h:55
#define tReal
Definition: types.h:18
static SP::LAP_IntegerVector New(const LAP_IntegerVector &s)
create a new copy of s the view is taken into account
Definition: LAP_IntegerVector.h:76
LAP_IntegerVector & operator=(const vector< lapack_int > &s)
copy the vector of double
Definition: LAP_IntegerVector.h:105
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106