DCProgs 0.9 documentation

Python API Reference

«  Searching for Roots   ::   Contents   ::   QMatrix  »

Python API Reference

Extras

Internal Numpy Type

Many of the python bindings accept both scalars and values that can be converted to numpy arrays. The latter are first converted to a specific numpy type, depending on how this package was compiled.

dcprogs.internal_dtype

Numpy type used internally

If the package is configured and compiled with -DCPROGS_LONG_DOUBLE (see wiki), then long doubles of 128bits are used through out. Otherwise, the package defaults to garden variety 64bit doubles.

Linear Algebra

Numpy does provides only a subset of its utilities for arrays consisting of 128 bit reals. As a result, this package exposes some of Eigen‘s capabilities, as needed. Their interface is generally reminiscent of the numpy utility they mirror.

dcprogs.likelihood.eig(*args)

Computes eigenvalues of a matrix

dcprogs.likelihood.inv(*args)

Computes inverse of a non-singular matrix

dcprogs.likelihood.svd()
dcprogs.likelihood.det(*args)

Computes determinant of a matrix

dcprogs.likelihood.expm(*args)

Computes singular value decomposition of a matrix

«  Searching for Roots   ::   Contents   ::   QMatrix  »