cristicbz/scid — Issue #67: Index-assign is broken due to incorrect asserts
Author: dsimcha
Created: 2011-11-21 02:53:55+00:00
State: open

import scid.matvec;

void main() {
auto x = Matrix!double(1, 1);
x[0, 0] = 5;
x[0, 0] += 3;
}

core.exception.AssertError@scid.storage.cowmatrix(183): Assertion failure

The problem is that the assertion is just plain wrong when op is e.g. += or *=, not just plain old =. I'll post a pull request momentarily that solves this by just getting rid of the relevant assertions.