[Issue 6345] A different kind of vector operation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 27 13:56:09 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6345



--- Comment #2 from bearophile_hugs at eml.cc 2011-07-27 13:56:06 PDT ---
Another possible purpose. Given this matrix:

auto M = new double[][](10, 20);

This:

M[][1] = 1.0;

Means:

foreach (row; p)
    row[1] = 1.0;


This replaces some usages of std.range.transversal().

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list