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 [2022/04/07 12:25] – [Accessing Elements] ursgraftools:matrix:start [2022/04/07 12:29] – [Vectors and Matrices] ursgraf
Line 27: Line 27:
 ^row1|4|5|6| ^row1|4|5|6|
 ^row2|7|8|9| ^row2|7|8|9|
 +When declaring and initializing a matrix, the values must be given colon per colon. The same matrix as given above would be initialized as follows  
 +<code cpp> 
 +Matrix<3, 3, int> m{1, 4, 7, 2, 5, 8, 3, 6, 9}; 
 +</code>  
 ===== Accessing Elements ===== ===== Accessing Elements =====
 You can access rows, columns or single elements of matrices with the following methods: You can access rows, columns or single elements of matrices with the following methods:
tools/matrix/start.txt · Last modified: 2022/04/20 13:29 by ursgraf