Fixed warning

release/4.3a0
Richard Roberts 2013-10-03 16:50:18 +00:00
parent 95ac34aeeb
commit 19602bbb0b
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ Diagonal::Diagonal(const Vector& sigmas, bool initialize_invsigmas):
Diagonal::shared_ptr Diagonal::Variances(const Vector& variances, bool smart) {
if (smart) {
// check whether all the same entry
int j, n = variances.size();
DenseIndex j, n = variances.size();
for (j = 1; j < n; j++)
if (variances(j) != variances(0)) goto full;
return Isotropic::Variance(n, variances(0), true);