7 for(CPPL_INT k=0; k<l; k++){
25 std::cerr <<
"The required component is out of the vector size." << std::endl
26 <<
"Your input is (" << k <<
"), whereas the vector size is " << l <<
"." << std::endl;
42 std::cerr <<
"The required component is out of the vector size." << std::endl
43 <<
"Your input is (" << k <<
"), whereas the vector size is " << l <<
"." << std::endl;
63 inline std::ostream& operator<<(std::ostream& s, const zrovector_small<l>& A)
65 s << std::setiosflags(std::ios::showpos);
66 for(CPPL_INT
i=0;
i<l;
i++){
67 s <<
" " << A(
i) << std::flush;
78 std::ofstream ofs(filename, std::ios::trunc);
79 ofs.setf(std::cout.flags());
80 ofs.precision(std::cout.precision());
81 ofs.width(std::cout.width());
82 ofs.fill(std::cout.fill());
84 ofs <<
"#zrovector" <<
" " << l << std::endl;
85 for(CPPL_INT k=0; k<l; k++){
86 ofs << (*this)(k) << std::endl;
96 std::ifstream s( filename );
99 std::cerr <<
"The file \"" << filename <<
"\" can not be opened." << std::endl;
105 if(
id !=
"zrovector" &&
id !=
"#zrovector" ){
107 std::cerr <<
"The type name of the file \"" << filename <<
"\" is not zrovector." << std::endl
108 <<
"Its type name was " <<
id <<
" ." << std::endl;
116 std::cerr <<
"Matrix size is invalid." << std::endl;
119 for(CPPL_INT k=0; k<l; k++){
124 std::cerr <<
"There is something is wrong with the file \"" << filename <<
"\"." << std::endl
125 <<
"Most likely, there is not enough data components, or a linefeed code or space code is missing at the end of the last line." << std::endl;
132 std::cerr <<
"There is something is wrong with the file \"" << filename <<
"\"." << std::endl
133 <<
"Most likely, there are extra data components." << std::endl;
151 {CPPL_VERBOSE_REPORT;
153 for(CPPL_INT
i=0;
i<n;
i++){
163 {CPPL_VERBOSE_REPORT;
165 for(CPPL_INT
i=0;
i<l;
i++){
175 {CPPL_VERBOSE_REPORT;
177 for(
int k=0; k<l; k++){
178 if( max<fabs(A(k)) ){
190 {CPPL_VERBOSE_REPORT;
207 {CPPL_VERBOSE_REPORT;
208 for(CPPL_INT k=0; k<l; k++){
225 {CPPL_VERBOSE_REPORT;
226 for(CPPL_INT
i=0;
i<l;
i++){
236 {CPPL_VERBOSE_REPORT;
237 for(CPPL_INT
i=0;
i<l;
i++){
247 {CPPL_VERBOSE_REPORT;
248 for(CPPL_INT
i=0;
i<l;
i++){
258 {CPPL_VERBOSE_REPORT;
259 for(CPPL_INT
i=0;
i<l;
i++){
269 {CPPL_VERBOSE_REPORT;
270 for(CPPL_INT
i=0;
i<l;
i++){
280 {CPPL_VERBOSE_REPORT;
281 for(CPPL_INT
i=0;
i<l;
i++){
295 {CPPL_VERBOSE_REPORT;
303 {CPPL_VERBOSE_REPORT;
305 for(CPPL_INT
i=0;
i<l;
i++){
319 {CPPL_VERBOSE_REPORT;
321 for(CPPL_INT
i=0;
i<l;
i++){
331 {CPPL_VERBOSE_REPORT;
333 for(CPPL_INT
i=0;
i<l;
i++){
347 {CPPL_VERBOSE_REPORT;
349 for(CPPL_INT
i=0;
i<l;
i++){
357 template<CPPL_INT m, CPPL_INT n>
359 {CPPL_VERBOSE_REPORT;
362 for(CPPL_INT j=0; j<n; j++){
363 for(CPPL_INT
i=0;
i<m;
i++){
374 {CPPL_VERBOSE_REPORT;
377 for(CPPL_INT j=0; j<l; j++){
378 for(CPPL_INT
i=0;
i<j;
i++){
381 for(CPPL_INT
i=j;
i<l;
i++){
392 {CPPL_VERBOSE_REPORT;
394 for(CPPL_INT
i=0;
i<l;
i++){
404 {CPPL_VERBOSE_REPORT;
406 for(CPPL_INT
i=0;
i<l;
i++){
420 {CPPL_VERBOSE_REPORT;
422 for(CPPL_INT
i=0;
i<l;
i++){
432 {CPPL_VERBOSE_REPORT;
434 for(CPPL_INT
i=0;
i<l;
i++){
448 {CPPL_VERBOSE_REPORT;
450 for(CPPL_INT
i=0;
i<l;
i++){
zrovector_small< l > & operator-=(zrovector_small< l > &A, const zrovector_small< l > &B)
zrovector_small< l > hadamard(const zrovector_small< l > &A, const zrovector_small< l > &B)
zrovector_small< l > operator-(const zrovector_small< l > &A)
void read(const char *filename)
zrovector_small< l > & operator*=(zrovector_small< l > &A, const double &v)
comple damax(const zrovector_small< l > &A)
zrovector_small< l > & zero()
_dgematrix i(const _dgbmatrix &mat)
void write(const char *filename) const
comple operator*(const zrovector_small< l > &A, const zcovector_small< l > &B)
Samll Complex Double-precision Column Vector Class.
zrovector_small< l > & operator+=(zrovector_small< l > &A, const zrovector_small< l > &B)
Samll Complex Double-precision Row Vector Class.
double nrm2(const zrovector_small< l > &A)
_zrovector to_zrovector() const
zcovector_small< n > t(const zrovector_small< n > &A)
Complex Double-precision Row Vector Class.
(DO NOT USE) Smart-temporary Complex Double-precision Row Vector Class
zrovector_small< l > & operator/=(zrovector_small< l > &A, const double &v)
zrovector_small< l > & set(const CPPL_INT &, const comple &)
zrovector_small< l > operator/(const zrovector_small< l > &A, const double &v)
_dcovector _(dcovector &vec)
void idamax(CPPL_INT &K, const zrovector_small< l > &A)
Samll Complex Double-precision General Dence Matrix Class.
const zrovector_small< l > & operator+(const zrovector_small< l > &A)
Samll Complex Double-precision Symmetric Matrix Class.
comple & operator()(const CPPL_INT &)