Vector Properties
Last updated
Last updated
For a set of vectors { } and a set of scalars {}, where and , linear combination is given by:
For example
Matrix multiplications can be interpreted in terms of linear combinations of columns. For example,
An AXPY
opeartion is a linear combination:
Then,
Then,
Following details the algorithm for AXPY
operation using slicing & dicing:
A linear combination of vectors scales the individual vectors and then adds them. Linear combinations are foundational to linear algebra.
The span of all the columns of a matrix is called the columns space. For example,
A set of vectors is linearly independent if none of these vectors can be written as a linear combination of the other vectors.
For example,
We note that the linear combination can implemented as AXPY
operations. This suggests that the cost is times the cost of an AXPY operation with vectors of size : flops and approximately memops.
However, one can actually do better. The vector in the above equation is updated repeatedly. If this vector stays in the L1 cache
of a computer, then it need not be repeatedly loaded from memory, and the cost becomes memops (to load into cache), and then for each AXPY
operation approximately memops (to read , ignoring the cost of reading ). Then, once has been completely updated, it can be written back to memory. So, the total cost related to accessing memory becomes memops.
Given any , this vector can always be written as the linear combination of the unit basis vectors.
Let and . We partition (slice & dice) these vectors as:
Span of a set of vectors is the set of all vectors obtainable by a linear combination of the original vectors. For example, for , span is given by .
Further, note that, for the equation has a solution only if b lies in the columns space of A.
are linearly independent.
are linearly dependent as .
Mathematically, is linearly independent if for the following linear combination:
which means that all the .