StateMint

This module provides convenience functions for turning symbolic matrices into Numpy matrices for simulation and analysis.

StateMint.to_numpy.array(data, values={})[source]

Convert a symbolic matrix to a Numpy array.

Converts a given symbolic matrix, most likely returned in the output of StateMint.Solve, into a Numpy array.

Parameters:
  • data (sympy.Matrix) – The symbolic matrix to convert to a Numpy array.
  • (dict of str (values) – float, optional): The values to replace each symbolic variable with in a dictionary with the key as a string of the variable name, and the value as the number to replace it with
Returns:

A Numpy array of the matrix using the values given

Return type:

numpy.ndarray