15 d_real_vector(
const std::vector<double>& obj) : std::vector<double>(obj) {}
29 std::vector<double>
HI(){
return *
this;}
32 std::vector<double>
LO(){
33 std::vector<double> tmp(
size(), 0.0);
39 for(
int i=0; i<
size(); i++)
40 std::cout << std::vector<double>::at(i) << std::endl;
45 std::cout << std::vector<double>::at(i) << std::endl;
49 void input(
const char* filename);
69 void copy(
const std::vector<double>& vec);
71 void copy(
const std::vector<dd_real>& vec);
88 bool operator==(
const std::vector<double>& vec);
90 bool operator==(
const std::vector<dd_real>& vec);
97 bool operator!=(
const std::vector<double>& vec);
99 bool operator!=(
const std::vector<dd_real>& vec);
Double precision vector class, This class is almost same as std::vector<double>
void sub(dd_real_vector &vec1, dd_real_vector &vec2)
all elemetnt arithmetic function
d_real_vector operator+=(dd_real_vector &vec)
all elemetnt arithmetic function
bool operator==(const dd_real_vector &vec)
comparision
void input_plane(FILE *file)
create vector from plane format file
bool operator!=(const dd_real_vector &vec)
comparision
void input(const char *filename)
create vector from file
d_real_vector(long a)
create vector, all elements is a
d_real_vector operator/=(dd_real_vector &vec)
all elemetnt arithmetic function
void copy(const dd_real_vector &vec)
copy from dd_real_vector
d_real_vector(int n, double val)
create size n, all elements is val vector
d_real_vector(double a)
create vector, all elements is a
d_real_vector operator+(dd_real_vector &vec)
all elemetnt arithmetic function
d_real_vector operator-=(dd_real_vector &vec)
all elemetnt arithmetic function
void print(int i)
output vector element vec[i] to standard I/O
d_real_vector operator/(dd_real_vector &vec)
all elemetnt arithmetic function
void print_all()
output vector elements to standard I/O
void mul(dd_real_vector &vec1, dd_real_vector &vec2)
all elemetnt arithmetic function
d_real_vector operator-()
sign
d_real_vector & operator=(const dd_real_vector &vec)
copy from dd_real_vector
void output_mm(const char *filename)
outout vector to matrix market format
d_real_vector(long n, double val)
create size n, all elements is val vector
void div(dd_real_vector &vec1, dd_real_vector &vec2)
all elemetnt arithmetic function
d_real_vector(const std::vector< double > &obj)
create vector from std::vector<double>
friend class dd_real_vector
void input_mm(FILE *file)
create vector from matrix market format file
d_real_vector(int a)
create vector, all elements is a
d_real_vector operator*(dd_real_vector &vec)
all elemetnt arithmetic function
void add(dd_real_vector &vec1, dd_real_vector &vec2)
all elemetnt arithmetic function
std::vector< double > HI()
return DD's hi array
d_real_vector operator*=(dd_real_vector &vec)
all elemetnt arithmetic function
void output_plane(const char *filename)
outout vector to plane format
std::vector< double > LO()
return DD's lo array (return zero vector)
Double-double precision vector reference class.
Double-double precision vector class.
double * data()
get hi array pointer