- Timestamp:
- 08/13/09 14:45:40 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.SparseMatrix/3.2
- Files:
-
- 1 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.SparseMatrix/3.2/HeuristicLab.SparseMatrix-3.2.csproj
r2283 r2284 82 82 <Compile Include="HeuristicLabSparseMatrixPlugin.cs" /> 83 83 <Compile Include="Properties\AssemblyInfo.cs" /> 84 <Compile Include=" SparseMatrix.cs" />85 <Compile Include=" SparseMatrixRow.cs" />84 <Compile Include="Matrix.cs" /> 85 <Compile Include="MatrixRow.cs" /> 86 86 </ItemGroup> 87 87 <ItemGroup> -
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 } -
trunk/sources/HeuristicLab.SparseMatrix/3.2/MatrixRow.cs
r2283 r2284 23 23 24 24 namespace HeuristicLab.SparseMatrix { 25 public class SparseMatrixRow {25 public class MatrixRow { 26 26 private Dictionary<string, object> values; 27 public SparseMatrixRow() {27 public MatrixRow() { 28 28 values = new Dictionary<string, object>(); 29 29 }
Note: See TracChangeset
for help on using the changeset viewer.