Challenge: Check Linear Independence
Design a Python algorithm to test a collection of vectors for linear independence.
We'll cover the following
Statement
Write a checkLinearIndependence
function that accepts a collection of vectors, , as input and returns either True
if all vectors are linearly independent or False
if there are dependent vectors. Assume that the vectors have the same vector space.
Sample inputs and outputs
The following table provides example inputs (list of vectors or rows of a matrix) and corresponding outputs:
Input | Output |
---|---|
False |
|
True |
|
False |
Try it yourself
The signature of the function is given below:
Get hands-on with 1400+ tech skills courses.