This commit is contained in:
Alexander Nozik 2022-08-21 11:39:41 +03:00
parent 6111c673ee
commit 5af0c91f0a
No known key found for this signature in database
GPG Key ID: F7FCF2DD25C71357
3 changed files with 4 additions and 8 deletions

View File

@ -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 {

View File

@ -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"

View File

@ -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()