MCTDH-X  v2.22
 All Classes Files Functions Variables Pages
nrutil Module Reference

Data Types

interface  arth
 
interface  assert
 
interface  assert_eq
 
interface  cumsum
 
interface  diagadd
 
interface  diagmult
 
interface  geop
 
interface  get_diag
 
interface  outerdiff
 
interface  outerprod
 
interface  poly
 
interface  poly_term
 
interface  put_diag
 
interface  scatter_add
 
interface  scatter_max
 
interface  swap
 

Public Member Functions

subroutine swap_i (a, b)
 
subroutine swap_r (a, b)
 
subroutine swap_rv (a, b)
 
subroutine swap_c (a, b)
 
subroutine swap_cv (a, b)
 
subroutine swap_cm (a, b)
 
subroutine swap_z (a, b)
 
subroutine swap_zv (a, b)
 
subroutine swap_zm (a, b)
 
subroutine masked_swap_rs (a, b, mask)
 
subroutine masked_swap_rv (a, b, mask)
 
subroutine masked_swap_rm (a, b, mask)
 
subroutine assert1 (n1, string)
 
subroutine assert2 (n1, n2, string)
 
subroutine assert3 (n1, n2, n3, string)
 
subroutine assert4 (n1, n2, n3, n4, string)
 
subroutine assert_v (n, string)
 
integer function assert_eq2 (n1, n2, string)
 
integer function assert_eq3 (n1, n2, n3, string)
 
integer function assert_eq4 (n1, n2, n3, n4, string)
 
integer function assert_eqn (nn, string)
 
subroutine nrerror (string)
 
real(sp) function, dimension(n) arth_r (first, increment, n)
 
real(dp) function, dimension(n) arth_d (first, increment, n)
 
integer(i4b) function, dimension(n) arth_i (first, increment, n)
 
real(sp) function, dimension(n) geop_r (first, factor, n)
 
real(dp) function, dimension(n) geop_d (first, factor, n)
 
integer(i4b) function, dimension(n) geop_i (first, factor, n)
 
complex(sp) function, dimension(n) geop_c (first, factor, n)
 
real(dp) function, dimension(size(first),
n) 
geop_dv (first, factor, n)
 
recursive real(sp) function,
dimension(size(arr)) 
cumsum_r (arr, seed)
 
recursive integer(i4b)
function, dimension(size(arr)) 
cumsum_i (arr, seed)
 
recursive real(sp) function,
dimension(size(arr)) 
cumprod (arr, seed)
 
real(sp) function poly_rr (x, coeffs)
 
real(dp) function poly_dd (x, coeffs)
 
complex(spc) function poly_rc (x, coeffs)
 
complex(spc) function poly_cc (x, coeffs)
 
real(sp) function, dimension(size(x)) poly_rrv (x, coeffs)
 
real(dp) function, dimension(size(x)) poly_ddv (x, coeffs)
 
real(sp) function, dimension(size(x)) poly_msk_rrv (x, coeffs, mask)
 
real(dp) function, dimension(size(x)) poly_msk_ddv (x, coeffs, mask)
 
recursive real(sp) function,
dimension(size(a)) 
poly_term_rr (a, b)
 
recursive complex(spc)
function, dimension(size(a)) 
poly_term_cc (a, b)
 
complex(spc) function,
dimension(nn) 
zroots_unity (n, nn)
 
real(sp) function, dimension(size(a),
size(b)) 
outerprod_r (a, b)
 
real(dp) function, dimension(size(a),
size(b)) 
outerprod_d (a, b)
 
real(sp) function, dimension(size(a),
size(b)) 
outerdiv (a, b)
 
real(sp) function, dimension(size(a),
size(b)) 
outersum (a, b)
 
real(sp) function, dimension(size(a),
size(b)) 
outerdiff_r (a, b)
 
real(dp) function, dimension(size(a),
size(b)) 
outerdiff_d (a, b)
 
integer(i4b) function,
dimension(size(a), size(b)) 
outerdiff_i (a, b)
 
logical(lgt) function,
dimension(size(a), size(b)) 
outerand (a, b)
 
