Julia Matrices
Matrices are a 2-dimensional shaped series of values.
Contents
Description
Matrices are instantiated using a syntax that is consistent with that of vectors.
- Rows are entered as space-delimited values.
To indicate the separation between rows, use either a literal newline or the vertical concatenation operator (;).
julia> a = [1 2; 3 4]
2×2 Matrix{Int64}:
1 2
3 4
julia> a = [1 2
3 4]
2×2 Matrix{Int64}:
1 2
3 4