Changeset 4722 for trunk/sources/HeuristicLab.Data/3.3/DoubleMatrix.cs
- Timestamp:
- 11/06/10 01:56:04 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:mergeinfo changed
/branches/CloningRefactoring (added) merged: 4656-4693,4696-4697,4711-4714,4718-4719
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Data/3.3/DoubleMatrix.cs
r3431 r4722 30 30 [StorableClass] 31 31 public class DoubleMatrix : ValueTypeMatrix<double>, IStringConvertibleMatrix { 32 [StorableConstructor] 33 protected DoubleMatrix(bool deserializing) : base(deserializing) { } 34 protected DoubleMatrix(DoubleMatrix original, Cloner cloner) 35 : base(original, cloner) { 36 } 32 37 public DoubleMatrix() : base() { } 33 38 public DoubleMatrix(int rows, int columns) : base(rows, columns) { } … … 39 44 40 45 public override IDeepCloneable Clone(Cloner cloner) { 41 DoubleMatrix clone = new DoubleMatrix(); 42 cloner.RegisterClonedObject(this, clone); 43 clone.matrix = (double[,])matrix.Clone(); 44 clone.columnNames = new List<string>(columnNames); 45 clone.rowNames = new List<string>(rowNames); 46 clone.sortableView = sortableView; 47 clone.readOnly = readOnly; 48 return clone; 46 return new DoubleMatrix(this, cloner); 49 47 } 50 48
Note: See TracChangeset
for help on using the changeset viewer.