mirror of https://github.com/CGAL/cgal
fix unsigned int to size_t warnings
This commit is contained in:
parent
dc536257c8
commit
b20e6f2581
|
|
@ -336,28 +336,28 @@ public:
|
|||
|
||||
void end_row() {
|
||||
if(least_squares_) {
|
||||
unsigned int nf = af_.size() ;
|
||||
unsigned int nl = al_.size() ;
|
||||
for(unsigned int i=0; i<nf; i++) {
|
||||
for(unsigned int j=0; j<nf; j++) {
|
||||
std::size_t nf = af_.size() ;
|
||||
std::size_t nl = al_.size() ;
|
||||
for(std::size_t i=0; i<nf; i++) {
|
||||
for(std::size_t j=0; j<nf; j++) {
|
||||
A_->add_coef(if_[i], if_[j], af_[i] * af_[j]) ;
|
||||
}
|
||||
}
|
||||
CoeffType S = - bk_ ;
|
||||
for(unsigned int j=0; j<nl; j++) {
|
||||
for(std::size_t j=0; j<nl; j++) {
|
||||
S += al_[j] * xl_[j] ;
|
||||
}
|
||||
for(unsigned int i=0; i<nf; i++) {
|
||||
for(std::size_t i=0; i<nf; i++) {
|
||||
(*b_)[if_[i]] -= af_[i] * S ;
|
||||
}
|
||||
} else {
|
||||
unsigned int nf = af_.size() ;
|
||||
unsigned int nl = al_.size() ;
|
||||
for(unsigned int i=0; i<nf; i++) {
|
||||
std::size_t nf = af_.size() ;
|
||||
std::size_t nl = al_.size() ;
|
||||
for(std::size_t i=0; i<nf; i++) {
|
||||
A_->add_coef(current_row_, if_[i], af_[i]) ;
|
||||
}
|
||||
(*b_)[current_row_] = bk_ ;
|
||||
for(unsigned int i=0; i<nl; i++) {
|
||||
for(std::size_t i=0; i<nl; i++) {
|
||||
(*b_)[current_row_] -= al_[i] * xl_[i] ;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue