MCPcopy Create free account
hub / github.com/numpy/numpy / test_qr_empty

Method test_qr_empty

numpy/linalg/tests/test_linalg.py:1682–1692  ·  view source on GitHub ↗
(self, m, n)

Source from the content-addressed store, hash-verified

1680 (0, 0)
1681 ])
1682 def test_qr_empty(self, m, n):
1683 k = min(m, n)
1684 a = np.empty((m, n))
1685
1686 self.check_qr(a)
1687
1688 h, tau = np.linalg.qr(a, mode='raw')
1689 assert_equal(h.dtype, np.double)
1690 assert_equal(tau.dtype, np.double)
1691 assert_equal(h.shape, (n, m))
1692 assert_equal(tau.shape, (k,))
1693
1694 def test_mode_raw(self):
1695 # The factorization is not unique and varies between libraries,

Callers

nothing calls this directly

Calls 3

check_qrMethod · 0.95
assert_equalFunction · 0.90
minFunction · 0.50

Tested by

no test coverage detected