14 Working with vectors and matrices
This chapter covers
- Working with numbers in matrices and performing calculations
- Slicing and dicing arrays
- Concatenating arrays along different dimensions to form larger arrays
In chapter 4, you explored basic operations, such as push!, on one-dimensional arrays, called vectors. In this chapter, you will focus more on working with multidimensional arrays, such as matrices.
What can you use a matrix and vector for? They can be combined to solve a great number of problems. For example, it is popular to use vectors in a geometric interpretation; in this case they represent points in space. You can use matrices to move and rotate these points.
Matrices can even be used to solve mathematical equations, and they ...
Get Julia as a Second Language 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.