forked from kscience/kmath
Fix package
This commit is contained in:
parent
02264f84e9
commit
86793d6fac
@ -29,7 +29,9 @@ dependencies {
|
|||||||
implementation(project(":kmath-ejml"))
|
implementation(project(":kmath-ejml"))
|
||||||
implementation("org.jetbrains.kotlinx:kotlinx-io-jvm:0.2.0-npm-dev-6")
|
implementation("org.jetbrains.kotlinx:kotlinx-io-jvm:0.2.0-npm-dev-6")
|
||||||
implementation("org.jetbrains.kotlinx:kotlinx.benchmark.runtime:0.2.0-dev-20")
|
implementation("org.jetbrains.kotlinx:kotlinx.benchmark.runtime:0.2.0-dev-20")
|
||||||
"benchmarksCompile"(sourceSets.main.get().output + sourceSets.main.get().compileClasspath) //sourceSets.main.output + sourceSets.main.runtimeClasspath
|
implementation("org.slf4j:slf4j-simple:1.7.30")
|
||||||
|
"benchmarksImplementation"("org.jetbrains.kotlinx:kotlinx.benchmark.runtime-jvm:0.2.0-dev-8")
|
||||||
|
"benchmarksImplementation"(sourceSets.main.get().output + sourceSets.main.get().runtimeClasspath)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Configure benchmark
|
// Configure benchmark
|
||||||
|
@ -36,14 +36,3 @@ fun main() {
|
|||||||
val genericTime = measureTimeMillis { val res = matrix1 dot matrix2 }
|
val genericTime = measureTimeMillis { val res = matrix1 dot matrix2 }
|
||||||
println("Generic implementation time: $genericTime")
|
println("Generic implementation time: $genericTime")
|
||||||
}
|
}
|
||||||
|
|
||||||
(EjmlMatrixContext(RealField)) {
|
|
||||||
val ejmlMatrix1 = matrix1.toEjml()
|
|
||||||
val ejmlMatrix2 = matrix2.toEjml()
|
|
||||||
val ejmlTime = measureTimeMillis { ejmlMatrix1 dot ejmlMatrix2 }
|
|
||||||
println("EJML implementation time: $ejmlTime")
|
|
||||||
}
|
|
||||||
|
|
||||||
val genericTime = measureTimeMillis { val res = matrix1 dot matrix2 }
|
|
||||||
println("Generic implementation time: $genericTime")
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user