$88 GRAYBYTE WORDPRESS FILE MANAGER $90

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
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_numeric.py
import numpy as np
from numpy.testing import assert_equal

class TestDot:
    def test_matscalar(self):
        b1 = np.matrix(np.ones((3, 3), dtype=complex))
        assert_equal(b1*1.0, b1)


def test_diagonal():
    b1 = np.matrix([[1,2],[3,4]])
    diag_b1 = np.matrix([[1, 4]])
    array_b1 = np.array([1, 4])

    assert_equal(b1.diagonal(), diag_b1)
    assert_equal(np.diagonal(b1), array_b1)
    assert_equal(np.diag(b1), array_b1)

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
14 Aug 2025 9.24 PM
root / root
0755
__pycache__
--
14 Aug 2025 9.24 PM
root / root
0755
__init__.py
0 KB
17 Apr 2025 8.10 PM
root / root
0644
test_defmatrix.py
14.631 KB
17 Apr 2025 8.10 PM
root / root
0644
test_interaction.py
11.597 KB
17 Apr 2025 8.10 PM
root / root
0644
test_masked_matrix.py
8.723 KB
17 Apr 2025 8.10 PM
root / root
0644
test_matrix_linalg.py
2.011 KB
17 Apr 2025 8.10 PM
root / root
0644
test_multiarray.py
0.541 KB
17 Apr 2025 8.10 PM
root / root
0644
test_numeric.py
0.431 KB
17 Apr 2025 8.10 PM
root / root
0644
test_regression.py
0.905 KB
17 Apr 2025 8.10 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF