Name refactor

This commit is contained in:
Alexander Nozik 2022-07-15 17:31:28 +03:00
parent 846a6d2620
commit bfadf5b33d
No known key found for this signature in database
GPG Key ID: F7FCF2DD25C71357
2 changed files with 4 additions and 4 deletions

View File

@ -439,7 +439,7 @@ public class DSField<T, A : ExtendedField<T>>(
}
@UnstableKMathAPI
public class DerivativeStructureFieldExpression<T, A : ExtendedField<T>>(
public class DSFieldExpression<T, A : ExtendedField<T>>(
public val algebra: A,
public val bufferFactory: MutableBufferFactory<T>,
public val function: DSField<T, A>.() -> DS<T, A>,

View File

@ -30,7 +30,7 @@ internal class AutoDiffTest {
private val y by symbol
@Test
fun derivativeStructureFieldTest() {
fun dsAlgebraTest() {
diff(2, x to 1.0, y to 1.0) {
val x = bindSymbol(x)//by binding()
val y = bindSymbol("y")
@ -44,8 +44,8 @@ internal class AutoDiffTest {
}
@Test
fun autoDifTest() {
val f = DerivativeStructureFieldExpression(DoubleField, ::DoubleBuffer) {
fun dsExpressionTest() {
val f = DSFieldExpression(DoubleField, ::DoubleBuffer) {
val x by binding
val y by binding
x.pow(2) + 2 * x * y + y.pow(2) + 1