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 drovector_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 <<
"#drovector" <<
" " << l << std::endl;
85 for(CPPL_INT k=0; k<l; k++){
86 ofs << (*this)(k) <<
" ";
97 std::ifstream s( filename );
100 std::cerr <<
"The file \"" << filename <<
"\" can not be opened." << std::endl;
106 if(
id !=
"drovector" &&
id !=
"#drovector" ){
108 std::cerr <<
"The type name of the file \"" << filename <<
"\" is not drovector." << std::endl
109 <<
"Its type name was " <<
id <<
" ." << std::endl;
117 std::cerr <<
"Matrix size is invalid." << std::endl;
120 for(CPPL_INT k=0; k<l; k++){
125 std::cerr <<
"There is something is wrong with the file \"" << filename <<
"\"." << std::endl
126 <<
"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;
133 std::cerr <<
"There is something is wrong with the file \"" << filename <<
"\"." << std::endl
134 <<
"Most likely, there are extra data components." << std::endl;
152 {CPPL_VERBOSE_REPORT;
154 for(CPPL_INT
i=0;
i<n;
i++){
164 {CPPL_VERBOSE_REPORT;
166 for(CPPL_INT
i=0;
i<l;
i++){
176 {CPPL_VERBOSE_REPORT;
178 for(
int k=0; k<l; k++){
179 if( max<fabs(A(k)) ){
191 {CPPL_VERBOSE_REPORT;
208 {CPPL_VERBOSE_REPORT;
209 for(CPPL_INT k=0; k<l; k++){
226 {CPPL_VERBOSE_REPORT;
227 for(CPPL_INT
i=0;
i<l;
i++){
237 {CPPL_VERBOSE_REPORT;
238 for(CPPL_INT
i=0;
i<l;
i++){
248 {CPPL_VERBOSE_REPORT;
249 for(CPPL_INT
i=0;
i<l;
i++){
259 {CPPL_VERBOSE_REPORT;
260 for(CPPL_INT
i=0;
i<l;
i++){
274 {CPPL_VERBOSE_REPORT;
282 {CPPL_VERBOSE_REPORT;
284 for(CPPL_INT
i=0;
i<l;
i++){
298 {CPPL_VERBOSE_REPORT;
300 for(CPPL_INT
i=0;
i<l;
i++){
310 {CPPL_VERBOSE_REPORT;
312 for(CPPL_INT
i=0;
i<l;
i++){
326 {CPPL_VERBOSE_REPORT;
328 for(CPPL_INT
i=0;
i<l;
i++){
336 template<CPPL_INT m, CPPL_INT n>
338 {CPPL_VERBOSE_REPORT;
341 for(CPPL_INT j=0; j<n; j++){
342 for(CPPL_INT
i=0;
i<m;
i++){
353 {CPPL_VERBOSE_REPORT;
356 for(CPPL_INT j=0; j<l; j++){
357 for(CPPL_INT
i=0;
i<j;
i++){
360 for(CPPL_INT
i=j;
i<l;
i++){
371 {CPPL_VERBOSE_REPORT;
373 for(CPPL_INT
i=0;
i<l;
i++){
387 {CPPL_VERBOSE_REPORT;
389 for(CPPL_INT
i=0;
i<l;
i++){
403 {CPPL_VERBOSE_REPORT;
405 for(CPPL_INT
i=0;
i<l;
i++){
419 {CPPL_VERBOSE_REPORT;
421 for(CPPL_INT
i=0;
i<l;
i++){
drovector_small< l > hadamard(const drovector_small< l > &A, const drovector_small< l > &B)
double operator%(const drovector_small< l > &A, const drovector_small< l > &B)
drovector_small< l > & zero()
double & operator()(const CPPL_INT &)
Samll Real Double-precision Symmetric Matrix Class.
drovector_small< l > & operator-=(drovector_small< l > &A, const drovector_small< l > &B)
Samll Real Double-precision General Dence Matrix Class.
drovector_small< l > operator/(const drovector_small< l > &A, const double &v)
_dgematrix i(const _dgbmatrix &mat)
drovector_small< l > & set(const CPPL_INT &, const double &)
const drovector_small< l > & operator+(const drovector_small< l > &A)
Samll Real Double-precision Row Vector Class.
Real Double-precision Row Vector Class.
_drovector to_drovector() const
void read(const char *filename)
(DO NOT USE) Smart-temporary Real Double-precision Row Vector Class
dcovector_small< n > t(const drovector_small< n > &A)
drovector_small< l > & operator+=(drovector_small< l > &A, const drovector_small< l > &B)
drovector_small< l > & operator*=(drovector_small< l > &A, const double &d)
double nrm2(const drovector_small< l > &A)
drovector_small< l > & operator/=(drovector_small< l > &A, const double &d)
void write(const char *filename) const
double operator*(const drovector_small< l > &A, const dcovector_small< l > &B)
Samll Real Double-precision Column Vector Class.
void idamax(CPPL_INT &K, const drovector_small< l > &A)
double damax(const drovector_small< l > &A)
drovector_small< l > operator-(const drovector_small< l > &A)
_dcovector _(dcovector &vec)