typecast to size_t to remove build warnings
parent
e75c3ba3d3
commit
7395cdd10f
|
@ -111,7 +111,7 @@ bool choleskyPartial(Matrix& ABC, size_t nFrontal, size_t topleft) {
|
|||
return true;
|
||||
|
||||
assert(ABC.cols() == ABC.rows());
|
||||
assert(ABC.rows() >= topleft);
|
||||
assert(size_t(ABC.rows()) >= topleft);
|
||||
const size_t n = static_cast<size_t>(ABC.rows() - topleft);
|
||||
assert(nFrontal <= size_t(n));
|
||||
|
||||
|
|
|
@ -505,7 +505,7 @@ VectorValues HessianFactor::solve() {
|
|||
|
||||
// Do Cholesky Factorization
|
||||
const size_t n = size();
|
||||
assert(info_.nBlocks() == n + 1);
|
||||
assert(size_t(info_.nBlocks()) == n + 1);
|
||||
info_.choleskyPartial(n);
|
||||
auto R = info_.triangularView(0, n);
|
||||
auto eta = linearTerm();
|
||||
|
|
Loading…
Reference in New Issue