Changeset 14672
- Timestamp:
- 02/13/17 22:49:15 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data/3.3/ValueTypeMatrix.cs
r14185 r14672 201 201 } 202 202 203 public virtual IEnumerable<T> GetRow(int row) { 204 for (var col = 0; col < Columns; col++) { 205 yield return matrix[row, col]; 206 } 207 } 208 209 public virtual IEnumerable<T> GetColumn(int col) { 210 for (var row = 0; row < Rows; row++) { 211 yield return matrix[row, col]; 212 } 213 } 214 203 215 public override string ToString() { 204 216 if (matrix.Length == 0) return "[]";
Note: See TracChangeset
for help on using the changeset viewer.