We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 009dee5 + 5dfcc77 commit 6d8caacCopy full SHA for 6d8caac
README.md
@@ -9,6 +9,18 @@
9
[](https://codecov.io/github/libmir/mir-algorithm?branch=master)
10
[](https://circleci.com/gh/libmir/mir-algorithm)
11
12
+```d
13
+import mir.ndslice;
14
+
15
+auto matrix = slice!double(3, 4);
16
+matrix[] = 0;
17
+matrix.diagonal[] = 1;
18
19
+auto row = matrix[2];
20
+row[3] = 6;
21
+assert(matrix[2, 3] == 6); // D & C index order
22
+```
23
24
### API Documentation
25
26
http://docs.algorithm.dlang.io
0 commit comments