2021-05-14 22:23:28 +03:00
|
|
|
import space.kscience.kmath.ejml.codegen.ejmlCodegen
|
|
|
|
|
2020-09-20 12:40:07 +03:00
|
|
|
plugins {
|
2021-04-14 12:40:26 +03:00
|
|
|
kotlin("jvm")
|
|
|
|
id("ru.mipt.npm.gradle.common")
|
2020-09-20 12:40:07 +03:00
|
|
|
}
|
2020-09-09 19:42:43 +03:00
|
|
|
|
|
|
|
dependencies {
|
2021-07-16 21:12:14 +03:00
|
|
|
api("org.ejml:ejml-ddense:0.41")
|
|
|
|
api("org.ejml:ejml-fdense:0.41")
|
|
|
|
api("org.ejml:ejml-dsparse:0.41")
|
|
|
|
api("org.ejml:ejml-fsparse:0.41")
|
2021-03-17 19:11:26 +03:00
|
|
|
api(project(":kmath-core"))
|
2020-09-09 19:42:43 +03:00
|
|
|
}
|
2021-01-30 20:23:15 +03:00
|
|
|
|
2021-03-16 20:56:20 +03:00
|
|
|
readme {
|
2021-04-16 22:43:10 +03:00
|
|
|
maturity = ru.mipt.npm.gradle.Maturity.PROTOTYPE
|
2021-03-17 19:11:26 +03:00
|
|
|
propertyByTemplate("artifact", rootProject.file("docs/templates/ARTIFACT-TEMPLATE.md"))
|
|
|
|
|
|
|
|
feature(
|
|
|
|
id = "ejml-vector",
|
|
|
|
ref = "src/main/kotlin/space/kscience/kmath/ejml/EjmlVector.kt"
|
2021-05-14 22:23:28 +03:00
|
|
|
) { "Point implementations." }
|
2021-03-17 19:11:26 +03:00
|
|
|
|
|
|
|
feature(
|
|
|
|
id = "ejml-matrix",
|
|
|
|
ref = "src/main/kotlin/space/kscience/kmath/ejml/EjmlMatrix.kt"
|
2021-05-14 22:23:28 +03:00
|
|
|
) { "Matrix implementation." }
|
2021-03-17 19:11:26 +03:00
|
|
|
|
|
|
|
feature(
|
|
|
|
id = "ejml-linear-space",
|
|
|
|
ref = "src/main/kotlin/space/kscience/kmath/ejml/EjmlLinearSpace.kt"
|
2021-05-14 22:23:28 +03:00
|
|
|
) { "LinearSpace implementations." }
|
|
|
|
}
|
|
|
|
|
2022-04-04 14:43:20 +03:00
|
|
|
kotlin.sourceSets {
|
|
|
|
filter { it.name.contains("test", true) }
|
|
|
|
.map(org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet::languageSettings)
|
|
|
|
.forEach {
|
|
|
|
it.optIn("space.kscience.kmath.misc.PerformancePitfall")
|
|
|
|
it.optIn("space.kscience.kmath.misc.UnstableKMathAPI")
|
|
|
|
}
|
|
|
|
|
|
|
|
main {
|
|
|
|
val codegen by tasks.creating {
|
|
|
|
ejmlCodegen(kotlin.srcDirs.first().absolutePath + "/space/kscience/kmath/ejml/_generated.kt")
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlin.srcDirs(files().builtBy(codegen))
|
2021-05-14 22:23:28 +03:00
|
|
|
}
|
2021-03-17 19:11:26 +03:00
|
|
|
}
|