8 std::cerr <<
"The required component is out of the vector size." << std::endl
9 <<
"Your input is (" << i <<
"), whereas the vector size is " <<
l <<
"." << std::endl;
24 std::cerr <<
"The required component is out of the vector size." << std::endl
25 <<
"Your input is (" << i <<
"), whereas the vector size is " <<
l <<
"." << std::endl;
44 std::cerr <<
"The required component is out of the vector size." << std::endl
45 <<
"Your input is (" << i <<
"), whereas the vector size is " <<
l <<
"." << std::endl;
61 for(CPPL_INT
i=0;
i<vec.
l;
i++){
62 s <<
" " << vec.
array[
i] << std::endl;
75 std::ofstream ofs(filename, std::ios::trunc);
76 ofs.setf(std::cout.flags());
77 ofs.precision(std::cout.precision());
78 ofs.width(std::cout.width());
79 ofs.fill(std::cout.fill());
81 ofs <<
"#dcovector" <<
" " <<
l << std::endl;
82 for(CPPL_INT
i=0;
i<
l;
i++){
92 std::ifstream s(filename);
95 std::cerr <<
"The file \"" << filename <<
"\" can not be opened." << std::endl;
101 if(
id !=
"dcovector" &&
id !=
"#dcovector" ){
103 std::cerr <<
"The type name of the file \"" << filename <<
"\" is not dcovector." << std::endl
104 <<
"Its type name was " <<
id <<
" ." << std::endl;
113 std::cerr <<
"There is something is wrong with the file \"" << filename <<
"\"." << std::endl
114 <<
"Most likely, there is a lack of data components, or a linefeed code or space code is missing at the end of the last line." << std::endl;
121 std::cerr <<
"There is something is wrong with the file \"" << filename <<
"\"." << std::endl
122 <<
"Most likely, there are extra data components." << std::endl;
void write(const char *) const
_dgematrix i(const _dgbmatrix &mat)
dcovector & resize(const CPPL_INT &, const CPPL_INT=0)
double * array
1D array to store vector data
Real Double-precision Column Vector Class.
double & operator()(const CPPL_INT &)
dcovector & set(const CPPL_INT &, const double &)
std::ostream & operator<<(std::ostream &s, const dcovector &vec)