> I think the warning must come from a call to vector 'resize' member in
> 'jacobi'. Or am I missing something?

I'm compiling the test program above to illustrate the problem; there's no
implementation of jacobi at all. The resize occurs because the vector size
is specified in the "weights(P)" constructor call and then this size is,
possibly, changed in the "weights = jacobi(..." assignment.