MCPcopy
hub / github.com/numpy/numpy / test_qr_empty

Method test_qr_empty

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

Source from the content-addressed store, hash-verified

1779 (0, 0)
1780 ])
1781 def test_qr_empty(self, m, n):
1782 k = min(m, n)
1783 a = np.empty((m, n))
1784
1785 self.check_qr(a)
1786
1787 h, tau = np.linalg.qr(a, mode='raw')
1788 assert_equal(h.dtype, np.double)
1789 assert_equal(tau.dtype, np.double)
1790 assert_equal(h.shape, (n, m))
1791 assert_equal(tau.shape, (k,))
1792
1793 def test_mode_raw(self):
1794 # 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