Linear Algebra for Quantum Theory