DD-AVX  2.0.0
d_real_vector Class Reference

Double precision vector class, This class is almost same as std::vector<double> More...

#include <DD-AVX_d_vector.hpp>

Inheritance diagram for d_real_vector:
Inheritance graph
Collaboration diagram for d_real_vector:
Collaboration graph

Public Member Functions

 d_real_vector ()
 
 d_real_vector (const std::vector< double > &obj)
 create vector from std::vector<double> More...
 
 d_real_vector (double a)
 create vector, all elements is a
More...
 
 d_real_vector (int a)
 create vector, all elements is a
More...
 
 d_real_vector (long a)
 create vector, all elements is a
More...
 
 d_real_vector (int n, double val)
 create size n, all elements is val vector
More...
 
 d_real_vector (long n, double val)
 create size n, all elements is val vector
More...
 
std::vector< double > HI ()
 return DD's hi array More...
 
std::vector< double > LO ()
 return DD's lo array (return zero vector) More...
 
void print_all ()
 output vector elements to standard I/O More...
 
void print (int i)
 output vector element vec[i] to standard I/O More...
 
void input (const char *filename)
 create vector from file
More...
 
void input_mm (FILE *file)
 create vector from matrix market format file
More...
 
void input_plane (FILE *file)
 create vector from plane format file
More...
 
void output_mm (const char *filename)
 outout vector to matrix market format
More...
 
void output_plane (const char *filename)
 outout vector to plane format
More...
 
void copy (const dd_real_vector &vec)
 copy from dd_real_vector
More...
 
void copy (const d_real_vector &vec)
 copy from d_real_vector
More...
 
void copy (const std::vector< double > &vec)
 copy from std::vector
More...
 
void copy (const std::vector< dd_real > &vec)
 copy from std::vector (down cast) More...
 
d_real_vectoroperator= (const dd_real_vector &vec)
 copy from dd_real_vector
More...
 
d_real_vectoroperator= (const d_real_vector &vec)
 copy from d_real_vector
More...
 
d_real_vectoroperator= (const std::vector< double > &vec)
 copy from std::vector
More...
 
d_real_vectoroperator= (const std::vector< dd_real > &vec)
 copy from std::vector (down cast) More...
 
bool operator== (const dd_real_vector &vec)
 comparision
More...
 
bool operator== (const d_real_vector &vec)
 comparision
More...
 
bool operator== (const std::vector< double > &vec)
 comparision
More...
 
bool operator== (const std::vector< dd_real > &vec)
 comparision
More...
 
bool operator!= (const dd_real_vector &vec)
 comparision
More...
 
bool operator!= (const d_real_vector &vec)
 comparision
More...
 
bool operator!= (const std::vector< double > &vec)
 comparision
More...
 
bool operator!= (const std::vector< dd_real > &vec)
 comparision
More...
 
 operator double * ()
 cast to double precision array
More...
 
 operator dd_real_vector ()
 cast to dd_real_vector
More...
 
void minus ()
 sign More...
 
d_real_vector operator- ()
 sign More...
 
void add (dd_real_vector &vec1, dd_real_vector &vec2)
 all elemetnt arithmetic function More...
 
void add (d_real_vector &vec1, dd_real_vector &vec2)
 all elemetnt arithmetic function More...
 
void add (dd_real_vector &vec1, d_real_vector &vec2)
 all elemetnt arithmetic function More...
 
void add (d_real_vector &vec1, d_real_vector &vec2)
 all elemetnt arithmetic function More...
 
d_real_vector operator+ (dd_real_vector &vec)
 all elemetnt arithmetic function More...
 
d_real_vector operator+ (d_real_vector &vec)
 all elemetnt arithmetic function More...
 
d_real_vector operator+= (dd_real_vector &vec)
 all elemetnt arithmetic function More...
 
d_real_vector operator+= (d_real_vector &vec)
 all elemetnt arithmetic function More...
 
