Comment 10 for bug 1911400

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

So without the assert I have 1 working but 2 failing with the int32 scalar issue.

octave:9> pararrayfun (1, @ (x, y) x * y, [1, 2], "ChunksPerProc", 2, "CumFunc", @ (a, b) a + b), 40
error: int32 scalar cannot be indexed with {
error: called from
    parcellfun at line 206 column 25
    pararrayfun at line 85 column 28
octave:10> pararrayfun (1, @ (x, y) x * y, [1, 2], "ChunksPerProc", 1, "CumFunc", @ (a, b) a + b), 40
ans = 40

But that isn't a fix/workaround as "1" with the assert is
assert (res = pararrayfun (2, @ (x, y) x * y, [1, 2, 3, 4], [2, 3, 4, 5], "ChunksPerProc", 1, "CumFunc", @ (a, b) a + b), 40)
error: ASSERT errors for: assert (res = pararrayfun (2, @(x, y)x * y, [1, 2, 3, 4], [2, 3, 4, 5], "ChunksPerProc", 1, "CumFunc", @(a, b)a + b),40)

  Location | Observed | Expected | Reason
     () O E Class int32 != double