pub trait MatrixUnary: NDArray + Debug { type Diag: Access<Self::DType>; // Required method fn diag( self, ) -> Result<Array<Self::DType, Self::Diag, Self::Platform>, Error>; }
Matrix unary operations
Construct an operation to read the diagonal(s) of this matrix or batch of matrices. This will return an error if the last two dimensions of the batch are unequal.