Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/21/15 16:00:20 (9 years ago)
Author:
gkronber
Message:

#2435: updated some of the alglib calls (we should only use the external API whenever possible)

Location:
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4
Files:
4 edited

Legend:

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

    r12790 r12792  
    168168      alglib.densesolverreport denseSolveRep;
    169169
    170       var res = alglib.trfac.spdmatrixcholesky(ref l, n, false);
     170      var res = alglib.spdmatrixcholesky(ref l, n, false);
    171171      if (!res) throw new ArgumentException("Matrix is not positive semidefinite");
    172172
     
    297297
    298298      // for stddev
    299       alglib.ablas.rmatrixlefttrsm(n, newN, l, 0, 0, false, false, 0, sWKs, 0, 0);
     299      alglib.rmatrixlefttrsm(n, newN, l, 0, 0, false, false, 0, ref sWKs, 0, 0);
    300300
    301301      for (int i = 0; i < newN; i++) {
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear/LinearRegression.cs

    r12509 r12792  
    4747    private LinearRegression(LinearRegression original, Cloner cloner)
    4848      : base(original, cloner) {
     49
    4950    }
    5051    public LinearRegression()
     
    7778        throw new NotSupportedException("Linear regression does not support NaN or infinity values in the input dataset.");
    7879
    79       alglib.linearmodel lm = new alglib.linearmodel();
    80       alglib.lrreport ar = new alglib.lrreport();
     80      alglib.linearmodel lm;
     81      alglib.lrreport ar;
    8182      int nRows = inputMatrix.GetLength(0);
    8283      int nFeatures = inputMatrix.GetLength(1) - 1;
    83       double[] coefficients = new double[nFeatures + 1]; // last coefficient is for the constant
     84      double[] coefficients;
    8485
    8586      int retVal = 1;
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear/MultinomialLogitClassification.cs

    r12622 r12792  
    7474        throw new NotSupportedException("Multinomial logit classification does not support NaN or infinity values in the input dataset.");
    7575
    76       alglib.logitmodel lm = new alglib.logitmodel();
    77       alglib.mnlreport rep = new alglib.mnlreport();
     76      alglib.logitmodel lm;
     77      alglib.mnlreport rep;
    7878      int nRows = inputMatrix.GetLength(0);
    7979      int nFeatures = inputMatrix.GetLength(1) - 1;
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/TimeSeries/AutoregressiveModeling.cs

    r12504 r12792  
    100100
    101101
    102       alglib.linearmodel lm = new alglib.linearmodel();
    103       alglib.lrreport ar = new alglib.lrreport();
     102      alglib.linearmodel lm;
     103      alglib.lrreport ar;
    104104      int nRows = inputMatrix.GetLength(0);
    105105      int nFeatures = inputMatrix.GetLength(1) - 1;
Note: See TracChangeset for help on using the changeset viewer.