Esempio n. 1
0
        private void InitMatrixInfo()
        {
            EnumLaplaceMatrix type = (EnumLaplaceMatrix)this.comboBoxLaplaceType.SelectedItem;

            this.dataGridViewMatrixInfo.Rows.Clear();
            this.dataGridViewMatrixInfo.Rows.Add("Type", type.ToString());
            this.dataGridViewMatrixInfo.Rows.Add("Column", matrix.ColumnSize);
            this.dataGridViewMatrixInfo.Rows.Add("Row", matrix.RowSize);
            this.dataGridViewMatrixInfo.Rows.Add("NoZero", matrix.NumOfElements());
            this.dataGridViewMatrixInfo.Rows.Add("Zero", matrix.ZeroSize);
            this.dataGridViewMatrixInfo.Rows.Add("Whole Size", (matrix.WholeSize));
            this.dataGridViewMatrixInfo.Rows.Add("Symmetric", (matrix.IsSymmetric()));
        }