subroutine scatter_add_r (dest, source, dest_index)
 
subroutine scatter_add_d (dest, source, dest_index)
 
subroutine scatter_max_r (dest, source, dest_index)
 
subroutine scatter_max_d (dest, source, dest_index)
 
subroutine diagadd_rv (mat, diag)
 
subroutine diagadd_r (mat, diag)
 
subroutine diagmult_rv (mat, diag)
 
subroutine diagmult_r (mat, diag)
 
real(sp) function, dimension(size(mat, 1)) get_diag_rv (mat)
 
real(dp) function, dimension(size(mat, 1)) get_diag_dv (mat)
 
subroutine put_diag_rv (diagv, mat)
 
subroutine put_diag_r (scal, mat)
 
subroutine unit_matrix (mat)
 
real(sp) function vabs (v)
 

Public Attributes

integer(i4b), parameter npar_arth =16
 
integer(i4b), parameter npar2_arth =8
 
integer(i4b), parameter npar_geop =4
 
integer(i4b), parameter npar2_geop =2
 
integer(i4b), parameter npar_cumsum =16
 
integer(i4b), parameter npar_cumprod =8
 
integer(i4b), parameter npar_poly =8
 
integer(i4b), parameter npar_polyterm =8
 

Member Function/Subroutine Documentation

real(dp) function, dimension(n) nrutil::arth_d ( real(dp), intent(in)  first,
real(dp), intent(in)  increment,
integer(i4b), intent(in)  n 
)

References nrutil::arth::arth_d().

Here is the call graph for this function:

integer(i4b) function, dimension(n) nrutil::arth_i ( integer(i4b), intent(in)  first,
integer(i4b), intent(in)  increment,
integer(i4b), intent(in)  n 
)

References nrutil::arth::arth_i().

Here is the call graph for this function:

real(sp) function, dimension(n) nrutil::arth_r ( real(sp), intent(in)  first,
real(sp), intent(in)  increment,
integer(i4b), intent(in)  n 
)

References nrutil::arth::arth_r().

Here is the call graph for this function:

subroutine nrutil::assert1 ( logical, intent(in)  n1,
character(len=*), intent(in)  string 
)
subroutine nrutil::assert2 ( logical, intent(in)  n1,
logical, intent(in)  n2,
character(len=*), intent(in)  string 
)
subroutine nrutil::assert3 ( logical, intent(in)  n1,
logical, intent(in)  n2,
logical, intent(in)  n3,
character(len=*), intent(in)  string 
)
subroutine nrutil::assert4 ( logical, intent(in)  n1,
logical, intent(in)  n2,
logical, intent(in)  n3,
logical, intent(in)  n4,
character(len=*), intent(in)  string 
)
integer function nrutil::assert_eq2 ( integer, intent(in)  n1,
integer, intent(in)  n2,
character(len=*), intent(in)  string 
)

References nrutil::assert_eq::assert_eq2().

Here is the call graph for this function:

integer function nrutil::assert_eq3 ( integer, intent(in)  n1,
integer, intent(in)  n2,
integer, intent(in)  n3,
character(len=*), intent(in)  string 
)

References nrutil::assert_eq::assert_eq3().

Here is the call graph for this function:

integer function nrutil::assert_eq4 ( integer, intent(in)  n1,
integer, intent(in)  n2,
integer, intent(in)  n3,
integer, intent(in)  n4,
character(len=*), intent(in)  string 
)

References nrutil::assert_eq::assert_eq4().

Here is the call graph for this function:

integer function nrutil::assert_eqn ( integer, dimension(:), intent(in)  nn,
character(len=*), intent(in)  string 
)

References nrutil::assert_eq::assert_eqn().

Here is the call graph for this function:

subroutine nrutil::assert_v ( logical, dimension(:), intent(in)  n,
character(len=*), intent(in)  string 
)
recursive real(sp) function, dimension(size(arr)) nrutil::cumprod ( real(sp), dimension(:), intent(in)  arr,
real(sp), intent(in), optional  seed 
)
recursive integer(i4b) function, dimension(size(arr)) nrutil::cumsum_i ( integer(i4b), dimension(:), intent(in)  arr,
integer(i4b), intent(in), optional  seed 
)

