Procedures

ProcedureLocationProcedure TypeDescription
anticommutatormatrix_mFunction

Calculate the anticommutator between two complex square matrices.

argbasic_mFunction

Returns the complex argument θ of a complex number z=r·exp(iθ).

commutatormatrix_mFunction

Calculate the commutator between two complex square matrices.

conjgnambu_mInterface

Complex conjugation

conjgspin_mInterface

Complex conjugation

cxbasic_mFunction

Returns the complex number z=x+iy.

diagmath_mInterface

Public interface for functions that deal with matrix diagonals.

differentiatemath_mInterface

Public interface for various differentiation routines.

differentiate_array_cxcalculus_mFunction

Complex version of differentiate_array_re.

differentiate_array_recalculus_mFunction

This function calculates the numerical derivative of an array y with respect to x, using a central difference approximation at the interior points and forward/backward difference approximations at the exterior points. Note that since all the three approaches yield two-point approximations of the derivative, the mesh spacing of x does not necessarily have to be uniform.

dumpstdio_mInterface

Public interface for functions that dump results to files

dump_arraysstdio_mSubroutine

This subroutine is used to dump numerical arrays to an output file.

dump_scalarstdio_mSubroutine

This subroutine is used to dump a numerical result to an output file.

errorstdio_mSubroutine

This subroutine provides a way to report an error message and halt the program.

evaluateevaluate_mInterface

Public interface for various routines that evaluate mathematical expressions.

finalizevoltage_pSubroutine
finalizeconverge_pSubroutine
finalizecritical_pSubroutine
finalizephase_pSubroutine
finalizeflow_pSubroutine
identitymatrix_mFunction

Constructs an n×n identity matrix.

imbasic_mFunction

Returns the imaginary part of a complex number z=x+iy.

Read more…
inputstdio_mFunction

This function is used to open an input file for reading.

integratemath_mInterface

Public interface for various integration routines.

integrate_array_cxcalculus_mFunction

Complex version of integrate_array_re.

integrate_array_recalculus_mFunction

This function calculates the integral of an array y with respect to x using a trapezoid approximation. Note that the mesh spacing of x does not necessarily have to be uniform.

integrate_range_cxcalculus_mFunction

Complex version of integrate_range_re.

integrate_range_recalculus_mFunction

This function constructs a piecewise hermitian cubic interpolation of an array y(x) based on discrete numerical data, and subsequently evaluates the integral of the interpolation in the range (a,b). Note that the mesh spacing of x does not necessarily have to be uniform.

interpolatemath_mInterface

Public interface for various interpolation routines.

interpolate_array_cxcalculus_mFunction

Complex version of interpolate_array_re.

interpolate_array_recalculus_mFunction

This function constructs a piecewise hermitian cubic interpolation of an array y(x) based on discrete numerical data, and evaluates the interpolation at points p. Note that the mesh spacing of x does not necessarily have to be uniform.

interpolate_point_cxcalculus_mFunction

Complex version of interpolate_point_re.

interpolate_point_matrix_recalculus_mFunction

Perform a Piecewise Cubic Hermitian Interpolation of a matrix function using Catmull-Rom splines.

interpolate_point_recalculus_mFunction

Wrapper for interpolate_array_re that accepts scalar arguments.

inversenambu_mInterface

Matrix inverse

inversespin_mInterface

Matrix inverse

inversemath_mInterface

Public interface for functions that calculate a matrix inverse.

linspacemath_mInterface

Public interface for routines that initialize arrays.

linspace_array_recalculus_mSubroutine

Populates an existing array with elements from first to last, inclusive.

material_confmaterial_mSubroutine

Configure a material property based on a key-value pair.

material_loadmaterial_mSubroutine

Load a backup of a previous material state.

matrix_diagmatrix_mFunction

Construct a block-diagonal matrix R from two general matrices A and B.

matrix_inverse_cxmatrix_mFunction

Invert a square n×n matrix using Gauss-Jordan elimination with partial pivoting. In the special case n=2, the inverse is evaluated using a cofactoring algorithm. [This implementation is based on Algorithm #2 in "Efficient matrix inversion via Gauss-Jordan elimination and its parallelization" by E.S. Quintana et al. (1998)]

matrix_inverse_rematrix_mFunction

Wrapper for matrix_inverse_cx that allows the procedure to be used for real matrices.

matrix_tracematrix_mFunction

Calculate the trace of a general complex matrix.

meanmath_mInterface

Public interface for routines that calculate the mean value.

mean_array_cxcalculus_mFunction

Calculates the mean value of a complex-valued array.

mean_array_recalculus_mFunction

Calculates the mean value of a real-valued array.

messagestdio_mSubroutine

This subroutine provides a way to report a status message.

nambuvnambu_mInterface

Construct basis matrices

nonzerobasic_mFunction

Checks whether or not the argument has a finite norm.

norm2spin_mInterface

Matrix norm

outputstdio_mFunction

This function is used to open an output file for writing.

posthookvoltage_pSubroutine
posthookphase_pSubroutine
prehookvoltage_pSubroutine
prehookcritical_pSubroutine
prehookphase_pSubroutine
prehookflow_pSubroutine
propagatorpropagator_mInterface
rebasic_mFunction

Returns the real part of a complex number z=x+iy.

Read more…
spinorbitspinorbit_mInterface
spinorbit_constructspinorbit_mFunction

Constructs a spinorbit object with a given parent material.

spinscatteringspinscattering_mInterface
spinscattering_constructspinscattering_mFunction

Constructs a spinscattering object with a given parent material.

status_bodystdio_mSubroutine

This subroutine is used to write boxed status messages to standard out; in particular, this routine writes out the name and value of a variable.

status_boxstdio_mSubroutine

This subroutine is used to write boxed status messages to standard out.

status_footstdio_mSubroutine

This subroutine is used to write boxed status messages to standard out; in particular, this routine writes out the bottom edge of such a box.

status_headstdio_mSubroutine

This subroutine is used to write boxed status messages to standard out; in particular, this routine writes out a boxed title with a timestamp.

structurestructure_mInterface
sumnambu_mInterface

Matrix sum

sumspin_mInterface

Matrix sum

tracenambu_mInterface

Matrix trace

tracespin_mInterface

Matrix trace

tracemath_mInterface

Public interface for functions that calculate a matrix trace.

unitvectorbasic_mFunction

If the argument has a finite norm, then it will be rescaled to a unit vector. If that norm is zero, then a zero vector is returned instead.

vector_diagmatrix_mFunction

Extract the diagonal of a general complex matrix.

warningstdio_mSubroutine

This subroutine provides a way to report a warning message.