forked from kscience/kmath
Fixed stride for RealNDArray
Signed-off-by: Burkhard Mittelbach <wasabi37a@googlemail.com>
This commit is contained in:
parent
5ec4c8690c
commit
da037aa879
@ -12,7 +12,7 @@ private class RealNDField(shape: List<Int>) : NDField<Real>(shape, RealField) {
|
||||
private val strides: List<Int> by lazy {
|
||||
ArrayList<Int>(shape.size).apply {
|
||||
var current = 1
|
||||
add(0)
|
||||
add(1)
|
||||
shape.forEach {
|
||||
current *= it
|
||||
add(current)
|
||||
|
Loading…
Reference in New Issue
Block a user