Linear Algebra Flashcards
What is a scalar?
A single number.
What is a vector?
An array of numbers, arranged in an indexed order.
How are vector variables represented?
Vectors have lowercase names in italic bold typeface: x
How are scalar variables represented?
They are written in lowercase italics: s
How is a set of vector indices defined?
S = { indices } then we write xS
Example: S = { 1, 3, 6 } are a set of the 1,3, and 6 indexes
How is the complement of a set indexed?
With a - sign:
x-1 is the vector of all elements of x except for x1
x-S is the vector of all elements of x except the set S
What is a matrix?
A matrix is a 2D array of numbers.
Each element is identified with two numbers.
How are matrix variables represented?
With an uppercase name in bold italics: A
How are rows and columns of a matrix indexed?
With a : symbol:
Ai,: represents the horizontal cross section i (row)
A:,i represents the vertical cross section i (column)
What is a tensor?
A matrix with more than two axes.
How are tensor variables represented?
With a bold capital letter: A
What is the transpose of a matrix?
A mirror image of the matrix across a diagonal line.
(AT)i,j = Aj,i
What is the name of the line across which a transpose is mirrored?
main diagonal
How is a transpose represented?
Superscript T:
AT
What is the transpose of a scalar?
The scalar is its own transpose.
What is the transpose of a vector?
A row vector becomes a column vector and vice versa.
How is matrix-matrix addition defined?
If they have the same shape, then:
C = A + B where Ci,j = Ai,j + Bi,j
Each element is added to the corresponding element.
How is matrix-scalar addition and multiplication defined?
The scalar is added or multiplied to each matrix element.
This is called an element-wise operation.
What is an element-wise matrix operation?
Performing the operation on each element of the matrix.
For example, in the addition of a scalar to a matrix.