Esempio n. 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))
Esempio n. 2
0
    def test_sx_sym_nodim(self):

        sx_sym = ci.sx_sym(self.name)

        self.assertEqual(sx_sym.shape, (1, 1))
Esempio n. 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))