removed unnecessary inlines

This commit is contained in:
Alexander Nozik 2019-04-09 20:19:16 +03:00
parent 271e762a95
commit 98bb72a6a0

View File

@ -103,8 +103,8 @@ open class BufferAccessor<T : Any>(val type: KClass<T>, val field: Field<T>, val
* Specialized LU operations for Doubles
*/
class RealBufferAccessor(rowNum: Int, colNum: Int) : BufferAccessor<Double>(Double::class, RealField, rowNum, colNum) {
override inline fun MutableBuffer<Double>.get(i: Int, j: Int) = (this as DoubleBuffer).array[i + colNum * j]
override inline fun MutableBuffer<Double>.set(i: Int, j: Int, value: Double) {
override fun MutableBuffer<Double>.get(i: Int, j: Int) = (this as DoubleBuffer).array[i + colNum * j]
override fun MutableBuffer<Double>.set(i: Int, j: Int, value: Double) {
(this as DoubleBuffer).array[i + colNum * j] = value
}