示例#1
0
    def test_sx_sym_2dim(self):

        sx_sym = ci.sx_sym(self.name, self.dim1, self.dim2)

        self.assertEqual(sx_sym.shape, (self.dim1, self.dim2))
示例#2
0
    def test_sx_sym_nodim(self):

        sx_sym = ci.sx_sym(self.name)

        self.assertEqual(sx_sym.shape, (1, 1))
示例#3
0
    def test_sx_sym_is_sx_sym_instance(self):

        sx_sym = ci.sx_sym(self.name, self.dim1)

        self.assertTrue(isinstance(sx_sym, ca.casadi.SX))
    def test_sx_sym_2dim(self):

        sx_sym = ci.sx_sym(self.name, self.dim1, self.dim2)

        self.assertEqual(sx_sym.shape, (self.dim1, self.dim2))
    def test_sx_sym_nodim(self):

        sx_sym = ci.sx_sym(self.name)

        self.assertEqual(sx_sym.shape, (1, 1))
    def test_sx_sym_is_sx_sym_instance(self):

        sx_sym = ci.sx_sym(self.name, self.dim1)

        self.assertTrue(isinstance(sx_sym, ca.casadi.SX))