MCPcopy Create free account
hub / github.com/davisking/dlib / test_matrix_empty_init

Function test_matrix_empty_init

tools/python/test/test_matrix.py:15–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14
15def test_matrix_empty_init():
16 m = matrix()
17 assert m.nr() == 0
18 assert m.nc() == 0
19 assert m.shape == (0, 0)
20 assert len(m) == 0
21 assert repr(m) == "< dlib.matrix containing: >"
22 assert str(m) == ""
23
24
25def test_matrix_from_list():

Callers

nothing calls this directly

Calls 6

matrixClass · 0.90
lenFunction · 0.85
reprFunction · 0.85
strClass · 0.85
nrMethod · 0.45
ncMethod · 0.45

Tested by

no test coverage detected