Linear Algebra for Electrical Systems