Python Extended Types and OML Type Mapping

Comparative list of data types in Python and OML that can be used when creating a bridge between the two languages.

Python Non-Basic Type OML Type Comments
Numpy – array, Ndarray, matrix


ND Matrix

  • From the Python matrix, two-dimensional numpy array to OML 2D matrix.
  • From Python numpy, ND array to OML ND matrix (if the number of dimensions is greater than two).
  • From OML 2D matrix and ND matrix to Python NDarray.
    Note: Only the following data types are supported in the OML matrix: Bool, int, Float, and Complex.
Scipy - CSC (Compressed Sparse Column) matrix Sparse matrix Python Scipy non-CSC sparse matrix to be converted to CSC by using the method tocsc() to get it into OML.