2020-09-25 10:13:38 +03:00
plugins {
2021-04-14 12:40:26 +03:00
kotlin("multiplatform")
id("ru.mipt.npm.gradle.common")
2022-04-04 14:43:20 +03:00
// id("ru.mipt.npm.gradle.native")
2021-09-19 20:48:36 +03:00
// id("com.xcporter.metaview") version "0.0.5"
2020-09-25 10:13:38 +03:00
}
2019-01-26 19:38:18 +03:00
2021-11-23 23:48:43 +03:00
kotlin.sourceSets {
filter { it.name.contains("test", true) }
.map(org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet::languageSettings)
2021-11-25 19:26:08 +03:00
.forEach {
it.optIn("space.kscience.kmath.misc.PerformancePitfall")
it.optIn("space.kscience.kmath.misc.UnstableKMathAPI")
}
2021-11-15 18:42:00 +03:00
2021-11-23 23:48:43 +03:00
commonMain {
dependencies {
api(project(":kmath-memory"))
2021-01-06 17:01:37 +03:00
}
}
2020-06-05 18:05:16 +03:00
}
2020-09-25 10:13:38 +03:00
2021-09-19 20:48:36 +03:00
//generateUml {
// classTree {
//
// }
//}
2020-09-25 10:13:38 +03:00
readme {
description = "Core classes, algebra definitions, basic linear algebra"
2021-04-20 17:39:45 +03:00
maturity = ru.mipt.npm.gradle.Maturity.DEVELOPMENT
2020-09-26 12:15:11 +03:00
propertyByTemplate("artifact", rootProject.file("docs/templates/ARTIFACT-TEMPLATE.md"))
2020-10-29 11:39:53 +03:00
2020-09-25 10:13:38 +03:00
feature(
id = "algebras",
2021-07-16 21:12:14 +03:00
ref = "src/commonMain/kotlin/space/kscience/kmath/operations/Algebra.kt",
) { "Algebraic structures like rings, spaces and fields." }
2020-10-29 11:39:53 +03:00
2020-09-25 10:13:38 +03:00
feature(
id = "nd",
2021-07-16 21:12:14 +03:00
ref = "src/commonMain/kotlin/space/kscience/kmath/structures/StructureND.kt",
) { "Many-dimensional structures and operations on them." }
2020-10-29 11:39:53 +03:00
2021-01-30 20:12:14 +03:00
feature(
id = "linear",
2021-07-16 21:12:14 +03:00
ref = "src/commonMain/kotlin/space/kscience/kmath/operations/Algebra.kt",
) { "Basic linear algebra operations (sums, products, etc.), backed by the `Space` API. Advanced linear algebra operations like matrix inversion and LU decomposition." }
2021-01-30 20:12:14 +03:00
2020-09-25 10:13:38 +03:00
feature(
id = "buffers",
2021-07-16 21:12:14 +03:00
ref = "src/commonMain/kotlin/space/kscience/kmath/structures/Buffers.kt",
) { "One-dimensional structure" }
2020-10-29 11:39:53 +03:00
2020-09-25 10:13:38 +03:00
feature(
id = "expressions",
2021-07-16 21:12:14 +03:00
ref = "src/commonMain/kotlin/space/kscience/kmath/expressions"
) {
"""
2021-01-30 20:12:14 +03:00
By writing a single mathematical expression once, users will be able to apply different types of
objects to the expression by providing a context. Expressions can be used for a wide variety of purposes from high
performance calculations to code generation.
2021-07-16 21:12:14 +03:00
""".trimIndent()
}
2020-10-29 11:39:53 +03:00
2020-09-25 10:13:38 +03:00
feature(
id = "domains",
2021-07-16 21:12:14 +03:00
ref = "src/commonMain/kotlin/space/kscience/kmath/domains",
) { "Domains" }
2020-10-29 11:39:53 +03:00
2020-09-25 10:13:38 +03:00
feature(
2021-07-16 21:12:14 +03:00
id = "autodiff",
2021-03-16 22:46:22 +03:00
ref = "src/commonMain/kotlin/space/kscience/kmath/expressions/SimpleAutoDiff.kt"
2021-07-16 21:12:14 +03:00
) { "Automatic differentiation" }
2020-10-29 11:39:53 +03:00
}
2022-04-04 14:43:20 +03:00
// Testing multi-receiver!
tasks.withType<org.jetbrains.kotlin.gradle.tasks.Kotlin2JsCompile> {
enabled = false
}