Merge to update docs and contributions #504
@ -11,7 +11,7 @@ allprojects {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = "space.kscience"
|
group = "space.kscience"
|
||||||
version = "0.3.1-dev-1"
|
version = "0.3.1-dev-2"
|
||||||
}
|
}
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform")
|
id("space.kscience.gradle.mpp")
|
||||||
id("space.kscience.gradle.common")
|
// Disable native target to avoid CI crashes
|
||||||
id("space.kscience.gradle.native")
|
// id("space.kscience.gradle.native")
|
||||||
}
|
}
|
||||||
|
|
||||||
description = "Polynomials, rational functions, and utilities"
|
description = "Polynomials, rational functions, and utilities"
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
package space.kscience.kmath.tensors.core
|
package space.kscience.kmath.tensors.core
|
||||||
|
|
||||||
import space.kscience.kmath.misc.PerformancePitfall
|
|
||||||
import space.kscience.kmath.misc.UnstableKMathAPI
|
import space.kscience.kmath.misc.UnstableKMathAPI
|
||||||
import space.kscience.kmath.nd.StructureND
|
import space.kscience.kmath.nd.StructureND
|
||||||
import space.kscience.kmath.tensors.api.Tensor
|
import space.kscience.kmath.tensors.api.Tensor
|
||||||
@ -18,8 +17,6 @@ import space.kscience.kmath.tensors.core.internal.tensor
|
|||||||
* Basic linear algebra operations implemented with broadcasting.
|
* Basic linear algebra operations implemented with broadcasting.
|
||||||
* For more information: https://pytorch.org/docs/stable/notes/broadcasting.html
|
* For more information: https://pytorch.org/docs/stable/notes/broadcasting.html
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@PerformancePitfall
|
|
||||||
public object BroadcastDoubleTensorAlgebra : DoubleTensorAlgebra() {
|
public object BroadcastDoubleTensorAlgebra : DoubleTensorAlgebra() {
|
||||||
|
|
||||||
override fun StructureND<Double>.plus(arg: StructureND<Double>): DoubleTensor {
|
override fun StructureND<Double>.plus(arg: StructureND<Double>): DoubleTensor {
|
||||||
@ -102,6 +99,5 @@ public object BroadcastDoubleTensorAlgebra : DoubleTensorAlgebra() {
|
|||||||
* Compute a value using broadcast double tensor algebra
|
* Compute a value using broadcast double tensor algebra
|
||||||
*/
|
*/
|
||||||
@UnstableKMathAPI
|
@UnstableKMathAPI
|
||||||
@PerformancePitfall
|
|
||||||
public fun <R> DoubleTensorAlgebra.withBroadcast(block: BroadcastDoubleTensorAlgebra.() -> R): R =
|
public fun <R> DoubleTensorAlgebra.withBroadcast(block: BroadcastDoubleTensorAlgebra.() -> R): R =
|
||||||
BroadcastDoubleTensorAlgebra.block()
|
BroadcastDoubleTensorAlgebra.block()
|
Loading…
Reference in New Issue
Block a user