© Sandeep Nagar 2017

Sandeep Nagar, Beginning Julia Programming, https://doi.org/10.1007/978-1-4842-3171-5_8

8. Arrays for Matrix Operations

Sandeep Nagar

(1)New York, USA

8.1 Defining an Array

A Julia array is equivalent to a mathematical matrix because, just like a Julia array, a matrix is an ordered collection of numbers. The simplest case for a matrix is the one storing component of a 3D vector. For example, a vector $$ \overrightarrow{a}=2\widehat{i}+3\widehat{j}-4\widehat{k} $$ can also be represented as either a row matrix:$$ \left[2\kern0.5em 3\kern0.5em -4\right] $$

or a column matrix:

In both cases, the numbers 2, 3, and 4 are ordered in a fashion. ...

Get Beginning Julia Programming: For Engineers and Scientists now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.