in reply to Using PDL::GSLSF::GAMMA
Note the two [o] parameters (i.e. outputs); the second one is the error, which here was a very small number. If you call the op in scalar context, you get the last output. In this case, that's arguably the least useful one, as shown by the OP's confusion. One idea is to just throw an exception for a multi-output op called in scalar context. Anyone got a view?pdl> ? gsl_sf_gamma Module PDL::GSLSF::GAMMA gsl_sf_gamma Signature: (double x(); double [o]y(); double [o]e()) Gamma(x), x not a negative integer
|
|---|