Julia specific interface for normcdf and normpdf
parent
be316b3dec
commit
d047878333
|
@ -5939,6 +5939,17 @@ TrinaryOpNode::writeOutput(ostream &output, ExprNodeOutputType output_type,
|
||||||
arg3->writeOutput(output, output_type, temporary_terms, temporary_terms_idxs, tef_terms);
|
arg3->writeOutput(output, output_type, temporary_terms, temporary_terms_idxs, tef_terms);
|
||||||
output << ")/M_SQRT2)))";
|
output << ")/M_SQRT2)))";
|
||||||
}
|
}
|
||||||
|
else if (isJuliaOutput(output_type))
|
||||||
|
{
|
||||||
|
// Julia API is normcdf(mu, sigma, x) !
|
||||||
|
output << "normcdf(";
|
||||||
|
arg2->writeOutput(output, output_type, temporary_terms, temporary_terms_idxs, tef_terms);
|
||||||
|
output << ",";
|
||||||
|
arg3->writeOutput(output, output_type, temporary_terms, temporary_terms_idxs, tef_terms);
|
||||||
|
output << ",";
|
||||||
|
arg1->writeOutput(output, output_type, temporary_terms, temporary_terms_idxs, tef_terms);
|
||||||
|
output << ")";
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
output << "normcdf(";
|
output << "normcdf(";
|
||||||
|
@ -5964,6 +5975,17 @@ TrinaryOpNode::writeOutput(ostream &output, ExprNodeOutputType output_type,
|
||||||
arg3->writeOutput(output, output_type, temporary_terms, temporary_terms_idxs, tef_terms);
|
arg3->writeOutput(output, output_type, temporary_terms, temporary_terms_idxs, tef_terms);
|
||||||
output << ",2)/2)))";
|
output << ",2)/2)))";
|
||||||
}
|
}
|
||||||
|
else if (isJuliaOutput(output_type))
|
||||||
|
{
|
||||||
|
// Julia API is normpdf(mu, sigma, x) !
|
||||||
|
output << "normpdf(";
|
||||||
|
arg2->writeOutput(output, output_type, temporary_terms, temporary_terms_idxs, tef_terms);
|
||||||
|
output << ",";
|
||||||
|
arg3->writeOutput(output, output_type, temporary_terms, temporary_terms_idxs, tef_terms);
|
||||||
|
output << ",";
|
||||||
|
arg1->writeOutput(output, output_type, temporary_terms, temporary_terms_idxs, tef_terms);
|
||||||
|
output << ")";
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
output << "normpdf(";
|
output << "normpdf(";
|
||||||
|
|
Loading…
Reference in New Issue