Dev #127
@ -24,6 +24,7 @@ For example, the following builder:
|
|||||||
package scientifik.kmath.asm.generated;
|
package scientifik.kmath.asm.generated;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import scientifik.kmath.asm.internal.MapIntrinsics;
|
||||||
import scientifik.kmath.expressions.Expression;
|
import scientifik.kmath.expressions.Expression;
|
||||||
import scientifik.kmath.operations.RealField;
|
import scientifik.kmath.operations.RealField;
|
||||||
|
|
||||||
@ -37,9 +38,10 @@ public final class AsmCompiledExpression_1073786867_0 implements Expression<Doub
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final Double invoke(Map<String, ? extends Double> arguments) {
|
public final Double invoke(Map<String, ? extends Double> arguments) {
|
||||||
return (Double)this.algebra.add(((Double)arguments.get("x")).doubleValue(), 2.0D);
|
return (Double)this.algebra.add(((Double)MapIntrinsics.getOrFail(arguments, "x", (Object)null)).doubleValue(), 2.0D);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Example Usage
|
### Example Usage
|
||||||
|
@ -3,6 +3,7 @@ package scientifik.kmath.asm.internal
|
|||||||
import org.objectweb.asm.ClassWriter
|
import org.objectweb.asm.ClassWriter
|
||||||
import org.objectweb.asm.FieldVisitor
|
import org.objectweb.asm.FieldVisitor
|
||||||
|
|
||||||
|
@Suppress("FunctionName")
|
||||||
internal inline fun ClassWriter(flags: Int, block: ClassWriter.() -> Unit): ClassWriter =
|
internal inline fun ClassWriter(flags: Int, block: ClassWriter.() -> Unit): ClassWriter =
|
||||||
ClassWriter(flags).apply(block)
|
ClassWriter(flags).apply(block)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user