/** * 判断矩阵是否为方阵 * * @return */ public boolean isSquareMatrix() { if (this.matrixData.length == this.matrixData[0].length) { return true; } else { return false; } }