forked from kscience/kmath
Removed unnecessary inlines
This commit is contained in:
parent
e500046932
commit
b2d97651b1
@ -90,6 +90,7 @@ subprojects {
|
|||||||
compilations.all {
|
compilations.all {
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = "1.8"
|
jvmTarget = "1.8"
|
||||||
|
//freeCompilerArgs = listOf("-Xno-call-assertions", "-Xno-param-assertions")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,9 +7,9 @@ import kotlin.reflect.KClass
|
|||||||
*/
|
*/
|
||||||
class BufferAccessor2D<T : Any>(val type: KClass<T>, val rowNum: Int, val colNum: Int) {
|
class BufferAccessor2D<T : Any>(val type: KClass<T>, val rowNum: Int, val colNum: Int) {
|
||||||
|
|
||||||
inline operator fun Buffer<T>.get(i: Int, j: Int) = get(i + colNum * j)
|
operator fun Buffer<T>.get(i: Int, j: Int) = get(i + colNum * j)
|
||||||
|
|
||||||
inline operator fun MutableBuffer<T>.set(i: Int, j: Int, value: T) {
|
operator fun MutableBuffer<T>.set(i: Int, j: Int, value: T) {
|
||||||
set(i + colNum * j, value)
|
set(i + colNum * j, value)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user