Fixed stride for RealNDArray

Signed-off-by: Burkhard Mittelbach <wasabi37a@googlemail.com>
This commit is contained in:
Burkhard Mittelbach 2018-05-01 17:41:42 +02:00
parent 5ec4c8690c
commit da037aa879
No known key found for this signature in database
GPG Key ID: 6B3F613A894472DF

View File

@ -12,7 +12,7 @@ private class RealNDField(shape: List<Int>) : NDField<Real>(shape, RealField) {
private val strides: List<Int> by lazy { private val strides: List<Int> by lazy {
ArrayList<Int>(shape.size).apply { ArrayList<Int>(shape.size).apply {
var current = 1 var current = 1
add(0) add(1)
shape.forEach { shape.forEach {
current *= it current *= it
add(current) add(current)