References nrutil::cumsum::cumsum_i().

Here is the call graph for this function:

recursive real(sp) function, dimension(size(arr)) nrutil::cumsum_r ( real(sp), dimension(:), intent(in)  arr,
real(sp), intent(in), optional  seed 
)

References nrutil::cumsum::cumsum_r().

Here is the call graph for this function:

subroutine nrutil::diagadd_r ( real(sp), dimension(:,:), intent(inout)  mat,
real(sp), intent(in)  diag 
)
subroutine nrutil::diagadd_rv ( real(sp), dimension(:,:), intent(inout)  mat,
real(sp), dimension(:), intent(in)  diag 
)

References nrutil::assert_eq::assert_eq2().

Here is the call graph for this function:

subroutine nrutil::diagmult_r ( real(sp), dimension(:,:), intent(inout)  mat,
real(sp), intent(in)  diag 
)
subroutine nrutil::diagmult_rv ( real(sp), dimension(:,:), intent(inout)  mat,
real(sp), dimension(:), intent(in)  diag 
)

References nrutil::assert_eq::assert_eq2().

Here is the call graph for this function:

complex(sp) function, dimension(n) nrutil::geop_c ( complex(sp), intent(in)  first,
complex(sp), intent(in)  factor,
integer(i4b), intent(in)  n 
)

References nrutil::geop::geop_c().

Here is the call graph for this function:

real(dp) function, dimension(n) nrutil::geop_d ( real(dp), intent(in)  first,
real(dp), intent(in)  factor,
integer(i4b), intent(in)  n 
)

References nrutil::geop::geop_d().

Here is the call graph for this function:

real(dp) function, dimension(size(first),n) nrutil::geop_dv ( real(dp), dimension(:), intent(in)  first,
real(dp), dimension(:), intent(in)  factor,
integer(i4b), intent(in)  n 
)

References nrutil::geop::geop_dv().

Here is the call graph for this function:

integer(i4b) function, dimension(n) nrutil::geop_i ( integer(i4b), intent(in)  first,
integer(i4b), intent(in)  factor,
integer(i4b), intent(in)  n 
)

References nrutil::geop::geop_i().

Here is the call graph for this function:

real(sp) function, dimension(n) nrutil::geop_r ( real(sp), intent(in)  first,
real(sp), intent(in)  factor,
integer(i4b), intent(in)  n 
)

References nrutil::geop::geop_r().

Here is the call graph for this function:

real(dp) function, dimension(size(mat,1)) nrutil::get_diag_dv ( real(dp), dimension(:,:), intent(in)  mat)

References nrutil::assert_eq::assert_eq2(), and nrutil::get_diag::get_diag_dv().

Here is the call graph for this function:

real(sp) function, dimension(size(mat,1)) nrutil::get_diag_rv ( real(sp), dimension(:,:), intent(in)  mat)

References nrutil::assert_eq::assert_eq2(), and nrutil::get_diag::get_diag_rv().

Here is the call graph for this function:

subroutine nrutil::masked_swap_rm ( real(sp), dimension(:,:), intent(inout)  a,
real(sp), dimension(:,:), intent(inout)  b,
logical(lgt), dimension(:,:), intent(in)  mask 
)
subroutine nrutil::masked_swap_rs ( real(sp), intent(inout)  a,
real(sp), intent(inout)  b,
logical(lgt), intent(in)  mask 
)
subroutine nrutil::masked_swap_rv ( real(sp), dimension(:), intent(inout)  a,
real(sp), dimension(:), intent(inout)  b,
logical(lgt), dimension(:), intent(in)  mask 
)
subroutine nrutil::nrerror ( character(len=*), intent(in)  string)
logical(lgt) function, dimension(size(a),size(b)) nrutil::outerand ( logical(lgt), dimension(:), intent(in)  a,
logical(lgt), dimension(:), intent(in)  b 
)
real(dp) function, dimension(size(a),size(b)) nrutil::outerdiff_d ( real(dp), dimension(:), intent(in)  a,
real(dp), dimension(:), intent(in)  b 
)

