Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/08/12 16:46:53 (12 years ago)
Author:
abeham
Message:

#1913:

  • Improved speed of NCA
  • Reorganized things
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/NCA/HeuristicLab.Algorithms.NCA/3.3/Matrix.cs

    r8424 r8437  
    125125    }
    126126
    127     public double Length() {
     127    public double VectorLength() {
     128      return Math.Sqrt(SquaredVectorLength());
     129    }
     130
     131    public double SquaredVectorLength() {
    128132      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);
    130134    }
    131135
Note: See TracChangeset for help on using the changeset viewer.