void sub (dd_real_vector &vec1, dd_real_vector &vec2)
 all elemetnt arithmetic function More...
 
void sub (d_real_vector &vec1, dd_real_vector &vec2)
 all elemetnt arithmetic function More...
 
void sub (dd_real_vector &vec1, d_real_vector &vec2)
 all elemetnt arithmetic function More...
 
void sub (d_real_vector &vec1, d_real_vector &vec2)
 all elemetnt arithmetic function More...
 
d_real_vector operator- (dd_real_vector &vec)
 all elemetnt arithmetic function More...
 
d_real_vector operator- (d_real_vector &vec)
 all elemetnt arithmetic function More...
 
d_real_vector operator-= (dd_real_vector &vec)
 all elemetnt arithmetic function More...
 
d_real_vector operator-= (d_real_vector &vec)
 all elemetnt arithmetic function More...
 
void mul (dd_real_vector &vec1, dd_real_vector &vec2)
 all elemetnt arithmetic function More...
 
void mul (d_real_vector &vec1, dd_real_vector &vec2)
 all elemetnt arithmetic function More...
 
void mul (dd_real_vector &vec1, d_real_vector &vec2)
 all elemetnt arithmetic function More...
 
void mul (d_real_vector &vec1, d_real_vector &vec2)
 all elemetnt arithmetic function More...
 
d_real_vector operator* (dd_real_vector &vec)
 all elemetnt arithmetic function More...
 
d_real_vector operator* (d_real_vector &vec)
 all elemetnt arithmetic function More...
 
d_real_vector operator*= (dd_real_vector &vec)
 all elemetnt arithmetic function More...
 
d_real_vector operator*= (d_real_vector &vec)
 all elemetnt arithmetic function More...
 
void div (dd_real_vector &vec1, dd_real_vector &vec2)
 all elemetnt arithmetic function More...
 
void div (d_real_vector &vec1, dd_real_vector &vec2)
 all elemetnt arithmetic function More...
 
void div (dd_real_vector &vec1, d_real_vector &vec2)
 all elemetnt arithmetic function More...
 
void div (d_real_vector &vec1, d_real_vector &vec2)
 all elemetnt arithmetic function More...
 
d_real_vector operator/ (dd_real_vector &vec)
 all elemetnt arithmetic function More...
 
d_real_vector operator/ (d_real_vector &vec)
 all elemetnt arithmetic function More...
 
d_real_vector operator/= (dd_real_vector &vec)
 all elemetnt arithmetic function More...
 
d_real_vector operator/= (d_real_vector &vec)
 all elemetnt arithmetic function More...
 

Friends

class dd_real_vector
 

Detailed Description

Double precision vector class, This class is almost same as std::vector<double>

Definition at line 9 of file DD-AVX_d_vector.hpp.

Constructor & Destructor Documentation

◆ d_real_vector() [1/7]

d_real_vector::d_real_vector ( )
inline

Definition at line 12 of file DD-AVX_d_vector.hpp.

◆ d_real_vector() [2/7]

d_real_vector::d_real_vector ( const std::vector< double > &  obj)
inline

create vector from std::vector<double>

Definition at line 15 of file DD-AVX_d_vector.hpp.

◆ d_real_vector() [3/7]

d_real_vector::d_real_vector ( double  a)
inline

create vector, all elements is a

Definition at line 17 of file DD-AVX_d_vector.hpp.

◆ d_real_vector() [4/7]

d_real_vector::d_real_vector ( int  a)
inline

create vector, all elements is a

Definition at line 19 of file DD-AVX_d_vector.hpp.

◆ d_real_vector() [5/7]

d_real_vector::d_real_vector ( long  a)
inline

create vector, all elements is a

Definition at line 21 of file DD-AVX_d_vector.hpp.

◆ d_real_vector() [6/7]

d_real_vector::d_real_vector ( int  n,
double  val 
)
inline

