Feature/advanced optimization #404

Merged
altavir merged 17 commits from feature/advanced-optimization into dev 2021-08-29 11:44:10 +03:00
4 changed files with 3 additions and 5 deletions
Showing only changes of commit 8581b32448 - Show all commits

2
.gitignore vendored
View File

@ -18,5 +18,3 @@ out/
# Generated by javac -h and runtime # Generated by javac -h and runtime
*.class *.class
*.log *.log
/kmath-ejml/src/main/kotlin/space/kscience/kmath/ejml/_generated.kt

View File

@ -19,4 +19,4 @@ fun main() {
with(DoubleField.bufferAlgebra(5)) { with(DoubleField.bufferAlgebra(5)) {
println(number(2.0) + produce(1, 2, 3, 4, 5)) println(number(2.0) + produce(1, 2, 3, 4, 5))
} }
} }

View File

@ -17,4 +17,4 @@ kotlin.sourceSets {
readme { readme {
maturity = ru.mipt.npm.gradle.Maturity.EXPERIMENTAL maturity = ru.mipt.npm.gradle.Maturity.EXPERIMENTAL
} }

View File

@ -11,7 +11,7 @@ import space.kscience.kmath.expressions.Symbol
import space.kscience.kmath.misc.FeatureSet import space.kscience.kmath.misc.FeatureSet
public abstract class OptimizationBuilder<T, R : OptimizationProblem<T>> { public abstract class OptimizationBuilder<T, R : OptimizationProblem<T>> {
public val features: ArrayList<OptimizationFeature> = ArrayList() public val features: MutableList<OptimizationFeature> = ArrayList()
public fun addFeature(feature: OptimizationFeature) { public fun addFeature(feature: OptimizationFeature) {
features.add(feature) features.add(feature)