update Kotlin∇ and remove old maven repositories

This commit is contained in:
breandan 2021-12-25 12:05:42 -05:00
parent 42259e3eb9
commit 6255a46004
8 changed files with 13 additions and 31 deletions

View File

@ -14,12 +14,6 @@ sourceSets.register("benchmarks")
repositories { repositories {
mavenCentral() mavenCentral()
maven("https://repo.kotlin.link") maven("https://repo.kotlin.link")
maven("https://clojars.org/repo")
maven("https://jitpack.io")
maven("http://logicrunch.research.it.uu.se/maven") {
isAllowInsecureProtocol = true
}
} }
kotlin { kotlin {

View File

@ -7,13 +7,6 @@ plugins {
allprojects { allprojects {
repositories { repositories {
maven("https://clojars.org/repo")
maven("https://jitpack.io")
maven("http://logicrunch.research.it.uu.se/maven") {
isAllowInsecureProtocol = true
}
maven("https://oss.sonatype.org/content/repositories/snapshots") maven("https://oss.sonatype.org/content/repositories/snapshots")
mavenCentral() mavenCentral()
} }

View File

@ -5,12 +5,7 @@ plugins {
repositories { repositories {
mavenCentral() mavenCentral()
maven("https://repo.kotlin.link") maven("https://repo.kotlin.link")
maven("https://clojars.org/repo")
maven("https://jitpack.io")
maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-js-wrappers") maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-js-wrappers")
maven("http://logicrunch.research.it.uu.se/maven") {
isAllowInsecureProtocol = true
}
} }
dependencies { dependencies {

View File

@ -6,8 +6,8 @@ plugins {
description = "Kotlin∇ integration module" description = "Kotlin∇ integration module"
dependencies { dependencies {
api("com.github.breandan:kaliningraph:0.1.6") api("ai.hypergraph:kaliningraph:0.1.9")
api("com.github.breandan:kotlingrad:0.4.5") api("ai.hypergraph:kotlingrad:0.4.7")
api(project(":kmath-core")) api(project(":kmath-core"))
testImplementation(project(":kmath-ast")) testImplementation(project(":kmath-ast"))
} }

View File

@ -5,7 +5,7 @@
package space.kscience.kmath.kotlingrad package space.kscience.kmath.kotlingrad
import edu.umontreal.kotlingrad.api.SConst import ai.hypergraph.kotlingrad.api.SConst
import space.kscience.kmath.operations.NumericAlgebra import space.kscience.kmath.operations.NumericAlgebra
/** /**

View File

@ -5,8 +5,8 @@
package space.kscience.kmath.kotlingrad package space.kscience.kmath.kotlingrad
import edu.umontreal.kotlingrad.api.SFun import ai.hypergraph.kotlingrad.api.SFun
import edu.umontreal.kotlingrad.api.SVar import ai.hypergraph.kotlingrad.api.SVar
import space.kscience.kmath.expressions.* import space.kscience.kmath.expressions.*
import space.kscience.kmath.operations.NumericAlgebra import space.kscience.kmath.operations.NumericAlgebra

View File

@ -5,7 +5,7 @@
package space.kscience.kmath.kotlingrad package space.kscience.kmath.kotlingrad
import edu.umontreal.kotlingrad.api.* import ai.hypergraph.kotlingrad.api.*
import space.kscience.kmath.expressions.MST import space.kscience.kmath.expressions.MST
import space.kscience.kmath.expressions.MstExtendedField import space.kscience.kmath.expressions.MstExtendedField
import space.kscience.kmath.expressions.MstExtendedField.unaryMinus import space.kscience.kmath.expressions.MstExtendedField.unaryMinus

View File

@ -5,7 +5,7 @@
package space.kscience.kmath.kotlingrad package space.kscience.kmath.kotlingrad
import edu.umontreal.kotlingrad.api.* import ai.hypergraph.kotlingrad.api.*
import space.kscience.kmath.asm.compileToExpression import space.kscience.kmath.asm.compileToExpression
import space.kscience.kmath.ast.parseMath import space.kscience.kmath.ast.parseMath
import space.kscience.kmath.expressions.MstNumericAlgebra import space.kscience.kmath.expressions.MstNumericAlgebra
@ -22,7 +22,7 @@ internal class AdaptingTests {
fun symbol() { fun symbol() {
assertEquals(x.identity, x.toSVar<KMathNumber<Double, DoubleField>>().name) assertEquals(x.identity, x.toSVar<KMathNumber<Double, DoubleField>>().name)
val c2 = "kitten".parseMath().toSFun<KMathNumber<Double, DoubleField>>() val c2 = "kitten".parseMath().toSFun<KMathNumber<Double, DoubleField>>()
if (c2 is SVar) assertTrue(c2.name == "kitten") else fail() if (c2 is SVar<*>) assertTrue(c2.name == "kitten") else fail()
} }
@Test @Test
@ -30,17 +30,17 @@ internal class AdaptingTests {
val c1 = MstNumericAlgebra.number(12354324) val c1 = MstNumericAlgebra.number(12354324)
assertTrue(c1.toSConst<DReal>().doubleValue == 12354324.0) assertTrue(c1.toSConst<DReal>().doubleValue == 12354324.0)
val c2 = "0.234".parseMath().toSFun<KMathNumber<Double, DoubleField>>() val c2 = "0.234".parseMath().toSFun<KMathNumber<Double, DoubleField>>()
if (c2 is SConst) assertTrue(c2.doubleValue == 0.234) else fail() if (c2 is SConst<*>) assertTrue(c2.doubleValue == 0.234) else fail()
val c3 = "1e-3".parseMath().toSFun<KMathNumber<Double, DoubleField>>() val c3 = "1e-3".parseMath().toSFun<KMathNumber<Double, DoubleField>>()
if (c3 is SConst) assertEquals(0.001, c3.value) else fail() if (c3 is SConst<*>) assertEquals(0.001, c3.value) else fail()
} }
@Test @Test
fun simpleFunctionShape() { fun simpleFunctionShape() {
val linear = "2*x+16".parseMath().toSFun<KMathNumber<Double, DoubleField>>() val linear = "2*x+16".parseMath().toSFun<KMathNumber<Double, DoubleField>>()
if (linear !is Sum) fail() if (linear !is Sum<*>) fail()
if (linear.left !is Prod) fail() if (linear.left !is Prod<*>) fail()
if (linear.right !is SConst) fail() if (linear.right !is SConst<*>) fail()
} }
@Test @Test