Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Algorithms.CMAEvolutionStrategy/sources/MOCMAES/Utilities.cs @ 14269

Last change on this file since 14269 was 14269, checked in by bwerth, 8 years ago

#2592 code cleanup + project reactored

File size: 551 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6using HeuristicLab.Data;
7
8namespace HeuristicLab.Algorithms.MOCMAEvolutionStrategy {
9  internal class Utilities {
10    internal static double[][] ToArray(DoubleMatrix m) {
11      int i = m.Rows - 1;
12      double[][] a = new double[i][];
13      for (i--; i >= 0; i--) {
14        int j = m.Columns;
15        a[i] = new double[j];
16        for (j--; j >= 0; j--) a[i][j] = m[i, j];
17      }
18      return a;
19    }
20
21  }
22}
Note: See TracBrowser for help on using the repository browser.