References nrutil::outerdiff::outerdiff_d().

Here is the call graph for this function:

integer(i4b) function, dimension(size(a),size(b)) nrutil::outerdiff_i ( integer(i4b), dimension(:), intent(in)  a,
integer(i4b), dimension(:), intent(in)  b 
)

References nrutil::outerdiff::outerdiff_i().

Here is the call graph for this function:

real(sp) function, dimension(size(a),size(b)) nrutil::outerdiff_r ( real(sp), dimension(:), intent(in)  a,
real(sp), dimension(:), intent(in)  b 
)

References nrutil::outerdiff::outerdiff_r().

Here is the call graph for this function:

real(sp) function, dimension(size(a),size(b)) nrutil::outerdiv ( real(sp), dimension(:), intent(in)  a,
real(sp), dimension(:), intent(in)  b 
)
real(dp) function, dimension(size(a),size(b)) nrutil::outerprod_d ( real(dp), dimension(:), intent(in)  a,
real(dp), dimension(:), intent(in)  b 
)

References nrutil::outerprod::outerprod_d().

Here is the call graph for this function:

real(sp) function, dimension(size(a),size(b)) nrutil::outerprod_r ( real(sp), dimension(:), intent(in)  a,
real(sp), dimension(:), intent(in)  b 
)

References nrutil::outerprod::outerprod_r().

Here is the call graph for this function:

real(sp) function, dimension(size(a),size(b)) nrutil::outersum ( real(sp), dimension(:), intent(in)  a,
real(sp), dimension(:), intent(in)  b 
)
complex(spc) function nrutil::poly_cc ( complex(spc), intent(in)  x,
complex(spc), dimension(:), intent(in)  coeffs 
)

References nrutil::poly::poly_cc().

Here is the call graph for this function:

real(dp) function nrutil::poly_dd ( real(dp), intent(in)  x,
real(dp), dimension(:), intent(in)  coeffs 
)

References nrutil::poly::poly_dd().

Here is the call graph for this function:

real(dp) function, dimension(size(x)) nrutil::poly_ddv ( real(dp), dimension(:), intent(in)  x,
real(dp), dimension(:), intent(in)  coeffs 
)

References nrutil::poly::poly_dd(), and nrutil::poly::poly_ddv().

Here is the call graph for this function:

real(dp) function, dimension(size(x)) nrutil::poly_msk_ddv ( real(dp), dimension(:), intent(in)  x,
real(dp), dimension(:), intent(in)  coeffs,
logical(lgt), dimension(:), intent(in)  mask 
)

References nrutil::poly::poly_ddv(), and nrutil::poly::poly_msk_ddv().

Here is the call graph for this function:

real(sp) function, dimension(size(x)) nrutil::poly_msk_rrv ( real(sp), dimension(:), intent(in)  x,
real(sp), dimension(:), intent(in)  coeffs,
logical(lgt), dimension(:), intent(in)  mask 
)

References nrutil::poly::poly_msk_rrv(), and nrutil::poly::poly_rrv().

Here is the call graph for this function:

complex(spc) function nrutil::poly_rc ( complex(spc), intent(in)  x,
real(sp), dimension(:), intent(in)  coeffs 
)

References nrutil::poly::poly_rc().

Here is the call graph for this function:

real(sp) function nrutil::poly_rr ( real(sp), intent(in)  x,
real(sp), dimension(:), intent(in)  coeffs 
)

References nrutil::poly::poly_rr().

Here is the call graph for this function:

real(sp) function, dimension(size(x)) nrutil::poly_rrv ( real(sp), dimension(:), intent(in)  x,
real(sp), dimension(:), intent(in)  coeffs 
)

References nrutil::poly::poly_rr(), and nrutil::poly::poly_rrv().

Here is the call graph for this function:

recursive complex(spc) function, dimension(size(a)) nrutil::poly_term_cc ( complex(spc), dimension(:), intent(in)  a,
complex(spc), intent(in)  b 
)

References nrutil::poly_term::poly_term_cc().

Here is the call graph for this function:

