Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yorkerlin committed May 20, 2014
1 parent 10e4c1d commit 13905c1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/shogun/mathematics/Integration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,8 @@ float64_t CIntegration::integrate_quadgh_customized(CFunction* f,
SGVector<float64_t> xgh, SGVector<float64_t> wgh)
{
REQUIRE(xgh.vlen == wgh.vlen,
"The length of node array and weight array should be the same\n")
"The length of node array (%d) and weight array (%d) should be the same\n",
xgh.vlen, wgh.vlen);

SG_REF(f);

Expand Down Expand Up @@ -508,7 +509,9 @@ void CIntegration::evaluate_quadgk(CFunction* f, CDynamicArray<float64_t>* subs,

void CIntegration::generate_gauher(SGVector<float64_t> xgh, SGVector<float64_t> wgh)
{
REQUIRE(xgh.vlen == wgh.vlen, "The length of xgh and wgh should be the same\n");
REQUIRE(xgh.vlen == wgh.vlen,
"The length of node array (%d) and weight array (%d) should be the same\n",
xgh.vlen, wgh.vlen);

index_t n = xgh.vlen;

Expand Down Expand Up @@ -545,7 +548,9 @@ void CIntegration::generate_gauher(SGVector<float64_t> xgh, SGVector<float64_t>

void CIntegration::generate_gauher20(SGVector<float64_t> xgh, SGVector<float64_t> wgh)
{
REQUIRE(xgh.vlen == wgh.vlen, "The length of xgh and wgh should be the same\n");
REQUIRE(xgh.vlen == wgh.vlen,
"The length of node array (%d) and weight array (%d) should be the same\n",
xgh.vlen, wgh.vlen);
REQUIRE(xgh.vlen == 20, "The length of xgh and wgh should be 20\n");

static const index_t n = 20;
Expand Down

0 comments on commit 13905c1

Please sign in to comment.