cristicbz / scid

Scientific library for the D programming language
Boost Software License 1.0
23 stars 8 forks source link

Wrong index-slice-assign #49

Closed dsimcha closed 13 years ago

dsimcha commented 13 years ago
import scid.matvec, std.stdio;

void main() {
    auto mat = Matrix!double(3, 3);
    auto vec = Vector!double([1, 2]).t;
    mat[2][0..2] = vec;
    writeln(mat.pretty);  // vec ends up in row zero, not row 2
}
cristicbz commented 13 years ago

Fixed: https://github.com/cristicbz/scid/commit/245e87eb6e9df3ec9345217989ddaf605de03b96