Fixed Stride for RealNDArray #4

Merged
Wasabi375 merged 2 commits from master into master 2018-05-01 19:03:27 +03:00
Showing only changes of commit da037aa879 - Show all commits

View File

@ -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)