Use Number instead of Integer in some linalg operations
Merge pull request #3052 from daviddelaat/linalgnumber

RFC: Use Number instead of Integer in some linalg operations