Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/09/12 09:33:23 (12 years ago)
Author:
gkronber
Message:

#1902 changed calculation of gradients for covariance functions to reduce allocations of arrays

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/GaussianProcess/GaussianProcessModel.cs

    r8416 r8455  
    188188        for (int i = 0; i < n; i++) {
    189189          for (int j = 0; j < n; j++) {
    190             var covDeriv = covarianceFunction.GetGradient(i, j);
    191190            for (int k = 0; k < covGradients.Length; k++) {
    192               covGradients[k] += q[i, j] * covDeriv[k];
     191              covGradients[k] += q[i, j] * covarianceFunction.GetGradient(i, j, k);
    193192            }
    194193          }
Note: See TracChangeset for help on using the changeset viewer.