package scientifik.kmath.linear import scientifik.kmath.operations.Ring class KomaMatrixContext> : MatrixContext { override val elementContext: R get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates. override fun produce(rows: Int, columns: Int, initializer: (i: Int, j: Int) -> T): Matrix { TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } override fun point(size: Int, initializer: (Int) -> T): Point { TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } inline class KomaMatrix(val matrix: koma.matrix.Matrix) : Matrix { override val rowNum: Int get() = matrix.numRows() override val colNum: Int get() = matrix.numCols() override val features: Set get() = emptySet() @Suppress("OVERRIDE_BY_INLINE") override inline fun get(i: Int, j: Int): T = matrix.getGeneric(i, j) }