Skip to content

Commit d10ae66

Browse files
committed
Deploy fixes for 0.2.0-dev-5
1 parent 881b85a commit d10ae66

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

kmath-core/src/commonMain/kotlin/kscience/kmath/operations/Algebra.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public interface Algebra<T> {
9292
* Call a block with an [Algebra] as receiver.
9393
*/
9494
// TODO add contract when KT-32313 is fixed
95-
public inline operator fun <A : Algebra<*>, R> A.invoke(block: A.() -> R): R = block()
95+
public inline operator fun <A : Algebra<*>, R> A.invoke(block: A.() -> R): R = run(block)
9696

9797
/**
9898
* Represents "semispace", i.e. algebraic structure with associative binary operation called "addition" as well as

kmath-ejml/src/test/kotlin/kscience/kmath/ejml/EjmlMatrixTest.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import kscience.kmath.linear.DeterminantFeature
44
import kscience.kmath.linear.LupDecompositionFeature
55
import kscience.kmath.linear.MatrixFeature
66
import kscience.kmath.linear.plus
7+
import kscience.kmath.misc.UnstableKMathAPI
78
import kscience.kmath.structures.getFeature
89
import org.ejml.dense.row.factory.DecompositionFactory_DDRM
910
import org.ejml.simple.SimpleMatrix
@@ -39,6 +40,7 @@ internal class EjmlMatrixTest {
3940
assertEquals(listOf(m.numRows(), m.numCols()), w.shape.toList())
4041
}
4142

43+
@OptIn(UnstableKMathAPI::class)
4244
@Test
4345
fun features() {
4446
val m = randomMatrix
@@ -57,6 +59,7 @@ internal class EjmlMatrixTest {
5759

5860
private object SomeFeature : MatrixFeature {}
5961

62+
@OptIn(UnstableKMathAPI::class)
6063
@Test
6164
fun suggestFeature() {
6265
assertNotNull((EjmlMatrix(randomMatrix) + SomeFeature).getFeature<SomeFeature>())

kmath-stat/src/jvmTest/kotlin/kscience/kmath/stat/MCScopeTest.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ class MCScopeTest {
6262
}
6363

6464

65+
@OptIn(ObsoleteCoroutinesApi::class)
6566
fun compareResult(test: ATest) {
6667
val res1 = runBlocking(Dispatchers.Default) { test() }
6768
val res2 = runBlocking(newSingleThreadContext("test")) { test() }

0 commit comments

Comments
 (0)