API Reference#

The madupite module provides an interface for working with the Madupite C++ library.

madupite.createTransitionProbabilityTensor(*, ...)

Creates a transition probability tensor for a Markov Decision Process (MDP).

madupite.createStageCostMatrix(*[, comm, name])

Creates a stage cost matrix for a Markov Decision Process (MDP).

madupite.MDP(*args, **kwargs)

Represents a Markov Decision Process (MDP).

madupite.MatrixPreallocation(*args, **kwargs)

Represents the preallocation for a matrix in the Madupite framework.

madupite.getCommWorld()

Get the global MPI communicator.

madupite.mpi_rank_size(*[, comm])

Return the rank and size of the global MPI communicator.

madupite.writePETScBinary(matrix, filename)

Write a numpy/scipy matrix as petsc binary sparse format to file https://petsc.org/release/manualpages/Mat/MatLoad/#notes.

madupite.MatrixType(value[, names, module, ...])

Enum class representing the type of a matrix in the Madupite framework.

madupite.MatrixCategory(value[, names, ...])

Enum class representing the category of a matrix in the Madupite framework.

madupite.Matrix(*args, **kwargs)

Represents a matrix used within the Madupite framework.

madupite.initialize_madupite([argv])

Initialize the Madupite instance.