create size n, all elements is val vector

Definition at line 24 of file DD-AVX_d_vector.hpp.

◆ d_real_vector() [7/7]

d_real_vector::d_real_vector ( long  n,
double  val 
)
inline

create size n, all elements is val vector

Definition at line 26 of file DD-AVX_d_vector.hpp.

Member Function Documentation

◆ HI()

std::vector<double> d_real_vector::HI ( )
inline

return DD's hi array

Definition at line 29 of file DD-AVX_d_vector.hpp.

◆ LO()

std::vector<double> d_real_vector::LO ( )
inline

return DD's lo array (return zero vector)

Definition at line 32 of file DD-AVX_d_vector.hpp.

◆ print_all()

void d_real_vector::print_all ( )
inline

output vector elements to standard I/O

Definition at line 38 of file DD-AVX_d_vector.hpp.

◆ print()

void d_real_vector::print ( int  i)
inline

output vector element vec[i] to standard I/O

Definition at line 44 of file DD-AVX_d_vector.hpp.

◆ input()

void d_real_vector::input ( const char *  filename)

create vector from file

◆ input_mm()

void d_real_vector::input_mm ( FILE *  file)

create vector from matrix market format file

◆ input_plane()

void d_real_vector::input_plane ( FILE *  file)

create vector from plane format file

◆ output_mm()

void d_real_vector::output_mm ( const char *  filename)

outout vector to matrix market format

◆ output_plane()

void d_real_vector::output_plane ( const char *  filename)

outout vector to plane format

◆ copy() [1/4]

void d_real_vector::copy ( const dd_real_vector vec)

copy from dd_real_vector

Definition at line 3 of file vector_copy.cpp.

Here is the caller graph for this function:

◆ copy() [2/4]

void d_real_vector::copy ( const d_real_vector vec)

copy from d_real_vector

Definition at line 8 of file vector_copy.cpp.

◆ copy() [3/4]

void d_real_vector::copy ( const std::vector< double > &  vec)

copy from std::vector

Definition at line 13 of file vector_copy.cpp.

◆ copy() [4/4]

void d_real_vector::copy ( const std::vector< dd_real > &  vec)

copy from std::vector (down cast)

Definition at line 18 of file vector_copy.cpp.

◆ operator=() [1/4]

d_real_vector & d_real_vector::operator= ( const dd_real_vector vec)

copy from dd_real_vector

Definition at line 27 of file vector_copy.cpp.

◆ operator=() [2/4]

d_real_vector & d_real_vector::operator= ( const d_real_vector vec)

copy from d_real_vector

Definition at line 32 of file vector_copy.cpp.

◆ operator=() [3/4]

d_real_vector & d_real_vector::operator= ( const std::vector< double > &  vec)

copy from std::vector

Definition at line 37 of file vector_copy.cpp.

◆ operator=() [4/4]

d_real_vector & d_real_vector::operator= ( const std::vector< dd_real > &  vec)

copy from std::vector (down cast)

Definition at line 42 of file vector_copy.cpp.

◆ operator==() [1/4]

bool d_real_vector::operator== ( const dd_real_vector vec)

comparision

Definition at line 4 of file vector_comparison.cpp.

◆ operator==() [2/4]

bool d_real_vector::operator== ( const d_real_vector vec)

comparision

Definition at line 12 of file vector_comparison.cpp.

◆ operator==() [3/4]

bool d_real_vector::operator== ( const std::vector< double > &  vec)

comparision

Definition at line 20 of file vector_comparison.cpp.

◆ operator==() [4/4]

bool d_real_vector::operator== ( const std::vector< dd_real > &  vec)

comparision

Definition at line 28 of file vector_comparison.cpp.

◆ operator!=() [1/4]

bool d_real_vector::operator!= ( const dd_real_vector vec)

comparision

=

Definition at line 42 of file vector_comparison.cpp.

◆ operator!=() [2/4]

