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 zcovector_small<l>& A)
65 s << std::setiosflags(std::ios::showpos);
66 for(CPPL_INT
i=0;
i<l;
i++){
67 s << A(
i) << std::endl;
77 std::ofstream ofs(filename, std::ios::trunc);
78 ofs.setf(std::cout.flags());
79 ofs.precision(std::cout.precision());
80 ofs.width(std::cout.width());
81 ofs.fill(std::cout.fill());
83 ofs <<
"#zcovector" <<
" " << l << std::endl;
84 for(CPPL_INT k=0; k<l; k++){
85 ofs << (*this)(k) << std::endl;
95 std::ifstream s( filename );
98 std::cerr <<
"The file \"" << filename <<
"\" can not be opened." << std::endl;
104 if(
id !=
"zcovector" &&
id !=
"#zcovector" ){
106 std::cerr <<
"The type name of the file \"" << filename <<
"\" is not zcovector." << std::endl
107 <<
"Its type name was " <<
id <<
" ." << std::endl;
115 std::cerr <<
"Matrix size is invalid." << std::endl;
118 for(CPPL_INT k=0; k<l; k++){
123 std::cerr <<
"There is something is wrong with the file \"" << filename <<
"\"." << std::endl
124 <<
"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;
131 std::cerr <<
"There is something is wrong with the file \"" << filename <<
"\"." << std::endl
132 <<
"Most likely, there are extra data components." << std::endl;
150 {CPPL_VERBOSE_REPORT;
152 for(CPPL_INT
i=0;
i<l;
i++){
162 {CPPL_VERBOSE_REPORT;
164 for(CPPL_INT
i=0;
i<l;
i++){
174 {CPPL_VERBOSE_REPORT;
176 for(
int k=0; k<l; k++){
177 if( max<fabs(A(k)) ){
189 {CPPL_VERBOSE_REPORT;
203 {CPPL_VERBOSE_REPORT;
204 for(CPPL_INT k=0; k<l; k++){
218 {CPPL_VERBOSE_REPORT;
219 for(CPPL_INT
i=0;
i<l;
i++){
229 {CPPL_VERBOSE_REPORT;
230 for(CPPL_INT
i=0;
i<l;
i++){
240 {CPPL_VERBOSE_REPORT;
241 for(CPPL_INT
i=0;
i<l;
i++){
251 {CPPL_VERBOSE_REPORT;
252 for(CPPL_INT
i=0;
i<l;
i++){
262 {CPPL_VERBOSE_REPORT;
263 for(CPPL_INT
i=0;
i<l;
i++){
273 {CPPL_VERBOSE_REPORT;
274 for(CPPL_INT
i=0;
i<l;
i++){
288 {CPPL_VERBOSE_REPORT;
296 {CPPL_VERBOSE_REPORT;
298 for(CPPL_INT
i=0;
i<l;
i++){
312 {CPPL_VERBOSE_REPORT;
314 for(CPPL_INT
i=0;
i<l;
i++){
324 {CPPL_VERBOSE_REPORT;
326 for(CPPL_INT
i=0;
i<l;
i++){
340 {CPPL_VERBOSE_REPORT;
342 for(CPPL_INT
i=0;
i<n;
i++){
352 {CPPL_VERBOSE_REPORT;
354 for(CPPL_INT
i=0;
i<n;
i++){
362 template<CPPL_INT m, CPPL_INT n>
364 {CPPL_VERBOSE_REPORT;
366 for(CPPL_INT
i=0;
i<m;
i++){
367 for(CPPL_INT j=0; j<n; j++){
382 {CPPL_VERBOSE_REPORT;
384 for(CPPL_INT
i=0;
i<n;
i++){
394 {CPPL_VERBOSE_REPORT;
396 for(CPPL_INT
i=0;
i<n;
i++){
410 {CPPL_VERBOSE_REPORT;
412 for(CPPL_INT
i=0;
i<l;
i++){
426 {CPPL_VERBOSE_REPORT;
428 for(CPPL_INT
i=0;
i<l;
i++){
zcovector_small< n > operator/(const zcovector_small< n > &A, const double &v)
comple & operator()(const CPPL_INT &)
comple operator%(const zcovector_small< l > &A, const zcovector_small< l > &B)
_dgematrix i(const _dgbmatrix &mat)
zcovector_small< l > hadamard(const zcovector_small< l > &A, const zcovector_small< l > &B)
zcovector_small< l > & operator*=(zcovector_small< l > &A, const double &v)
comple nrm2(const zcovector_small< l > &A)
Samll Complex Double-precision Column Vector Class.
zcovector_small< l > & set(const CPPL_INT &, const comple &)
Samll Complex Double-precision Row Vector Class.
zcovector_small< l > & zero()
zcovector_small< l > operator-(const zcovector_small< l > &A)
void idamax(CPPL_INT &K, const zcovector_small< l > &A)
comple damax(const zcovector_small< l > &A)
void write(const char *filename) const
zrovector_small< l > t(const zcovector_small< l > &A)
_zcovector to_zcovector() const
void read(const char *filename)
Complex Double-precision Column Vector Class.
(DO NOT USE) Smart-temporary Complex Double-precision Column Vector Class
zcovector_small< l > & operator/=(zcovector_small< l > &A, const double &v)
zcovector_small< l > & operator-=(zcovector_small< l > &A, const zcovector_small< l > &B)
_dcovector _(dcovector &vec)
zcovector_small< l > & operator+=(zcovector_small< l > &A, const zcovector_small< l > &B)
zcovector_small< n > operator*(const zcovector_small< n > &A, const double &v)
Samll Complex Double-precision General Dence Matrix Class.
const zcovector_small< l > & operator+(const zcovector_small< l > &A)