mirror of
https://github.com/github/semantic.git
synced 2024-12-01 17:59:10 +03:00
Insert in row-major order.
This commit is contained in:
parent
e178745c56
commit
d12c95e296
@ -8,8 +8,8 @@ public struct Matrix<A> {
|
||||
var values: [Memo<A>] = []
|
||||
values.reserveCapacity(width * height)
|
||||
|
||||
for i in 0..<width {
|
||||
for j in 0..<height {
|
||||
for j in 0..<height {
|
||||
for i in 0..<width {
|
||||
values.append(Memo<A> { compute(i, j) })
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user