BUG: sphinxext: fix sphinx extensions broken recently
Fix np domain to avoid duplicate module indices in docs
TST: linalg: add tests for 0-by-0 in inv and solve

These tests differ from test_empty since
atleast_2d(array([], dtype = double)) returns an array with shape (1,0).