Beispiel #1
0
    def test_1(self):
        # standard 2-D column vector
        A = sp.array([[1., 1, 1]]).T

        assert (isColVector(A) is True)
Beispiel #2
0
    def test_5(self):
        # A matrix
        A = sp.array([[1., 1, 1], [2, 2, 2]])

        assert (isColVector(A) is False)
Beispiel #3
0
    def test_3(self):
        # 0-D array
        A = sp.array([1., 1, 1])

        assert (isColVector(A) is False)
Beispiel #4
0
    def test_4(self):
        # A list
        A = [1., 1, 1]

        assert (isColVector(A) is False)
Beispiel #5
0
    def test_2(self):
        # row vector
        A = sp.array([[1., 1, 1]])

        assert (isColVector(A) is False)