Changeset abbbbef in tol
- Timestamp:
- Mar 6, 2012, 9:35:28 AM (15 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 3c5b71c
- Parents:
- bb3467e
- Location:
- tol/btol/vmatrix_type
- Files:
-
- 2 edited
-
tol_bvmat_bsr_impl.h (modified) (1 diff)
-
vmat_bsr_primary.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/btol/vmatrix_type/tol_bvmat_bsr_impl.h
rbb3467e rabbbbef 800 800 //Std(BText("\nassign_sigma_to_noise(")+str.c_str()+")"); 801 801 //Std(BText("sigmaIdx=")+sigInf->index); 802 t->noise_info_->sigmaName = sigInf.name; 803 t->noise_info_->sigmaIdx = sigInf.index; 804 t->noise_info_->sigmaCte = BDat::Nan(); 802 if(!noise_info_->size) 803 { 804 Warning(BSR()+"Cannot define a variance parameter "+ 805 sigInf.name.c_str()+" over an empty noise. It will be skyped."); 806 t->noise_info_->sigmaName = ""; 807 t->noise_info_->sigmaIdx = -1; 808 } 809 else 810 { 811 t->noise_info_->sigmaName = sigInf.name; 812 t->noise_info_->sigmaIdx = sigInf.index; 813 } 814 t->noise_info_->sigmaCte = BDat::Nan(); 805 815 t->noise_info_->sigPriExpr = ""; 806 816 t->noise_info_->cov.Eye(noise_info_->size,noise_info_->size,0,1); -
tol/btol/vmatrix_type/vmat_bsr_primary.cpp
rbb3467e rabbbbef 563 563 if(!b) 564 564 { 565 Error(BSR()+" At least a vector of noise with independent normal distribution must be defined");565 Error(BSR()+"There are no defined noise"); 566 566 return(-4); 567 567 } 568 if(!m) 569 { 570 Error(BSR()+"At least a linear equation must be defined"); 568 else if(b>1) 569 { 570 Error(BSR()+"There are more than one defined noise"); 571 return(-4); 572 } 573 else if(noise.vec[0].size!=m) 574 { 575 Error(BSR()+"There are "+m+" linear equations but noise is defined " 576 "with length "<<noise.vec[0].size); 571 577 return(-5); 578 } 579 else if(!m) 580 { 581 Warning(BSR()+"Segment has no linear equation"); 572 582 } 573 583 return(0); … … 591 601 int r = ine_vec.size(); 592 602 if(!n && !X_.Rows()) { X_.BlasRDense(m,0); } 603 if(!m) { m = X.Rows(); } 593 604 //Std(BSR()+" Building model definition of primary module\n"); 594 605 int result = checkDimensions(m);
Note: See TracChangeset
for help on using the changeset viewer.
