# Converters

Note

OPS! For internal use!

`systemds.utils.converters.``matrix_block_to_numpy`(jvm: py4j.java_gateway.JVMView, mb: py4j.java_gateway.JavaObject)

  Converts a MatrixBlock object in the JVM to a numpy array.

  Parameters

    - jvm – The current JVM instance running systemds.

    - mb – A pointer to the JVM’s MatrixBlock object.

`systemds.utils.converters.``numpy_to_matrix_block`(sds: SystemDSContext, np_arr: numpy.array)

  Converts a given numpy array, to internal matrix block representation.

  Parameters

    - sds – The current systemds context.

    - np_arr – the numpy array to convert to matrixblock.

`systemds.utils.converters.``pandas_to_frame_block`(sds: SystemDSContext, pd_df: pandas.core.frame.DataFrame)

  Converts a given numpy array, to internal matrix block representation.

  Parameters

    - sds – The current systemds context.

    - np_arr – the numpy array to convert to matrixblock.