Changeset 66654ee in tol
- Timestamp:
- Feb 13, 2012, 8:51:33 AM (15 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 554f1be
- Parents:
- d2cf6f7
- Location:
- tol/btol/vmatrix_type
- Files:
-
- 4 edited
-
tol_bvmat_bsr_impl.h (modified) (5 diffs)
-
vmat_bsr.cpp (modified) (1 diff)
-
vmat_bsr_joint.cpp (modified) (8 diffs)
-
vmat_bsr_primary.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/btol/vmatrix_type/tol_bvmat_bsr_impl.h
rd2cf6f7 r66654ee 276 276 void action(const std::string& str) const 277 277 { 278 Std(BSR()+"TRACE "+msg_.c_str()+" : '"+str.c_str()+"'");278 //Std(BSR()+"TRACE "+msg_.c_str()+" : '"+str.c_str()+"'"); 279 279 } 280 280 void operator()(const std::string& str) const … … 649 649 if(!(*numEqu_)) 650 650 { 651 Std(BSR()+" Parsed "+*(t->var_count_)+" linear block variables \n");651 //Std(BSR()+" Parsed "+*(t->var_count_)+" linear block variables \n"); 652 652 } 653 653 *(t->numEqu_) += size; … … 1676 1676 { 1677 1677 iniTime_ = (double)time(0); 1678 Std(BSR()+" Parsed "+(*mis_count_)+" missing variables \n");1679 Std(BSR()+" Parsed "+(*sig_count_)+" sigma variables \n");1680 Std(BSR()+" Parsed "+(*noise_count_)+" vectors of noise \n");1678 //Std(BSR()+" Parsed "+(*mis_count_)+" missing variables \n"); 1679 //Std(BSR()+" Parsed "+(*sig_count_)+" sigma variables \n"); 1680 //Std(BSR()+" Parsed "+(*noise_count_)+" vectors of noise \n"); 1681 1681 } 1682 1682 if(equ_vec_->capacity()<n+1) { equ_vec_->reserve(int((n+1)*1.20)); } … … 1697 1697 double elapsed = time(0) - iniTime_; 1698 1698 double remain = elapsed*double((*numEqu_)-n)/double(n); 1699 Std(BSR()+" Parsed "+n+" equations of "+(*numEqu_)+" ["+ratio+"%] "1700 "in "+elapsed+" seconds (remaining "+remain+" s.)\n");1699 //Std(BSR()+" Parsed "+n+" equations of "+(*numEqu_)+" ["+ratio+"%] " 1700 // "in "+elapsed+" seconds (remaining "+remain+" s.)\n"); 1701 1701 } 1702 1702 } … … 1739 1739 if(n && !(n%1000)) 1740 1740 { 1741 Std(BSR()+" Parsed "+n+" inequations \n");1741 //Std(BSR()+" Parsed "+n+" inequations \n"); 1742 1742 } 1743 1743 } -
tol/btol/vmatrix_type/vmat_bsr.cpp
rd2cf6f7 r66654ee 145 145 { 146 146 int i,j,k; 147 Std(BSR()+"Setting input and output missing block\n");147 //Std(BSR()+"Setting input and output missing block\n"); 148 148 int inputMisSize = 0; 149 149 int outputMisSize = 0; -
tol/btol/vmatrix_type/vmat_bsr_joint.cpp
rd2cf6f7 r66654ee 589 589 int m = equ_vec.size(); 590 590 int r = ine_vec.size(); 591 Std(BSR()+" Parsed "+r+" inequations \n");592 Std(BSR()+" Building model definition of joint module\n");591 //Std(BSR()+" Parsed "+r+" inequations \n"); 592 //Std(BSR()+" Building model definition of joint module\n"); 593 593 int result = checkDimensions(m); 594 594 if(result) { return(result); } … … 597 597 for(i=0; i<noiseInfo_.size(); i++) 598 598 { 599 Std(BSR()+" Building noise "+noiseInfo_[i].name.c_str()+"\n");599 //Std(BSR()+" Building noise "+noiseInfo_[i].name.c_str()+"\n"); 600 600 if(expand2AllEqu_covAndFactors(noiseInfo_[i])) 601 601 { … … 604 604 } 605 605 BVMat X_, A_; 606 Std(BSR()+" Allocating dense output with "+m+" cells\n");606 //Std(BSR()+" Allocating dense output with "+m+" cells\n"); 607 607 Y.BlasRDense(m,1); 608 Std(BSR()+" Allocating triplet sparse input with "+Xnzmax_+" non null cells\n");608 //Std(BSR()+" Allocating triplet sparse input with "+Xnzmax_+" non null cells\n"); 609 609 X_.ChlmRTriplet(m,n,Xnzmax_); 610 Std(BSR()+" Allocating dense inequation border with "+r+" cells\n");610 //Std(BSR()+" Allocating dense inequation border with "+r+" cells\n"); 611 611 a_.BlasRDense(r,1); 612 Std(BSR()+" Allocating triplet sparse inequation coefficeints with "+Anzmax_+" cells\n");612 //Std(BSR()+" Allocating triplet sparse inequation coefficeints with "+Anzmax_+" cells\n"); 613 613 A_.ChlmRTriplet(r,n,Anzmax_); 614 614 size_t& Xn = X_.s_.chlmRtriplet_->nnz; … … 624 624 int oldRatio = 0; 625 625 Xn = 0; 626 Std(BSR()+"Building regression "+m+" equations with "+n+" variables\n");626 //Std(BSR()+"Building regression "+m+" equations with "+n+" variables\n"); 627 627 for(i=0; i<m; i++) 628 628 { … … 631 631 { 632 632 oldRatio = ratio; 633 Std(".");633 //Std("."); 634 634 } 635 635 lin_reg_equation& eq =equ_vec[i]; … … 646 646 } 647 647 } 648 Std("\n");649 Std(BSR()+"Converting regression equations from triplet to sparse\n");648 //Std("\n"); 649 //Std(BSR()+"Converting regression equations from triplet to sparse\n"); 650 650 X.Convert(X_,BVMat::ESC_chlmRsparse); 651 651 oldRatio = 0; 652 652 An = 0; 653 Std(BSR()+"Building "+r+" constrain inequations with "+n+" variables\n");653 //Std(BSR()+"Building "+r+" constrain inequations with "+n+" variables\n"); 654 654 for(i=0; i<r; i++) 655 655 { … … 658 658 { 659 659 oldRatio = ratio; 660 Std(".");660 //Std("."); 661 661 } 662 662 double sign = (ine_vec[i].isGE)?1.0:-1.0; … … 671 671 } 672 672 } 673 Std("\n");674 Std(BSR()+"Converting constrain inequations from triplet to sparse\n");673 //Std("\n"); 674 //Std(BSR()+"Converting constrain inequations from triplet to sparse\n"); 675 675 A.Convert(A_,BVMat::ESC_chlmRsparse); 676 676 result = getMissing(Y,X,inputMissingInfo_, outputMissingInfo_); -
tol/btol/vmatrix_type/vmat_bsr_primary.cpp
rd2cf6f7 r66654ee 591 591 int r = ine_vec.size(); 592 592 if(!n && !X_.Rows()) { X_.BlasRDense(m,0); } 593 Std(BSR()+" Building model definition of primary module\n");593 //Std(BSR()+" Building model definition of primary module\n"); 594 594 int result = checkDimensions(m); 595 595 if(result) { return(result); } 596 596 linearInfo_ = var.vec; 597 597 noiseInfo_ = noise.vec; 598 Std(BSR()+" Building noise "+noiseInfo_[0].name.c_str()+"\n");598 //Std(BSR()+" Building noise "+noiseInfo_[0].name.c_str()+"\n"); 599 599 for(i=1; i<=m; i++) 600 600 { … … 625 625 X = X_; 626 626 BVMat A_; 627 Std(BSR()+" Allocating dense inequation border with "+r+" cells\n");627 //Std(BSR()+" Allocating dense inequation border with "+r+" cells\n"); 628 628 a_.BlasRDense(r,1); 629 Std(BSR()+" Allocating triplet sparse inequation coefficeints with "+Anzmax_+" cells\n");629 //Std(BSR()+" Allocating triplet sparse inequation coefficeints with "+Anzmax_+" cells\n"); 630 630 A_.ChlmRTriplet(r,n,Anzmax_); 631 631 size_t& An = A_.s_.chlmRtriplet_->nnz; … … 636 636 int oldRatio = 0; 637 637 An = 0; 638 Std(BSR()+"Building "+r+"constrain inequations with "+n+" variables\n");638 //Std(BSR()+"Building "+r+"constrain inequations with "+n+" variables\n"); 639 639 for(i=0; i<r; i++) 640 640 { … … 643 643 { 644 644 oldRatio = ratio; 645 Std(".");645 //Std("."); 646 646 } 647 647 double sign = (ine_vec[i].isGE)?1.0:-1.0; … … 656 656 } 657 657 } 658 Std("\n");659 Std(BSR()+"Converting constrain inequations from triplet to sparse\n");658 //Std("\n"); 659 //Std(BSR()+"Converting constrain inequations from triplet to sparse\n"); 660 660 A.Convert(A_,BVMat::ESC_chlmRsparse); 661 661 result = getMissing(Y,X,inputMissingInfo_, outputMissingInfo_);
Note: See TracChangeset
for help on using the changeset viewer.
