| 1 | package net.bmahe.genetics4j.gpu.spec.fitness.cldata; | |
| 2 | ||
| 3 | import org.apache.logging.log4j.LogManager; | |
| 4 | import org.apache.logging.log4j.Logger; | |
| 5 | import org.jocl.CL; | |
| 6 | import org.jocl.Pointer; | |
| 7 | import org.jocl.Sizeof; | |
| 8 | import org.jocl.cl_mem; | |
| 9 | ||
| 10 | import net.bmahe.genetics4j.core.Genotype; | |
| 11 | import net.bmahe.genetics4j.core.chromosomes.DoubleChromosome; | |
| 12 | import net.bmahe.genetics4j.core.chromosomes.FloatChromosome; | |
| 13 | ||
| 14 | public class DataLoaders { | |
| 15 | final static public Logger logger = LogManager.getLogger(DataLoaders.class); | |
| 16 | ||
| 17 | private DataLoaders() { | |
| 18 | } | |
| 19 | ||
| 20 | public static DataLoader ofFloatSupplier(final DataSupplier<float[]> floatSupplier) { | |
| 21 |
1
1. ofFloatSupplier : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofFloatSupplier → NO_COVERAGE |
return (openCLExecutionContext, generation, genotypes) -> { |
| 22 |
1
1. lambda$ofFloatSupplier$0 : removed call to net/bmahe/genetics4j/gpu/opencl/OpenCLExecutionContext::clContext → NO_COVERAGE |
final var clContext = openCLExecutionContext.clContext(); |
| 23 | ||
| 24 |
1
1. lambda$ofFloatSupplier$0 : removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataSupplier::get → NO_COVERAGE |
final float[] data = floatSupplier.get(openCLExecutionContext, generation, genotypes); |
| 25 | logger.trace("Allocating memory on GPU for float[] of {} elements", data.length); | |
| 26 | ||
| 27 |
1
1. lambda$ofFloatSupplier$0 : removed call to org/jocl/Pointer::to → NO_COVERAGE |
final Pointer dataPtr = Pointer.to(data); |
| 28 |
4
1. lambda$ofFloatSupplier$0 : Substituted 4 with 5 → NO_COVERAGE 2. lambda$ofFloatSupplier$0 : Substituted 36 with 37 → NO_COVERAGE 3. lambda$ofFloatSupplier$0 : Replaced integer multiplication with division → NO_COVERAGE 4. lambda$ofFloatSupplier$0 : removed call to org/jocl/CL::clCreateBuffer → NO_COVERAGE |
final cl_mem inputMem = CL.clCreateBuffer( |
| 29 | clContext, | |
| 30 | CL.CL_MEM_COPY_HOST_PTR | CL.CL_MEM_READ_ONLY, | |
| 31 | Sizeof.cl_float * data.length, | |
| 32 | dataPtr, | |
| 33 | null); | |
| 34 | ||
| 35 |
3
1. lambda$ofFloatSupplier$0 : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::lambda$ofFloatSupplier$0 → NO_COVERAGE 2. lambda$ofFloatSupplier$0 : Substituted 4 with 5 → NO_COVERAGE 3. lambda$ofFloatSupplier$0 : removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/CLData::of → NO_COVERAGE |
return CLData.of(inputMem, Sizeof.cl_float, data.length); |
| 36 | }; | |
| 37 | } | |
| 38 | ||
| 39 | public static DataLoader ofIntSupplier(final DataSupplier<int[]> intSupplier) { | |
| 40 |
1
1. ofIntSupplier : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofIntSupplier → NO_COVERAGE |
return (openCLExecutionContext, generation, genotypes) -> { |
| 41 |
1
1. lambda$ofIntSupplier$1 : removed call to net/bmahe/genetics4j/gpu/opencl/OpenCLExecutionContext::clContext → NO_COVERAGE |
final var clContext = openCLExecutionContext.clContext(); |
| 42 | ||
| 43 |
1
1. lambda$ofIntSupplier$1 : removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataSupplier::get → NO_COVERAGE |
final int[] data = intSupplier.get(openCLExecutionContext, generation, genotypes); |
| 44 | logger.trace("Allocating memory on GPU for int[] of {} elements", data.length); | |
| 45 | ||
| 46 |
1
1. lambda$ofIntSupplier$1 : removed call to org/jocl/Pointer::to → NO_COVERAGE |
final Pointer dataPtr = Pointer.to(data); |
| 47 |
4
1. lambda$ofIntSupplier$1 : Substituted 4 with 5 → NO_COVERAGE 2. lambda$ofIntSupplier$1 : removed call to org/jocl/CL::clCreateBuffer → NO_COVERAGE 3. lambda$ofIntSupplier$1 : Replaced integer multiplication with division → NO_COVERAGE 4. lambda$ofIntSupplier$1 : Substituted 36 with 37 → NO_COVERAGE |
final cl_mem inputMem = CL.clCreateBuffer( |
| 48 | clContext, | |
| 49 | CL.CL_MEM_COPY_HOST_PTR | CL.CL_MEM_READ_ONLY, | |
| 50 | Sizeof.cl_int * data.length, | |
| 51 | dataPtr, | |
| 52 | null); | |
| 53 | ||
| 54 |
3
1. lambda$ofIntSupplier$1 : Substituted 4 with 5 → NO_COVERAGE 2. lambda$ofIntSupplier$1 : removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/CLData::of → NO_COVERAGE 3. lambda$ofIntSupplier$1 : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::lambda$ofIntSupplier$1 → NO_COVERAGE |
return CLData.of(inputMem, Sizeof.cl_int, data.length); |
| 55 | }; | |
| 56 | } | |
| 57 | ||
| 58 | public static DataLoader ofGenerationAndPopulationSize(final boolean readOnly) { | |
| 59 |
1
1. ofGenerationAndPopulationSize : Substituted 32 with 33 → NO_COVERAGE |
long bufferFlags = CL.CL_MEM_COPY_HOST_PTR; |
| 60 | ||
| 61 |
3
1. ofGenerationAndPopulationSize : removed conditional - replaced equality check with true → NO_COVERAGE 2. ofGenerationAndPopulationSize : negated conditional → NO_COVERAGE 3. ofGenerationAndPopulationSize : removed conditional - replaced equality check with false → NO_COVERAGE |
if (readOnly) { |
| 62 |
2
1. ofGenerationAndPopulationSize : Replaced bitwise OR with AND → NO_COVERAGE 2. ofGenerationAndPopulationSize : Substituted 4 with 5 → NO_COVERAGE |
bufferFlags |= CL.CL_MEM_READ_ONLY; |
| 63 | } | |
| 64 | final long fBufferFlags = bufferFlags; | |
| 65 | ||
| 66 |
1
1. ofGenerationAndPopulationSize : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofGenerationAndPopulationSize → NO_COVERAGE |
return (openCLExecutionContext, generation, genotypes) -> { |
| 67 |
1
1. lambda$ofGenerationAndPopulationSize$2 : removed call to net/bmahe/genetics4j/gpu/opencl/OpenCLExecutionContext::clContext → NO_COVERAGE |
final var clContext = openCLExecutionContext.clContext(); |
| 68 | ||
| 69 |
1
1. lambda$ofGenerationAndPopulationSize$2 : Substituted 2 with 3 → NO_COVERAGE |
int[] data = new int[2]; |
| 70 |
1
1. lambda$ofGenerationAndPopulationSize$2 : Substituted 0 with 1 → NO_COVERAGE |
data[0] = (int) generation; |
| 71 |
2
1. lambda$ofGenerationAndPopulationSize$2 : Substituted 1 with 0 → NO_COVERAGE 2. lambda$ofGenerationAndPopulationSize$2 : removed call to java/util/List::size → NO_COVERAGE |
data[1] = genotypes.size(); |
| 72 | ||
| 73 |
1
1. lambda$ofGenerationAndPopulationSize$2 : removed call to org/jocl/Pointer::to → NO_COVERAGE |
final Pointer dataPtr = Pointer.to(data); |
| 74 |
3
1. lambda$ofGenerationAndPopulationSize$2 : Replaced integer multiplication with division → NO_COVERAGE 2. lambda$ofGenerationAndPopulationSize$2 : Substituted 4 with 5 → NO_COVERAGE 3. lambda$ofGenerationAndPopulationSize$2 : removed call to org/jocl/CL::clCreateBuffer → NO_COVERAGE |
final cl_mem inputMem = CL.clCreateBuffer(clContext, fBufferFlags, Sizeof.cl_int * data.length, dataPtr, null); |
| 75 | ||
| 76 |
3
1. lambda$ofGenerationAndPopulationSize$2 : Substituted 4 with 5 → NO_COVERAGE 2. lambda$ofGenerationAndPopulationSize$2 : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::lambda$ofGenerationAndPopulationSize$2 → NO_COVERAGE 3. lambda$ofGenerationAndPopulationSize$2 : removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/CLData::of → NO_COVERAGE |
return CLData.of(inputMem, Sizeof.cl_int, data.length); |
| 77 | }; | |
| 78 | } | |
| 79 | ||
| 80 | public static DataLoader ofGenerationAndPopulationSize() { | |
| 81 |
3
1. ofGenerationAndPopulationSize : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofGenerationAndPopulationSize → NO_COVERAGE 2. ofGenerationAndPopulationSize : removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofGenerationAndPopulationSize → NO_COVERAGE 3. ofGenerationAndPopulationSize : Substituted 1 with 0 → NO_COVERAGE |
return ofGenerationAndPopulationSize(true); |
| 82 | } | |
| 83 | ||
| 84 | public static DataLoader ofLinearizeFloatChromosome(final int chromosomeIndex, final boolean readOnly) { | |
| 85 | ||
| 86 |
1
1. ofLinearizeFloatChromosome : Substituted 32 with 33 → NO_COVERAGE |
long bufferFlags = CL.CL_MEM_COPY_HOST_PTR; |
| 87 | ||
| 88 |
3
1. ofLinearizeFloatChromosome : negated conditional → NO_COVERAGE 2. ofLinearizeFloatChromosome : removed conditional - replaced equality check with true → NO_COVERAGE 3. ofLinearizeFloatChromosome : removed conditional - replaced equality check with false → NO_COVERAGE |
if (readOnly) { |
| 89 |
2
1. ofLinearizeFloatChromosome : Replaced bitwise OR with AND → NO_COVERAGE 2. ofLinearizeFloatChromosome : Substituted 4 with 5 → NO_COVERAGE |
bufferFlags |= CL.CL_MEM_READ_ONLY; |
| 90 | } | |
| 91 | final long fBufferFlags = bufferFlags; | |
| 92 | ||
| 93 |
1
1. ofLinearizeFloatChromosome : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofLinearizeFloatChromosome → NO_COVERAGE |
return (openCLExecutionContext, generation, genotypes) -> { |
| 94 |
1
1. lambda$ofLinearizeFloatChromosome$3 : removed call to net/bmahe/genetics4j/gpu/opencl/OpenCLExecutionContext::clContext → NO_COVERAGE |
final var clContext = openCLExecutionContext.clContext(); |
| 95 | ||
| 96 |
3
1. lambda$ofLinearizeFloatChromosome$3 : removed call to net/bmahe/genetics4j/core/Genotype::getChromosome → NO_COVERAGE 2. lambda$ofLinearizeFloatChromosome$3 : Substituted 0 with 1 → NO_COVERAGE 3. lambda$ofLinearizeFloatChromosome$3 : removed call to java/util/List::get → NO_COVERAGE |
final var firstchromosome = genotypes.get(0).getChromosome(chromosomeIndex, FloatChromosome.class); |
| 97 |
1
1. lambda$ofLinearizeFloatChromosome$3 : removed call to net/bmahe/genetics4j/core/chromosomes/FloatChromosome::getSize → NO_COVERAGE |
final int chromosomeSize = firstchromosome.getSize(); |
| 98 | ||
| 99 |
2
1. lambda$ofLinearizeFloatChromosome$3 : Replaced integer multiplication with division → NO_COVERAGE 2. lambda$ofLinearizeFloatChromosome$3 : removed call to java/util/List::size → NO_COVERAGE |
final float[] data = new float[genotypes.size() * chromosomeSize]; |
| 100 | ||
| 101 |
6
1. lambda$ofLinearizeFloatChromosome$3 : removed conditional - replaced comparison check with false → NO_COVERAGE 2. lambda$ofLinearizeFloatChromosome$3 : removed call to java/util/List::size → NO_COVERAGE 3. lambda$ofLinearizeFloatChromosome$3 : Substituted 0 with 1 → NO_COVERAGE 4. lambda$ofLinearizeFloatChromosome$3 : removed conditional - replaced comparison check with true → NO_COVERAGE 5. lambda$ofLinearizeFloatChromosome$3 : changed conditional boundary → NO_COVERAGE 6. lambda$ofLinearizeFloatChromosome$3 : negated conditional → NO_COVERAGE |
for (int i = 0; i < genotypes.size(); i++) { |
| 102 |
1
1. lambda$ofLinearizeFloatChromosome$3 : removed call to java/util/List::get → NO_COVERAGE |
final Genotype genotype = genotypes.get(i); |
| 103 |
1
1. lambda$ofLinearizeFloatChromosome$3 : removed call to net/bmahe/genetics4j/core/Genotype::getChromosome → NO_COVERAGE |
final var chromosome = genotype.getChromosome(chromosomeIndex, FloatChromosome.class); |
| 104 | ||
| 105 |
6
1. lambda$ofLinearizeFloatChromosome$3 : removed conditional - replaced comparison check with false → NO_COVERAGE 2. lambda$ofLinearizeFloatChromosome$3 : removed call to net/bmahe/genetics4j/core/chromosomes/FloatChromosome::getNumAlleles → NO_COVERAGE 3. lambda$ofLinearizeFloatChromosome$3 : negated conditional → NO_COVERAGE 4. lambda$ofLinearizeFloatChromosome$3 : Substituted 0 with 1 → NO_COVERAGE 5. lambda$ofLinearizeFloatChromosome$3 : removed conditional - replaced comparison check with true → NO_COVERAGE 6. lambda$ofLinearizeFloatChromosome$3 : changed conditional boundary → NO_COVERAGE |
for (int j = 0; j < chromosome.getNumAlleles(); j++) { |
| 106 |
3
1. lambda$ofLinearizeFloatChromosome$3 : Replaced integer addition with subtraction → NO_COVERAGE 2. lambda$ofLinearizeFloatChromosome$3 : removed call to net/bmahe/genetics4j/core/chromosomes/FloatChromosome::getAllele → NO_COVERAGE 3. lambda$ofLinearizeFloatChromosome$3 : Replaced integer multiplication with division → NO_COVERAGE |
data[i * chromosomeSize + j] = (float) chromosome.getAllele(j); |
| 107 | } | |
| 108 | ||
| 109 | } | |
| 110 | ||
| 111 |
1
1. lambda$ofLinearizeFloatChromosome$3 : removed call to org/jocl/Pointer::to → NO_COVERAGE |
final Pointer inputPtr = Pointer.to(data); |
| 112 |
2
1. lambda$ofLinearizeFloatChromosome$3 : Substituted 4 with 5 → NO_COVERAGE 2. lambda$ofLinearizeFloatChromosome$3 : Replaced integer multiplication with division → NO_COVERAGE |
final cl_mem inputMem = CL |
| 113 |
1
1. lambda$ofLinearizeFloatChromosome$3 : removed call to org/jocl/CL::clCreateBuffer → NO_COVERAGE |
.clCreateBuffer(clContext, fBufferFlags, Sizeof.cl_float * data.length, inputPtr, null); |
| 114 | ||
| 115 |
3
1. lambda$ofLinearizeFloatChromosome$3 : Substituted 4 with 5 → NO_COVERAGE 2. lambda$ofLinearizeFloatChromosome$3 : removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/CLData::of → NO_COVERAGE 3. lambda$ofLinearizeFloatChromosome$3 : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::lambda$ofLinearizeFloatChromosome$3 → NO_COVERAGE |
return CLData.of(inputMem, Sizeof.cl_float, data.length); |
| 116 | }; | |
| 117 | } | |
| 118 | ||
| 119 | public static DataLoader ofLinearizeFloatChromosome(final int chromosomeIndex) { | |
| 120 |
3
1. ofLinearizeFloatChromosome : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofLinearizeFloatChromosome → NO_COVERAGE 2. ofLinearizeFloatChromosome : Substituted 1 with 0 → NO_COVERAGE 3. ofLinearizeFloatChromosome : removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofLinearizeFloatChromosome → NO_COVERAGE |
return ofLinearizeFloatChromosome(chromosomeIndex, true); |
| 121 | } | |
| 122 | ||
| 123 | public static DataLoader ofLinearizeDoubleChromosome(final int chromosomeIndex, final boolean readOnly) { | |
| 124 | ||
| 125 |
1
1. ofLinearizeDoubleChromosome : Substituted 32 with 33 → NO_COVERAGE |
long bufferFlags = CL.CL_MEM_COPY_HOST_PTR; |
| 126 | ||
| 127 |
3
1. ofLinearizeDoubleChromosome : negated conditional → NO_COVERAGE 2. ofLinearizeDoubleChromosome : removed conditional - replaced equality check with false → NO_COVERAGE 3. ofLinearizeDoubleChromosome : removed conditional - replaced equality check with true → NO_COVERAGE |
if (readOnly) { |
| 128 |
2
1. ofLinearizeDoubleChromosome : Substituted 4 with 5 → NO_COVERAGE 2. ofLinearizeDoubleChromosome : Replaced bitwise OR with AND → NO_COVERAGE |
bufferFlags |= CL.CL_MEM_READ_ONLY; |
| 129 | } | |
| 130 | final long fBufferFlags = bufferFlags; | |
| 131 | ||
| 132 |
1
1. ofLinearizeDoubleChromosome : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofLinearizeDoubleChromosome → NO_COVERAGE |
return (openCLExecutionContext, generation, genotypes) -> { |
| 133 |
1
1. lambda$ofLinearizeDoubleChromosome$4 : removed call to net/bmahe/genetics4j/gpu/opencl/OpenCLExecutionContext::clContext → NO_COVERAGE |
final var clContext = openCLExecutionContext.clContext(); |
| 134 | ||
| 135 |
3
1. lambda$ofLinearizeDoubleChromosome$4 : removed call to net/bmahe/genetics4j/core/Genotype::getChromosome → NO_COVERAGE 2. lambda$ofLinearizeDoubleChromosome$4 : removed call to java/util/List::get → NO_COVERAGE 3. lambda$ofLinearizeDoubleChromosome$4 : Substituted 0 with 1 → NO_COVERAGE |
final var firstchromosome = genotypes.get(0).getChromosome(chromosomeIndex, DoubleChromosome.class); |
| 136 |
1
1. lambda$ofLinearizeDoubleChromosome$4 : removed call to net/bmahe/genetics4j/core/chromosomes/DoubleChromosome::getSize → NO_COVERAGE |
final int chromosomeSize = firstchromosome.getSize(); |
| 137 | ||
| 138 |
2
1. lambda$ofLinearizeDoubleChromosome$4 : Replaced integer multiplication with division → NO_COVERAGE 2. lambda$ofLinearizeDoubleChromosome$4 : removed call to java/util/List::size → NO_COVERAGE |
final double[] data = new double[genotypes.size() * chromosomeSize]; |
| 139 | ||
| 140 |
6
1. lambda$ofLinearizeDoubleChromosome$4 : removed conditional - replaced comparison check with false → NO_COVERAGE 2. lambda$ofLinearizeDoubleChromosome$4 : removed call to java/util/List::size → NO_COVERAGE 3. lambda$ofLinearizeDoubleChromosome$4 : changed conditional boundary → NO_COVERAGE 4. lambda$ofLinearizeDoubleChromosome$4 : Substituted 0 with 1 → NO_COVERAGE 5. lambda$ofLinearizeDoubleChromosome$4 : negated conditional → NO_COVERAGE 6. lambda$ofLinearizeDoubleChromosome$4 : removed conditional - replaced comparison check with true → NO_COVERAGE |
for (int i = 0; i < genotypes.size(); i++) { |
| 141 |
1
1. lambda$ofLinearizeDoubleChromosome$4 : removed call to java/util/List::get → NO_COVERAGE |
final Genotype genotype = genotypes.get(i); |
| 142 |
2
1. lambda$ofLinearizeDoubleChromosome$4 : removed call to net/bmahe/genetics4j/core/Genotype::getChromosome → NO_COVERAGE 2. lambda$ofLinearizeDoubleChromosome$4 : Substituted 0 with 1 → NO_COVERAGE |
final var chromosome = genotype.getChromosome(0, DoubleChromosome.class); |
| 143 | ||
| 144 |
6
1. lambda$ofLinearizeDoubleChromosome$4 : removed conditional - replaced comparison check with false → NO_COVERAGE 2. lambda$ofLinearizeDoubleChromosome$4 : removed call to net/bmahe/genetics4j/core/chromosomes/DoubleChromosome::getNumAlleles → NO_COVERAGE 3. lambda$ofLinearizeDoubleChromosome$4 : removed conditional - replaced comparison check with true → NO_COVERAGE 4. lambda$ofLinearizeDoubleChromosome$4 : Substituted 0 with 1 → NO_COVERAGE 5. lambda$ofLinearizeDoubleChromosome$4 : negated conditional → NO_COVERAGE 6. lambda$ofLinearizeDoubleChromosome$4 : changed conditional boundary → NO_COVERAGE |
for (int j = 0; j < chromosome.getNumAlleles(); j++) { |
| 145 |
3
1. lambda$ofLinearizeDoubleChromosome$4 : Replaced integer multiplication with division → NO_COVERAGE 2. lambda$ofLinearizeDoubleChromosome$4 : Replaced integer addition with subtraction → NO_COVERAGE 3. lambda$ofLinearizeDoubleChromosome$4 : removed call to net/bmahe/genetics4j/core/chromosomes/DoubleChromosome::getAllele → NO_COVERAGE |
data[i * chromosomeSize + j] = chromosome.getAllele(j); |
| 146 | } | |
| 147 | ||
| 148 | } | |
| 149 | ||
| 150 |
1
1. lambda$ofLinearizeDoubleChromosome$4 : removed call to org/jocl/Pointer::to → NO_COVERAGE |
final Pointer dataPtr = Pointer.to(data); |
| 151 |
2
1. lambda$ofLinearizeDoubleChromosome$4 : Substituted 8 with 9 → NO_COVERAGE 2. lambda$ofLinearizeDoubleChromosome$4 : Replaced integer multiplication with division → NO_COVERAGE |
final cl_mem dataMem = CL |
| 152 |
1
1. lambda$ofLinearizeDoubleChromosome$4 : removed call to org/jocl/CL::clCreateBuffer → NO_COVERAGE |
.clCreateBuffer(clContext, fBufferFlags, Sizeof.cl_double * data.length, dataPtr, null); |
| 153 | ||
| 154 |
3
1. lambda$ofLinearizeDoubleChromosome$4 : removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/CLData::of → NO_COVERAGE 2. lambda$ofLinearizeDoubleChromosome$4 : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::lambda$ofLinearizeDoubleChromosome$4 → NO_COVERAGE 3. lambda$ofLinearizeDoubleChromosome$4 : Substituted 8 with 9 → NO_COVERAGE |
return CLData.of(dataMem, Sizeof.cl_double, data.length); |
| 155 | }; | |
| 156 | } | |
| 157 | ||
| 158 | public static DataLoader ofLinearizeDoubleChromosome(final int chromosomeIndex) { | |
| 159 |
3
1. ofLinearizeDoubleChromosome : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofLinearizeDoubleChromosome → NO_COVERAGE 2. ofLinearizeDoubleChromosome : removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofLinearizeDoubleChromosome → NO_COVERAGE 3. ofLinearizeDoubleChromosome : Substituted 1 with 0 → NO_COVERAGE |
return ofLinearizeDoubleChromosome(chromosomeIndex, true); |
| 160 | } | |
| 161 | } | |
Mutations | ||
| 21 |
1.1 |
|
| 22 |
1.1 |
|
| 24 |
1.1 |
|
| 27 |
1.1 |
|
| 28 |
1.1 2.2 3.3 4.4 |
|
| 35 |
1.1 2.2 3.3 |
|
| 40 |
1.1 |
|
| 41 |
1.1 |
|
| 43 |
1.1 |
|
| 46 |
1.1 |
|
| 47 |
1.1 2.2 3.3 4.4 |
|
| 54 |
1.1 2.2 3.3 |
|
| 59 |
1.1 |
|
| 61 |
1.1 2.2 3.3 |
|
| 62 |
1.1 2.2 |
|
| 66 |
1.1 |
|
| 67 |
1.1 |
|
| 69 |
1.1 |
|
| 70 |
1.1 |
|
| 71 |
1.1 2.2 |
|
| 73 |
1.1 |
|
| 74 |
1.1 2.2 3.3 |
|
| 76 |
1.1 2.2 3.3 |
|
| 81 |
1.1 2.2 3.3 |
|
| 86 |
1.1 |
|
| 88 |
1.1 2.2 3.3 |
|
| 89 |
1.1 2.2 |
|
| 93 |
1.1 |
|
| 94 |
1.1 |
|
| 96 |
1.1 2.2 3.3 |
|
| 97 |
1.1 |
|
| 99 |
1.1 2.2 |
|
| 101 |
1.1 2.2 3.3 4.4 5.5 6.6 |
|
| 102 |
1.1 |
|
| 103 |
1.1 |
|
| 105 |
1.1 2.2 3.3 4.4 5.5 6.6 |
|
| 106 |
1.1 2.2 3.3 |
|
| 111 |
1.1 |
|
| 112 |
1.1 2.2 |
|
| 113 |
1.1 |
|
| 115 |
1.1 2.2 3.3 |
|
| 120 |
1.1 2.2 3.3 |
|
| 125 |
1.1 |
|
| 127 |
1.1 2.2 3.3 |
|
| 128 |
1.1 2.2 |
|
| 132 |
1.1 |
|
| 133 |
1.1 |
|
| 135 |
1.1 2.2 3.3 |
|
| 136 |
1.1 |
|
| 138 |
1.1 2.2 |
|
| 140 |
1.1 2.2 3.3 4.4 5.5 6.6 |
|
| 141 |
1.1 |
|
| 142 |
1.1 2.2 |
|
| 144 |
1.1 2.2 3.3 4.4 5.5 6.6 |
|
| 145 |
1.1 2.2 3.3 |
|
| 150 |
1.1 |
|
| 151 |
1.1 2.2 |
|
| 152 |
1.1 |
|
| 154 |
1.1 2.2 3.3 |
|
| 159 |
1.1 2.2 3.3 |