recursive real(sp) function, dimension(size(a)) nrutil::poly_term_rr ( real(sp), dimension(:), intent(in)  a,
real(sp), intent(in)  b 
)

References nrutil::poly_term::poly_term_rr().

Here is the call graph for this function:

subroutine nrutil::put_diag_r ( real(sp), intent(in)  scal,
real(sp), dimension(:,:), intent(inout)  mat 
)
subroutine nrutil::put_diag_rv ( real(sp), dimension(:), intent(in)  diagv,
real(sp), dimension(:,:), intent(inout)  mat 
)

References nrutil::assert_eq::assert_eq2().

Here is the call graph for this function:

subroutine nrutil::scatter_add_d ( real(dp), dimension(:), intent(out)  dest,
real(dp), dimension(:), intent(in)  source,
integer(i4b), dimension(:), intent(in)  dest_index 
)

References nrutil::assert_eq::assert_eq2().

Here is the call graph for this function:

subroutine nrutil::scatter_add_r ( real(sp), dimension(:), intent(out)  dest,
real(sp), dimension(:), intent(in)  source,
integer(i4b), dimension(:), intent(in)  dest_index 
)

References nrutil::assert_eq::assert_eq2().

Here is the call graph for this function:

subroutine nrutil::scatter_max_d ( real(dp), dimension(:), intent(out)  dest,
real(dp), dimension(:), intent(in)  source,
integer(i4b), dimension(:), intent(in)  dest_index 
)

References nrutil::assert_eq::assert_eq2().

Here is the call graph for this function:

subroutine nrutil::scatter_max_r ( real(sp), dimension(:), intent(out)  dest,
real(sp), dimension(:), intent(in)  source,
integer(i4b), dimension(:), intent(in)  dest_index 
)

References nrutil::assert_eq::assert_eq2().

Here is the call graph for this function:

subroutine nrutil::swap_c ( complex(spc), intent(inout)  a,
complex(spc), intent(inout)  b 
)
subroutine nrutil::swap_cm ( complex(spc), dimension(:,:), intent(inout)  a,
complex(spc), dimension(:,:), intent(inout)  b 
)
subroutine nrutil::swap_cv ( complex(spc), dimension(:), intent(inout)  a,
complex(spc), dimension(:), intent(inout)  b 
)
subroutine nrutil::swap_i ( integer(i4b), intent(inout)  a,
integer(i4b), intent(inout)  b 
)
subroutine nrutil::swap_r ( real(sp), intent(inout)  a,
real(sp), intent(inout)  b 
)
subroutine nrutil::swap_rv ( real(sp), dimension(:), intent(inout)  a,
real(sp), dimension(:), intent(inout)  b 
)
subroutine nrutil::swap_z ( complex(dpc), intent(inout)  a,
complex(dpc), intent(inout)  b 
)
subroutine nrutil::swap_zm ( complex(dpc), dimension(:,:), intent(inout)  a,
complex(dpc), dimension(:,:), intent(inout)  b 
)
subroutine nrutil::swap_zv ( complex(dpc), dimension(:), intent(inout)  a,
complex(dpc), dimension(:), intent(inout)  b 
)
subroutine nrutil::unit_matrix ( real(sp), dimension(:,:), intent(out)  mat)

Referenced by nr::brent::dbrent::dfpmin::mnbrak::functional_fcrab_minimization().

Here is the caller graph for this function:

real(sp) function nrutil::vabs ( real(sp), dimension(:), intent(in)  v)
complex(spc) function, dimension(nn) nrutil::zroots_unity ( integer(i4b), intent(in)  n,
integer(i4b), intent(in)  nn 
)

Member Data Documentation

integer(i4b), parameter nrutil::npar2_arth =8
integer(i4b), parameter nrutil::npar2_geop =2
integer(i4b), parameter nrutil::npar_arth =16
integer(i4b), parameter nrutil::npar_cumprod =8
integer(i4b), parameter nrutil::npar_cumsum =16
integer(i4b), parameter nrutil::npar_geop =4
integer(i4b), parameter nrutil::npar_poly =8
integer(i4b), parameter nrutil::npar_polyterm =8

The documentation for this module was generated from the following file: