Linear algebra for Quantum Mechanics