From 82196250f651d0ba82eb89a1ac3b008b2af184a1 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Sun, 17 Mar 2024 09:42:50 +0300 Subject: [PATCH] Remove unnecessary internal dependencies --- kmath-coroutines/build.gradle.kts | 3 +-- kmath-multik/build.gradle.kts | 2 +- .../kotlin/space/kscience/kmath/multik/MultikTensor.kt | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/kmath-coroutines/build.gradle.kts b/kmath-coroutines/build.gradle.kts index 91b2afd5e..0cb36e10a 100644 --- a/kmath-coroutines/build.gradle.kts +++ b/kmath-coroutines/build.gradle.kts @@ -9,8 +9,7 @@ kscience { wasm() dependencies { - api(project(":kmath-core")) - api(project(":kmath-complex")) + api(projects.kmathCore) api(spclibs.kotlinx.coroutines.core) } } diff --git a/kmath-multik/build.gradle.kts b/kmath-multik/build.gradle.kts index fc51d2c21..85c4d52cb 100644 --- a/kmath-multik/build.gradle.kts +++ b/kmath-multik/build.gradle.kts @@ -15,7 +15,7 @@ kotlin{ sourceSets{ commonMain{ dependencies{ - api(project(":kmath-tensors")) + api(projects.kmathTensors) api("org.jetbrains.kotlinx:multik-core:$multikVersion") } } diff --git a/kmath-multik/src/commonMain/kotlin/space/kscience/kmath/multik/MultikTensor.kt b/kmath-multik/src/commonMain/kotlin/space/kscience/kmath/multik/MultikTensor.kt index 1c6dfe806..20916d934 100644 --- a/kmath-multik/src/commonMain/kotlin/space/kscience/kmath/multik/MultikTensor.kt +++ b/kmath-multik/src/commonMain/kotlin/space/kscience/kmath/multik/MultikTensor.kt @@ -9,7 +9,6 @@ import org.jetbrains.kotlinx.multik.ndarray.data.* import space.kscience.attributes.SafeType import space.kscience.attributes.safeTypeOf import space.kscience.kmath.PerformancePitfall -import space.kscience.kmath.complex.ComplexField import space.kscience.kmath.nd.ShapeND import space.kscience.kmath.operations.* import space.kscience.kmath.tensors.api.Tensor @@ -24,7 +23,7 @@ public val DataType.type: SafeType<*> DataType.FloatDataType -> Float32Field.type DataType.DoubleDataType -> Float64Field.type DataType.ComplexFloatDataType -> safeTypeOf>() - DataType.ComplexDoubleDataType -> ComplexField.type + DataType.ComplexDoubleDataType -> safeTypeOf>() }