MCPcopy
hub / github.com/numpy/numpy / test_matrix_empty

Method test_matrix_empty

numpy/linalg/tests/test_linalg.py:1504–1505  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1502 array = np.array
1503
1504 def test_matrix_empty(self):
1505 assert_equal(norm(self.array([[]], dtype=self.dt)), 0.0)
1506
1507 def test_matrix_return_type(self):
1508 a = self.array([[1, 0, 1], [0, 1, 1]])

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
normFunction · 0.90

Tested by

no test coverage detected