pub trait MatrixUnary: NDArray + Debug {
type Diag: Access<Self::DType>;
type Transpose: Access<Self::DType>;
// Required methods
fn mt(
self,
) -> Result<Array<Self::DType, Self::Transpose, Self::Platform>, Error>;
fn diag(
self,
) -> Result<Array<Self::DType, Self::Diag, Self::Platform>, Error>;
}Expand description
Matrix unary operations