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

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

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

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

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

        assert (isColVector(A) is False)