MatrixDouble#
- class pyopenms.MatrixDouble(*args, **kwargs)#
Bases:
objectOpenMS 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
Returns a copy of the matrix as a numpy array
Returns a zero-copy numpy view of the matrix data (F-contiguous).
Fast copy from a numpy array to the OpenMS Matrix.
- 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#