Exemple #1
0
    def test_mx_function_call(self):

        mx_function = ci.mx_function(self.name, self.input, self.output)
        b = 2
        c = 4

        self.assertTrue(mx_function([b]), c)
    def test_mx_function_call(self):

        mx_function = ci.mx_function(self.name, self.input, self.output)
        b = 2
        c = 4

        self.assertTrue(mx_function([b]), c)
Exemple #3
0
    def test_mx_function_is_function_instance(self):

        mx_function = ci.mx_function(self.name, self.input, self.output)

        self.assertTrue(isinstance(mx_function, ca.casadi.Function))
    def test_mx_function_is_mx_function_instance(self):

        mx_function = ci.mx_function(self.name, self.input, self.output)

        self.assertTrue(isinstance(mx_function, ca.casadi.MXFunction))