bool d_real_vector::operator!= ( const d_real_vector vec)

comparision

Definition at line 47 of file vector_comparison.cpp.

◆ operator!=() [3/4]

bool d_real_vector::operator!= ( const std::vector< double > &  vec)

comparision

Definition at line 52 of file vector_comparison.cpp.

◆ operator!=() [4/4]

bool d_real_vector::operator!= ( const std::vector< dd_real > &  vec)

comparision

Definition at line 57 of file vector_comparison.cpp.

◆ operator double *()

d_real_vector::operator double * ( )
inline

cast to double precision array

Definition at line 103 of file DD-AVX_d_vector.hpp.

◆ operator dd_real_vector()

d_real_vector::operator dd_real_vector ( )

cast to dd_real_vector

Definition at line 3 of file vector_cast.cpp.

◆ minus()

void d_real_vector::minus ( )

sign

Definition at line 22 of file vector_minus.cpp.

◆ operator-() [1/3]

d_real_vector d_real_vector::operator- ( )

sign

Definition at line 44 of file vector_minus.cpp.

◆ add() [1/4]

void d_real_vector::add ( dd_real_vector vec1,
dd_real_vector vec2 
)

all elemetnt arithmetic function

Definition at line 9 of file vector_add_d.cpp.

◆ add() [2/4]

void d_real_vector::add ( d_real_vector vec1,
dd_real_vector vec2 
)

all elemetnt arithmetic function

Definition at line 40 of file vector_add_d.cpp.

◆ add() [3/4]

void d_real_vector::add ( dd_real_vector vec1,
d_real_vector vec2 
)

all elemetnt arithmetic function

Definition at line 72 of file vector_add_d.cpp.

◆ add() [4/4]

void d_real_vector::add ( d_real_vector vec1,
d_real_vector vec2 
)

all elemetnt arithmetic function

Definition at line 77 of file vector_add_d.cpp.

◆ operator+() [1/2]

d_real_vector d_real_vector::operator+ ( dd_real_vector vec)

all elemetnt arithmetic function

Definition at line 94 of file vector_add_d.cpp.

◆ operator+() [2/2]

d_real_vector d_real_vector::operator+ ( d_real_vector vec)

all elemetnt arithmetic function

Definition at line 105 of file vector_add_d.cpp.

◆ operator+=() [1/2]

d_real_vector d_real_vector::operator+= ( dd_real_vector vec)

all elemetnt arithmetic function

Definition at line 99 of file vector_add_d.cpp.

◆ operator+=() [2/2]

d_real_vector d_real_vector::operator+= ( d_real_vector vec)

all elemetnt arithmetic function

Definition at line 110 of file vector_add_d.cpp.

◆ sub() [1/4]

void d_real_vector::sub ( dd_real_vector vec1,
dd_real_vector vec2 
)

all elemetnt arithmetic function

Definition at line 9 of file vector_sub_d.cpp.

◆ sub() [2/4]

void d_real_vector::sub ( d_real_vector vec1,
dd_real_vector vec2 
)

all elemetnt arithmetic function

Definition at line 42 of file vector_sub_d.cpp.

◆ sub() [3/4]

void d_real_vector::sub ( dd_real_vector vec1,
d_real_vector vec2 
)

all elemetnt arithmetic function

Definition at line 76 of file vector_sub_d.cpp.

◆ sub() [4/4]

void d_real_vector::sub ( d_real_vector vec1,
d_real_vector vec2 
)

all elemetnt arithmetic function

Definition at line 111 of file vector_sub_d.cpp.

◆ operator-() [2/3]

d_real_vector d_real_vector::operator- ( dd_real_vector vec)

all elemetnt arithmetic function

Definition at line 127 of file vector_sub_d.cpp.

◆ operator-() [3/3]

d_real_vector d_real_vector::operator- ( d_real_vector vec)

all elemetnt arithmetic function

Definition at line 138 of file vector_sub_d.cpp.

