Dev #280
@ -6,6 +6,7 @@
|
|||||||
- Field extends ScaleOperations
|
- Field extends ScaleOperations
|
||||||
- Basic integration API
|
- Basic integration API
|
||||||
- Basic MPP distributions and samplers
|
- Basic MPP distributions and samplers
|
||||||
|
- bindSymbolOrNull
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Exponential operations merged with hyperbolic functions
|
- Exponential operations merged with hyperbolic functions
|
||||||
|
@ -18,7 +18,7 @@ allprojects {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = "space.kscience"
|
group = "space.kscience"
|
||||||
version = "0.3.0-dev-4"
|
version = "0.3.0-dev-5"
|
||||||
}
|
}
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
|
@ -5,7 +5,6 @@ import space.kscience.kmath.ast.MST
|
|||||||
import space.kscience.kmath.ast.MstAlgebra
|
import space.kscience.kmath.ast.MstAlgebra
|
||||||
import space.kscience.kmath.ast.interpret
|
import space.kscience.kmath.ast.interpret
|
||||||
import space.kscience.kmath.expressions.DifferentiableExpression
|
import space.kscience.kmath.expressions.DifferentiableExpression
|
||||||
import space.kscience.kmath.expressions.Expression
|
|
||||||
import space.kscience.kmath.misc.Symbol
|
import space.kscience.kmath.misc.Symbol
|
||||||
import space.kscience.kmath.operations.NumericAlgebra
|
import space.kscience.kmath.operations.NumericAlgebra
|
||||||
|
|
||||||
@ -22,7 +21,7 @@ import space.kscience.kmath.operations.NumericAlgebra
|
|||||||
public class DifferentiableMstExpression<T : Number, A : NumericAlgebra<T>>(
|
public class DifferentiableMstExpression<T : Number, A : NumericAlgebra<T>>(
|
||||||
public val algebra: A,
|
public val algebra: A,
|
||||||
public val mst: MST,
|
public val mst: MST,
|
||||||
) : DifferentiableExpression<T, Expression<T>> {
|
) : DifferentiableExpression<T, DifferentiableMstExpression<T, A>> {
|
||||||
|
|
||||||
public override fun invoke(arguments: Map<Symbol, T>): T = mst.interpret(algebra, arguments)
|
public override fun invoke(arguments: Map<Symbol, T>): T = mst.interpret(algebra, arguments)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user