Last change
on this file since 14897 was
14897,
checked in by pkimmesw, 7 years ago
|
#2665 Dynamic ErcValues, Separate Push from BenchmarkSuite Push
|
File size:
1.0 KB
|
Line | |
---|
1 | using System.Linq;
|
---|
2 |
|
---|
3 | namespace HeuristicLab.Problems.ProgramSynthesis.Base.Erc.FloatVector {
|
---|
4 | using HeuristicLab.Common;
|
---|
5 | using HeuristicLab.Data;
|
---|
6 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
7 |
|
---|
8 | [StorableClass]
|
---|
9 | public class FloatVectorConstantsErcValue : VectorConstantsErcValue<double, DoubleArray> {
|
---|
10 | public FloatVectorConstantsErcValue() {
|
---|
11 | }
|
---|
12 |
|
---|
13 | public FloatVectorConstantsErcValue(params double[][] values)
|
---|
14 | : this(true, values) {
|
---|
15 | }
|
---|
16 |
|
---|
17 | public FloatVectorConstantsErcValue(bool isEnabled, params double[][] values)
|
---|
18 | : base(isEnabled, values.Select(v => new DoubleArray(v)).ToArray()) {
|
---|
19 | }
|
---|
20 |
|
---|
21 | [StorableConstructor]
|
---|
22 | protected FloatVectorConstantsErcValue(bool deserializing)
|
---|
23 | : base(deserializing) {
|
---|
24 | }
|
---|
25 |
|
---|
26 | public FloatVectorConstantsErcValue(FloatVectorConstantsErcValue origin, Cloner cloner)
|
---|
27 | : base(origin, cloner) {
|
---|
28 | }
|
---|
29 |
|
---|
30 | public override IDeepCloneable Clone(Cloner cloner) {
|
---|
31 | return new FloatVectorConstantsErcValue(this, cloner);
|
---|
32 | }
|
---|
33 | }
|
---|
34 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.