public BigIntMatrix(BigInteger[,] c1) { this.rowsCount = c1.GetLongLength(0); this.colsCount = c1.GetLongLength(1); Mat = new BigInteger[rowsCount, colsCount]; for (long i = 0; i < rowsCount; i++) { for (long j = 0; j < colsCount; j++) { Mat[i, j] = c1[i, j]; } } }