◆ operator-=() [1/2]

d_real_vector d_real_vector::operator-= ( dd_real_vector vec)

all elemetnt arithmetic function

Definition at line 132 of file vector_sub_d.cpp.

◆ operator-=() [2/2]

d_real_vector d_real_vector::operator-= ( d_real_vector vec)

all elemetnt arithmetic function

Definition at line 143 of file vector_sub_d.cpp.

◆ mul() [1/4]

void d_real_vector::mul ( dd_real_vector vec1,
dd_real_vector vec2 
)

all elemetnt arithmetic function

Definition at line 9 of file vector_mul_d.cpp.

◆ mul() [2/4]

void d_real_vector::mul ( d_real_vector vec1,
dd_real_vector vec2 
)

all elemetnt arithmetic function

Definition at line 72 of file vector_mul_d.cpp.

◆ mul() [3/4]

void d_real_vector::mul ( dd_real_vector vec1,
d_real_vector vec2 
)

all elemetnt arithmetic function

Definition at line 40 of file vector_mul_d.cpp.

◆ mul() [4/4]

void d_real_vector::mul ( d_real_vector vec1,
d_real_vector vec2 
)

all elemetnt arithmetic function

Definition at line 77 of file vector_mul_d.cpp.

◆ operator*() [1/2]

d_real_vector d_real_vector::operator* ( dd_real_vector vec)

all elemetnt arithmetic function

Definition at line 94 of file vector_mul_d.cpp.

◆ operator*() [2/2]

d_real_vector d_real_vector::operator* ( d_real_vector vec)

all elemetnt arithmetic function

Definition at line 105 of file vector_mul_d.cpp.

◆ operator*=() [1/2]

d_real_vector d_real_vector::operator*= ( dd_real_vector vec)

all elemetnt arithmetic function

Definition at line 99 of file vector_mul_d.cpp.

◆ operator*=() [2/2]

d_real_vector d_real_vector::operator*= ( d_real_vector vec)

all elemetnt arithmetic function

Definition at line 110 of file vector_mul_d.cpp.

◆ div() [1/4]

void d_real_vector::div ( dd_real_vector vec1,
dd_real_vector vec2 
)

all elemetnt arithmetic function

Definition at line 9 of file vector_div_d.cpp.

◆ div() [2/4]

void d_real_vector::div ( d_real_vector vec1,
dd_real_vector vec2 
)

all elemetnt arithmetic function

Definition at line 30 of file vector_div_d.cpp.

◆ div() [3/4]

void d_real_vector::div ( dd_real_vector vec1,
d_real_vector vec2 
)

all elemetnt arithmetic function

Definition at line 51 of file vector_div_d.cpp.

◆ div() [4/4]

void d_real_vector::div ( d_real_vector vec1,
d_real_vector vec2 
)

all elemetnt arithmetic function

Definition at line 72 of file vector_div_d.cpp.

◆ operator/() [1/2]

d_real_vector d_real_vector::operator/ ( dd_real_vector vec)

all elemetnt arithmetic function

Definition at line 88 of file vector_div_d.cpp.

◆ operator/() [2/2]

d_real_vector d_real_vector::operator/ ( d_real_vector vec)

all elemetnt arithmetic function

Definition at line 99 of file vector_div_d.cpp.

◆ operator/=() [1/2]

d_real_vector d_real_vector::operator/= ( dd_real_vector vec)

all elemetnt arithmetic function

Definition at line 93 of file vector_div_d.cpp.

◆ operator/=() [2/2]

d_real_vector d_real_vector::operator/= ( d_real_vector vec)

all elemetnt arithmetic function

Definition at line 104 of file vector_div_d.cpp.

Friends And Related Function Documentation

◆ dd_real_vector

friend class dd_real_vector
friend

Definition at line 10 of file DD-AVX_d_vector.hpp.


The documentation for this class was generated from the following files: