tools:matrix:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tools:matrix:start [2021/11/14 17:15] – [Matrix Operations] ursgraf | tools:matrix:start [2022/04/07 12:25] – [Accessing Elements] ursgraf | ||
---|---|---|---|
Line 17: | Line 17: | ||
<code cpp> | <code cpp> | ||
Matrix< | Matrix< | ||
- | m << 1, 4, 7, | + | m << 1, 2, 3, |
- | 2, 5, 8, | + | 4, 5, 6, |
- | 3, 6, 9; | + | 7, 8, 9; |
</ | </ | ||
The first three numbers will be filled into the first colon. While the internal representation is simply a one dimensional vector, the matrix could be visualized as | The first three numbers will be filled into the first colon. While the internal representation is simply a one dimensional vector, the matrix could be visualized as | ||
Line 32: | Line 32: | ||
<code cpp> | <code cpp> | ||
m.get(0, | m.get(0, | ||
- | m.getRow(1); | + | m.get(1, |
- | m.getCol(0); | + | m.getRow(1); |
- | m.getSubMatrix< | + | m.getCol(0); |
+ | m.getSubMatrix< | ||
</ | </ | ||
Single elements, rows or columns can be written with the methods //set()//, // | Single elements, rows or columns can be written with the methods //set()//, // |
tools/matrix/start.txt · Last modified: 2022/04/20 13:29 by ursgraf