Changeset 2284 for trunk/sources/HeuristicLab.SparseMatrix/3.2/Matrix.cs
- Timestamp:
- 08/13/09 14:45:40 (15 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.SparseMatrix/3.2/Matrix.cs
r2283 r2284 25 25 26 26 namespace HeuristicLab.SparseMatrix { 27 public class SparseMatrix : ItemBase {28 public SparseMatrix() {29 this.rows = new List< SparseMatrixRow>();27 public class Matrix : ItemBase { 28 public Matrix() { 29 this.rows = new List<MatrixRow>(); 30 30 } 31 31 32 public SparseMatrix(IEnumerable<SparseMatrixRow> rows)32 public Matrix(IEnumerable<MatrixRow> rows) 33 33 : this() { 34 34 this.rows.AddRange(rows); 35 35 } 36 36 37 private List< SparseMatrixRow> rows;38 public ReadOnlyCollection< SparseMatrixRow> GetRows() {37 private List<MatrixRow> rows; 38 public ReadOnlyCollection<MatrixRow> GetRows() { 39 39 return rows.AsReadOnly(); 40 40 } 41 41 42 public void AddRow( SparseMatrixRow row) {42 public void AddRow(MatrixRow row) { 43 43 this.rows.Add(row); 44 44 } 45 45 46 public void RemoveRow( SparseMatrixRow row) {46 public void RemoveRow(MatrixRow row) { 47 47 this.rows.Remove(row); 48 48 }
Note: See TracChangeset
for help on using the changeset viewer.