GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
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

◆ FLOAT_BRANCH [1/2]

#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; \
}
double psi(double z)
Definition: lo-specfun.cc:2100
const T * data(void) const
Definition: Array.h:582
F77_RET_T const F77_INT F77_CMPLX * A
for i
Definition: data.cc:5264

◆ FLOAT_BRANCH [2/2]

#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; \
}
double psi(double z)
Definition: lo-specfun.cc:2100
const T * data(void) const
Definition: Array.h:582
for large enough k
Definition: lu.cc:617
F77_RET_T const F77_INT F77_CMPLX * A
for i
Definition: data.cc:5264

Function Documentation

◆ Fpsi()

OCTAVE_EXPORT octave_value_list Fpsi ( const octave_value_list args,
int   
)

Definition at line 68 of file psi.cc.

◆ functions()

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

◆ ar

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.

◆ defined

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

◆ function

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

Definition at line 68 of file psi.cc.

◆ of

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

Definition at line 68 of file psi.cc.

Referenced by make_function_of_class(), print_sigmask(), and print_sigset().