/** * <p>Performs an "in-place" conjugate transpose.</p> * * @param mat The matrix that is to be transposed. Modified. * @see #transpose(ZMatrixRMaj) */ public static void transposeConjugate(ZMatrixRMaj mat) { if (mat.numCols == mat.numRows) { TransposeAlgs_ZDRM.squareConjugate(mat); } else { ZMatrixRMaj b = new ZMatrixRMaj(mat.numCols, mat.numRows); transposeConjugate(mat, b); mat.reshape(b.numRows, b.numCols); mat.setTo(b); } }