Changes for upcoming GSL extension project #148

Merged
CommanderTvis merged 98 commits from gsl-experiment into dev 2021-02-19 13:34:27 +03:00
3 changed files with 7 additions and 1 deletions
Showing only changes of commit 2f1cfefeac - Show all commits

View File

@ -5,5 +5,5 @@ plugins {
repositories.jcenter() repositories.jcenter()
dependencies { dependencies {
implementation(kotlin("compiler-embeddable", "1.4.10")) implementation(kotlin("compiler-embeddable", "1.4.20"))
} }

View File

@ -57,6 +57,9 @@ private fun KtPsiFactory.createMatrixClass(
f += createNewLine(2) f += createNewLine(2)
} }
/**
* Generates matrices source code for kmath-gsl.
*/
fun matricesCodegen(outputFile: String, project: Project = createProject()) { fun matricesCodegen(outputFile: String, project: Project = createProject()) {
val f = KtPsiFactory(project, true).run { val f = KtPsiFactory(project, true).run {
createFile("").also { f -> createFile("").also { f ->

View File

@ -46,6 +46,9 @@ private fun KtPsiFactory.createVectorClass(
f += createNewLine(2) f += createNewLine(2)
} }
/**
* Generates vectors source code for kmath-gsl.
*/
fun vectorsCodegen(outputFile: String, project: Project = createProject()) { fun vectorsCodegen(outputFile: String, project: Project = createProject()) {
val f = KtPsiFactory(project, true).run { val f = KtPsiFactory(project, true).run {
createFile("").also { f -> createFile("").also { f ->