Fix linalg.solve
when inputs are scalars
#585
Merged
linalg.solve
when inputs are scalars
#585