Matrix Math Flashcards
A single value is known as
scalar
scalar
a value with 0 dimensions
Lists of values are known as
vectors
Types of vectors
row and column
Dimensions of vectors
just one: length
What is a matrix
a 2 dimensional grid of values
What is a tensor?
Any n-dimensional collection of values
Locations in matrices are known as
indices
Indices nomenclature
Like a 1 layer nested array
Numpy is
a C library in python.
Does lots of math operations in Python and is designed to work with matrices.
Normal convention for naming numpy
import numpy as np
Most common way to with number in NumPy is through
ndarray objects
ndarray objects are
similar to Python lists, but can have any number of dimensions
Does fast math operations
To declare an ndarray
x = nd.array(5)
To get shape of ndarray
nd.shape
To reshape an nd array like one that is (4,)
(4,).reshape(1,4)