User Tools

Site Tools


tools:matrix:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
tools:matrix:start [2021/11/14 17:15] – [Matrix Operations] ursgraftools:matrix:start [2022/04/07 12:23] ursgraf
Line 17: Line 17:
 <code cpp> <code cpp>
 Matrix<3, 3, int> m;  Matrix<3, 3, int> m; 
-m << 1, 47+m << 1, 23
-     2, 5, 8+     4, 5, 6
-     36, 9;+     78, 9;
 </code> </code>
 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,0);  // returns element, 1 m.get(0,0);  // returns element, 1
 +m.get(1,0);  // returns element, 4
 m.getRow(1);  // returns row, [2,5,8] m.getRow(1);  // returns row, [2,5,8]
 m.getCol(0);  // returns column, [1,2,3]' m.getCol(0);  // returns column, [1,2,3]'
tools/matrix/start.txt · Last modified: 2022/04/20 13:29 by ursgraf