$47 GRAYBYTE WORDPRESS FILE MANAGER $41

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.15.130 | ADMIN IP 216.73.216.85
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/matrixlib/tests/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/matrixlib/tests//test_multiarray.py
import numpy as np
from numpy.testing import assert_, assert_equal, assert_array_equal

class TestView:
    def test_type(self):
        x = np.array([1, 2, 3])
        assert_(isinstance(x.view(np.matrix), np.matrix))

    def test_keywords(self):
        x = np.array([(1, 2)], dtype=[('a', np.int8), ('b', np.int8)])
        # We must be specific about the endianness here:
        y = x.view(dtype='<i2', type=np.matrix)
        assert_array_equal(y, [[513]])

        assert_(isinstance(y, np.matrix))
        assert_equal(y.dtype, np.dtype('<i2'))


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
11 Feb 2026 9.30 AM
root / root
0755
__pycache__
--
11 Feb 2026 9.30 AM
root / root
0755
__init__.py
0 KB
20 Jan 2026 1.01 PM
root / root
0644
test_defmatrix.py
14.631 KB
20 Jan 2026 1.01 PM
root / root
0644
test_interaction.py
11.597 KB
20 Jan 2026 1.01 PM
root / root
0644
test_masked_matrix.py
8.723 KB
20 Jan 2026 1.01 PM
root / root
0644
test_matrix_linalg.py
2.011 KB
20 Jan 2026 1.01 PM
root / root
0644
test_multiarray.py
0.541 KB
20 Jan 2026 1.01 PM
root / root
0644
test_numeric.py
0.431 KB
20 Jan 2026 1.01 PM
root / root
0644
test_regression.py
0.905 KB
20 Jan 2026 1.01 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF