SOOT
view release on metacpan or search on metacpan
ROOT_XSP/TF1.xsp view on Meta::CPAN
%module{SOOT};
class TF1 {
TFormulaFloatArray GetParErrors();
// GetRandom optimization
%{
void
GetRandom(self, ...)
SV* self;
PPCODE:
dXSTARG;
TF1* fun = (TF1*)SOOT::LobotomizeObject(aTHX_ self); // note: could check classname...
if (items == 1) {
PUSHn(fun->GetRandom());
}
else if (items == 3) {
PUSHn(fun->GetRandom(SvNV(ST(1)), SvNV(ST(2))));
}
else {
croak("TF1::GetRandom takes either two or no arguments");
}
%}
};
( run in 0.927 second using v1.01-cache-2.11-cpan-5511b514fd6 )