forked from kscience/kmath
Add publishing to attributes-kt
This commit is contained in:
parent
fd9da63ef9
commit
32c5b3c10d
@ -1,5 +1,6 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("space.kscience.gradle.mpp")
|
id("space.kscience.gradle.mpp")
|
||||||
|
`maven-publish`
|
||||||
}
|
}
|
||||||
|
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
@ -25,6 +25,16 @@ import space.kscience.kmath.viktor.viktorAlgebra
|
|||||||
@State(Scope.Benchmark)
|
@State(Scope.Benchmark)
|
||||||
internal class NDFieldBenchmark {
|
internal class NDFieldBenchmark {
|
||||||
|
|
||||||
|
private companion object {
|
||||||
|
private const val dim = 1000
|
||||||
|
private const val n = 100
|
||||||
|
private val shape = ShapeND(dim, dim)
|
||||||
|
private val specializedField = Float64Field.ndAlgebra
|
||||||
|
private val genericField = BufferedFieldOpsND(Float64Field)
|
||||||
|
private val nd4jField = Float64Field.nd4j
|
||||||
|
private val viktorField = Float64Field.viktorAlgebra
|
||||||
|
}
|
||||||
|
|
||||||
@Benchmark
|
@Benchmark
|
||||||
fun specializedFieldAdd(blackhole: Blackhole) = with(specializedField) {
|
fun specializedFieldAdd(blackhole: Blackhole) = with(specializedField) {
|
||||||
var res: StructureND<Double> = one(shape)
|
var res: StructureND<Double> = one(shape)
|
||||||
@ -82,13 +92,5 @@ internal class NDFieldBenchmark {
|
|||||||
// blackhole.consume(res)
|
// blackhole.consume(res)
|
||||||
// }
|
// }
|
||||||
|
|
||||||
private companion object {
|
|
||||||
private const val dim = 1000
|
|
||||||
private const val n = 100
|
|
||||||
private val shape = ShapeND(dim, dim)
|
|
||||||
private val specializedField = Float64Field.ndAlgebra
|
|
||||||
private val genericField = BufferedFieldOpsND(Float64Field)
|
|
||||||
private val nd4jField = Float64Field.nd4j
|
|
||||||
private val viktorField = Float64Field.viktorAlgebra
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@ allprojects {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = "space.kscience"
|
group = "space.kscience"
|
||||||
version = "0.4.0"
|
version = "0.4.0-RC"
|
||||||
}
|
}
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
|
Loading…
Reference in New Issue
Block a user