Introduction to Matrices (Pt. 2)
Last updated
Last updated
Poh-tay-toh, poh-tah-toh š„... ...
Toh-may-toh, toh-mah-toh š ... ...
With all confusing jargons aside, dimensions can be a difficult concept to wrap around. Despite having 7D dried mangoes and even 9D cinemas, it is difficult (actually impossible š¤Ŗ) to visualize even 4 dimensions.
You might have also noticed the difference in the amount of dimensions referred to by either via the Math/Physics vs Computer Science view.
This is because Math/Physics often work with what they refer to as the Vector Space (don't really claim to know this very well). Thus, the dimensions being referred to are the tools for the plotting of 2-D to 3-D vectors, to better understand topics such as forces of either push, pull, shear or rotation.
However, for Computer Science, the dimensions referred to here are often just a description about the arrays. Hence, instead of the former key purpose of plotting and visualization, this simply describes the level of complexity of a given array.
E.g., it may be helpful to describe the position of an element of a 2-D array (matrix) via both its row and column number, whereas it is not that necessary for a scalar (unnecessarily wrong)
Following this GitBook will be focusing on matrices, but however, the following entities are also a good mentioning/starting points.
A scalar is a single-value number. This entity is often applied to a vector, and its action is called scaling.
For example, the value 3 is a scalar
It should also not be represented with brackets
It has 0 dimensions, as it is not meaningful to express it in terms of either rows or columns
There are also no other possible variations to express a scalar
Example
Math/Physics
Computer Science
[1]
Scalar (1-D)
Number (0-D)
[1, 2]
Vector (2-D)
Array (1-D)
[1, 2]
[3, 4]
Matrix (3-D)
Matrix (2-D)
[[1, 2], [3,4]]
Tensor (N-D)
Tensor (N-D)