This commit is contained in:
Alexander Nozik 2021-04-06 17:17:43 +03:00
parent 45301d9172
commit 5bdc02d18c
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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 {

View File

@ -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)