From 2f1cfefeac1db63917550b31455c2218fdeb0d1e Mon Sep 17 00:00:00 2001 From: Iaroslav Postovalov Date: Sun, 6 Dec 2020 04:05:36 +0700 Subject: [PATCH] Update Kotlin, document codegen functions --- buildSrc/build.gradle.kts | 2 +- .../main/kotlin/kscience/kmath/gsl/codegen/matricesCodegen.kt | 3 +++ .../main/kotlin/kscience/kmath/gsl/codegen/vectorsCodegen.kt | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index 5093b7930..84d1706d5 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -5,5 +5,5 @@ plugins { repositories.jcenter() dependencies { - implementation(kotlin("compiler-embeddable", "1.4.10")) + implementation(kotlin("compiler-embeddable", "1.4.20")) } diff --git a/buildSrc/src/main/kotlin/kscience/kmath/gsl/codegen/matricesCodegen.kt b/buildSrc/src/main/kotlin/kscience/kmath/gsl/codegen/matricesCodegen.kt index 81324141c..56a563f84 100644 --- a/buildSrc/src/main/kotlin/kscience/kmath/gsl/codegen/matricesCodegen.kt +++ b/buildSrc/src/main/kotlin/kscience/kmath/gsl/codegen/matricesCodegen.kt @@ -57,6 +57,9 @@ private fun KtPsiFactory.createMatrixClass( f += createNewLine(2) } +/** + * Generates matrices source code for kmath-gsl. + */ fun matricesCodegen(outputFile: String, project: Project = createProject()) { val f = KtPsiFactory(project, true).run { createFile("").also { f -> diff --git a/buildSrc/src/main/kotlin/kscience/kmath/gsl/codegen/vectorsCodegen.kt b/buildSrc/src/main/kotlin/kscience/kmath/gsl/codegen/vectorsCodegen.kt index e227dc721..2f4a06475 100644 --- a/buildSrc/src/main/kotlin/kscience/kmath/gsl/codegen/vectorsCodegen.kt +++ b/buildSrc/src/main/kotlin/kscience/kmath/gsl/codegen/vectorsCodegen.kt @@ -46,6 +46,9 @@ private fun KtPsiFactory.createVectorClass( f += createNewLine(2) } +/** + * Generates vectors source code for kmath-gsl. + */ fun vectorsCodegen(outputFile: String, project: Project = createProject()) { val f = KtPsiFactory(project, true).run { createFile("").also { f ->