Fixed warnings

release/4.3a0
Richard Roberts 2013-08-11 18:45:44 +00:00
parent 517a5037a7
commit f0c0a56365
2 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@ TEST(GaussianBayesNet, ComputeSteepestDescentPoint) {
// Compute the gradient using dense matrices
Matrix augmentedHessian = GaussianFactorGraph(gbn).augmentedHessian();
LONGS_EQUAL(11, augmentedHessian.cols());
LONGS_EQUAL(11, (long)augmentedHessian.cols());
Vector denseMatrixGradient = -augmentedHessian.col(10).segment(0,10);
EXPECT(assert_equal(gradient, denseMatrixGradient, 1e-5));

View File

@ -254,7 +254,7 @@ TEST(GaussianBayesTree, ComputeSteepestDescentPointBT) {
// Compute the gradient using dense matrices
Matrix augmentedHessian = GaussianFactorGraph(bt).augmentedHessian();
LONGS_EQUAL(11, augmentedHessian.cols());
LONGS_EQUAL(11, (long)augmentedHessian.cols());
Vector denseMatrixGradient = -augmentedHessian.col(10).segment(0,10);
EXPECT(assert_equal(gradient, denseMatrixGradient, 1e-5));