Changeset 8437 for branches/NCA/HeuristicLab.Algorithms.NCA/3.3/Matrix.cs
- Timestamp:
- 08/08/12 16:46:53 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/NCA/HeuristicLab.Algorithms.NCA/3.3/Matrix.cs
r8424 r8437 125 125 } 126 126 127 public double Length() { 127 public double VectorLength() { 128 return Math.Sqrt(SquaredVectorLength()); 129 } 130 131 public double SquaredVectorLength() { 128 132 if (Rows != 1) throw new ArgumentException("Length only works on vectors."); 129 return Math.Sqrt(values.Sum(x => x * x));133 return values.Sum(x => x * x); 130 134 } 131 135
Note: See TracChangeset
for help on using the changeset viewer.