mtl5.DenseMatrix_f64#
- class mtl5.DenseMatrix_f64#
- property T#
(self) -> mtl5._core.DenseMatrix_f64
- copy()#
Return an owning copy of this matrix
Signatures:
copy(self) -> mtl5._core.DenseMatrix_f64
- property device#
(self) -> str
- property dtype#
(self) -> str
- property is_view#
(self) -> bool
- property num_cols#
(self) -> int
- property num_rows#
(self) -> int
- property shape#
(self) -> tuple[int, int]
- to()#
Transfer matrix to device (currently: ‘cpu’ only)
Signatures:
to(self, device: str) -> mtl5._core.DenseMatrix_f64
- to_numpy()#
Return a zero-copy NumPy array view of this matrix
Signatures:
to_numpy(self) -> numpy.ndarray[dtype=float64, shape=(*, *)]