Mercurial > hg > octave-lyh
diff liboctave/lo-specfun.h @ 14817:67897baaa05f
Adapt implementation of betaincinv to Octave.
Add support for 'single' type variables.
Use superclass Array rather than Matrix or NDArray in function prototypes.
* lo-specfun.h, lo-specfun.cc: Use superclass Array rather than Matrix or NDArray
in function prototypes for betaincinv.
* beta.m: Add seealso links in docstring.
* betainc.cc (betaincinv): Move code from mappers.cc. Cast output
to float if any of the inputs to function are of type single.
* mappers.cc (betaincinv): Delete code for betaincinv.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Thu, 28 Jun 2012 10:18:38 -0700 |
parents | 0a868d90436b |
children |
line wrap: on
line diff
--- a/liboctave/lo-specfun.h +++ b/liboctave/lo-specfun.h @@ -581,16 +581,14 @@ extern OCTAVE_API double erfcx (double x); extern OCTAVE_API float erfcx (float x); -extern OCTAVE_API double betaincinv (double y, double p, double q); -extern OCTAVE_API Matrix betaincinv (double x, double a, const Matrix& b); -extern OCTAVE_API Matrix betaincinv (double x, const Matrix& a, double b); -extern OCTAVE_API Matrix betaincinv (double x, const Matrix& a, const Matrix& b); - -extern OCTAVE_API Matrix betaincinv (const Matrix& x, double a, double b); -extern OCTAVE_API Matrix betaincinv (const Matrix& x, double a, const Matrix& b); -extern OCTAVE_API Matrix betaincinv (const Matrix& x, const Matrix& a, double b); -extern OCTAVE_API Matrix betaincinv (const Matrix& x, const Matrix& a, const Matrix& b); - -extern OCTAVE_API double betain (double x, double p, double q, double beta, bool& err); +extern OCTAVE_API double betaincinv (double x, double a, double b); +extern OCTAVE_API Array<double> betaincinv (double x, double a, const Array<double>& b); +extern OCTAVE_API Array<double> betaincinv (double x, const Array<double>& a, double b); +extern OCTAVE_API Array<double> betaincinv (double x, const Array<double>& a, const Array<double>& b); +extern OCTAVE_API Array<double> betaincinv (const Array<double>& x, double a, double b); +extern OCTAVE_API Array<double> betaincinv (const Array<double>& x, double a, double b); +extern OCTAVE_API Array<double> betaincinv (const Array<double>& x, double a, const Array<double>& b); +extern OCTAVE_API Array<double> betaincinv (const Array<double>& x, const Array<double>& a, double b); +extern OCTAVE_API Array<double> betaincinv (const Array<double>& x, const Array<double>& a, const Array<double>& b); #endif