Lines Matching refs:mat
39 mat = m.Matrix(5, 4)
40 assert memoryview(mat).shape == (5, 4)
42 assert mat[2, 3] == 0
43 mat[2, 3] = 4.0
44 mat[3, 2] = 7.0
45 assert mat[2, 3] == 4
46 assert mat[3, 2] == 7
47 assert struct.unpack_from('f', mat, (3 * 4 + 2) * 4) == (7, )
48 assert struct.unpack_from('f', mat, (2 * 4 + 3) * 4) == (4, )
50 mat2 = np.array(mat, copy=False)
59 del mat
62 del mat2 # holds a mat reference