Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.Threading.Tasks;
|
---|
6 | using HeuristicLab.Data;
|
---|
7 |
|
---|
8 | namespace 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.