Converters

Note

OPS! For internal use!

systemds.utils.converters.matrix_block_to_numpy(jvm: JVMView, mb: 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: 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: 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.