Mat.slice - multiple declarations

Function Mat.slice

Return a slice of the matrix

Mat!(T,RE-RS,CE-CS) slice(size_t RS, size_t RE, size_t CS, size_t CE)() const @property
if (RE > RS && (RE <= rowLength) && (CE > CS) && (CE <= columnLength));

Function Mat.slice

Assign a slice of this matrix

void slice(size_t RS, size_t CS, U, size_t UR, size_t UC) (
  in Mat!(U,UR,UC) mat
) @property
if (RS + UR <= rowLength && (CS + UC <= columnLength) && isImplicitlyConvertible!(U, T));

e.g

mat.slice!(0, 2) = otherMat;