static public void assertSquare(IDoubleMatrix mat){
  if (mat.getRowNum() != mat.getColNum()) {
    throw new AdeCoreIllegalArgumentException(String.format("Expected a square matrix. Matrix size is %d x %d",mat.getRowNum(),mat.getColNum()));
  }
}

static public void assertSquare ( IDoubleMatrix mat ) { if ( mat . getRowNum ( ) != mat . getColNum ( ) ) { throw new AdeCoreIllegalArgumentException ( String . format ( "Expected a square matrix. Matrix size is %d x %d" , mat . getRowNum ( ) , mat . getColNum ( ) ) ) ; } }
throws an exception if matrix is not square
