# Linear algebra

Matrix
Multidimensional array

4x2 Matrix or ${\displaystyle \mathbb {R} }$4x2 A = ${\displaystyle {\begin{bmatrix}2&5\\12&15\\243&52\\43&14\end{bmatrix}}}$

Where counting starts is defined by the programming language used. Python starts counting a 0. In python use arrays to define a matrix.

A0,1 = 2
A2,2 = 52

Vector
A nx1 matrix. In python is is advised to use a one-dimensional array (to be tested)

4 dimensional vector ${\displaystyle \mathbb {R} }$4 A = ${\displaystyle {\begin{bmatrix}8\\112\\23\\73\end{bmatrix}}}$

Arithmetics m1 = ${\displaystyle {\begin{bmatrix}2&5\\12&5\\2&2\\3&4\end{bmatrix}}}$

m2 = ${\displaystyle {\begin{bmatrix}3&1\\3&3\end{bmatrix}}}$

m1 + m2