Fix how Ceres calls CAMD.

CAMD requires that the id of the largest numbered elimination
group be less than the number of columns in the matrix.

This patch ensures that this is the case. Without this,
in certain cases its possible for CAMD to silently fail
while doing out of bounds access and then causing Ceres to fail.

Also add some logging about the problem size before and after
the reduced program has been created.

Change-Id: I0ea3c6572a7c29cbbf09afec9ba5b4f4d4b21a9b
3 files changed