Add missing public visibilities

This commit is contained in:
Iaroslav 2020-09-21 19:01:24 +07:00
parent 2c21f56695
commit 66d5df7a51
No known key found for this signature in database
GPG Key ID: 46E15E4A31B3BCD7
2 changed files with 7 additions and 7 deletions

View File

@ -40,13 +40,13 @@ public class EjmlMatrix(public val origin: SimpleMatrix, features: Set<MatrixFea
)
}
public override val l: FeaturedMatrix<Double>
override val l: FeaturedMatrix<Double>
get() = lup.second
public override val u: FeaturedMatrix<Double>
override val u: FeaturedMatrix<Double>
get() = lup.third
public override val p: FeaturedMatrix<Double>
override val p: FeaturedMatrix<Double>
get() = lup.first
}
) union features.orEmpty()

View File

@ -17,9 +17,9 @@ public class EjmlVector internal constructor(public val origin: SimpleMatrix) :
require(origin.numCols() == 1) { error("Only single column matrices are allowed") }
}
override operator fun get(index: Int): Double = origin[index]
public override operator fun get(index: Int): Double = origin[index]
override operator fun iterator(): Iterator<Double> = object : Iterator<Double> {
public override operator fun iterator(): Iterator<Double> = object : Iterator<Double> {
private var cursor: Int = 0
override fun next(): Double {
@ -30,10 +30,10 @@ public class EjmlVector internal constructor(public val origin: SimpleMatrix) :
override fun hasNext(): Boolean = cursor < origin.numCols() * origin.numRows()
}
override fun contentEquals(other: Buffer<*>): Boolean {
public override fun contentEquals(other: Buffer<*>): Boolean {
if (other is EjmlVector) return origin.isIdentical(other.origin, 0.0)
return super.contentEquals(other)
}
override fun toString(): String = "EjmlVector(origin=$origin)"
public override fun toString(): String = "EjmlVector(origin=$origin)"
}