Skip to content

Commit 71ef232

Browse files
pcaspersjenkins
authored andcommitted
QPR-11984 fix
1 parent d0d96c5 commit 71ef232

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

QuantExt/qle/math/randomvariable.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

2525
#include <boost/math/distributions/normal.hpp>
2626

27+
#include <iostream>
28+
2729
namespace QuantExt {
2830

2931
void Filter::clear() {
@@ -853,7 +855,7 @@ Array regressionCoefficients(
853855
a.copyToMatrixCol(A, j);
854856
}
855857

856-
if (debugLabel.empty()) {
858+
if (!debugLabel.empty()) {
857859
for (Size i = 0; i < r.size(); ++i) {
858860
std::cout << debugLabel << "," << r[i] << ",";
859861
for (Size j = 0; j < regressor.size(); ++j) {

0 commit comments

Comments
 (0)