GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Macros | Functions | Variables
psi.cc File Reference
#include "ov.h"
#include "defun.h"
#include "error.h"
#include "dNDArray.h"
#include "fNDArray.h"
#include "lo-specfun.h"
Include dependency graph for psi.cc:

Go to the source code of this file.

Macros

#define FLOAT_BRANCH(T, A, M, E)
 
#define FLOAT_BRANCH(T, A, M, E)
 

Functions

OCTAVE_EXPORT octave_value_list Fpsi (const octave_value_list &args, int) ar
 
defaults to zero A value of
zero computes the digamma a
value the trigamma and so on
The digamma function is for
polygamma 
functions (ar{k}higher than 0)
 

Variables

defaults to zero A value of
zero computes the digamma a
value the trigamma and so on
The digamma function is 
ar {z} can have any value real or complex value. However
 
defaults to zero A value of
zero computes the digamma a
value the trigamma and so on
The digamma function is 
defined
 
defaults to zero A value of
zero computes the digamma 
function
 
defaults to zero A value of
zero computes the digamma a
value 
of
 

Macro Definition Documentation

#define FLOAT_BRANCH (   T,
  A,
  M,
 
)
Value:
if (oct_z.is_ ## T ##_type ()) \
{ \
const A ## NDArray z = oct_z.M ## array_value (); \
A ## NDArray psi_z (z.dims ()); \
\
const E* zv = z.data (); \
E* psi_zv = psi_z.fortran_vec (); \
const octave_idx_type n = z.numel (); \
for (octave_idx_type i = 0; i < n; i++) \
*psi_zv++ = octave::math::psi (*zv++); \
\
retval = psi_z; \
}
for(octave_idx_type n=0;n< hcv.numel();n++)
Definition: graphics.cc:10128
double psi(double z)
Definition: lo-specfun.cc:3714
const T * data(void) const
Definition: Array.h:582
octave_value retval
Definition: data.cc:6294
=val(i)}if ode{val(i)}occurs in table i
Definition: lookup.cc:239
F77_RET_T const F77_INT F77_CMPLX * A
#define FLOAT_BRANCH (   T,
  A,
  M,
 
)
Value:
if (oct_z.is_ ## T ##_type ()) \
{ \
const A ## NDArray z = oct_z.M ## array_value (); \
A ## NDArray psi_z (z.dims ()); \
\
const E* zv = z.data (); \
E* psi_zv = psi_z.fortran_vec (); \
const octave_idx_type n = z.numel (); \
for (octave_idx_type i = 0; i < n; i++) \
{ \
if (*zv < 0) \
error ("psi: Z must be non-negative for polygamma (K > 0)"); \
\
*psi_zv++ = octave::math::psi (k, *zv++); \
} \
retval = psi_z; \
}
for(octave_idx_type n=0;n< hcv.numel();n++)
Definition: graphics.cc:10128
double psi(double z)
Definition: lo-specfun.cc:3714
for large enough k
Definition: lu.cc:606
void error(const char *fmt,...)
Definition: error.cc:570
if(nargin< 2) print_usage()
Definition: cellfun.cc:405
const T * data(void) const
Definition: Array.h:582
octave_value retval
Definition: data.cc:6294
=val(i)}if ode{val(i)}occurs in table i
Definition: lookup.cc:239
F77_RET_T const F77_INT F77_CMPLX * A

Function Documentation

OCTAVE_EXPORT octave_value_list Fpsi ( const octave_value_list args,
int   
)

Definition at line 68 of file psi.cc.

Referenced by install_psi_fcns().

defaults to zero A value of zero computes the digamma a value the trigamma and so on The digamma function is for polygamma functions ( ar{k}higher than  0)

Variable Documentation

defaults to zero A value of zero computes the digamma a value the trigamma and so on The digamma function is ar {z} can have any value real or complex value. However

Definition at line 68 of file psi.cc.

defaults to zero A value of zero computes the digamma a value the trigamma and so on The digamma function is defined

Definition at line 68 of file psi.cc.

Referenced by dump_octave_core().

defaults to zero A value of zero computes the digamma a value the trigamma function

Definition at line 68 of file psi.cc.

defaults to zero A value of zero computes the digamma a value of