MatrixDouble#

class pyopenms.MatrixDouble(*args, **kwargs)#

Bases: object

OpenMS class MatrixDouble

__init__(self) → None#
__init__(self, arg: pyopenms._pyopenms_datastructures.MatrixDouble, /) → None
__init__(self, arg0: int, arg1: int, arg2: float, /) → None

Methods

get_matrix_as_view(*args, **kwargs)

get_matrix_mv(*args, **kwargs)

Attributes

cols

fromNdArray

getValue

get_matrix

Returns a copy of the matrix as a numpy array

matrix_view

Returns a zero-copy numpy view of the matrix data (F-contiguous).

resize

rows

setValue

set_matrix

Fast copy from a numpy array to the OpenMS Matrix.

size

cols#
fromNdArray = <nanobind.nb_func object>#
getValue#
get_matrix#

Returns a copy of the matrix as a numpy array

get_matrix_as_view(*args, **kwargs)#
get_matrix_mv(*args, **kwargs)#
matrix_view#

Returns a zero-copy numpy view of the matrix data (F-contiguous). Modifications affect the C++ object. Returns empty array if empty.

resize#
rows#
setValue#
set_matrix#

Fast copy from a numpy array to the OpenMS Matrix.

size#