@@ -467,9 +467,9 @@ function test_pseudo_hamiltonian_vector_field()
467467 phvf = Data. PseudoHamiltonianVectorField (
468468 f; is_autonomous= true , is_variable= true
469469 )
470- x = [1.0 ];
471- p = [0.5 ];
472- u = [0.2 ];
470+ x = [1.0 ]
471+ p = [0.5 ]
472+ u = [0.2 ]
473473 v = [0.1 ]
474474 Test. @test_throws Exception phvf (x, p, u, v; variable_costate= true )
475475 end
@@ -479,11 +479,11 @@ function test_pseudo_hamiltonian_vector_field()
479479 phvf = Data. PseudoHamiltonianVectorField (
480480 f; is_autonomous= true , is_variable= true , is_inplace= true
481481 )
482- x = [1.0 ];
483- p = [0.5 ];
484- u = [0.2 ];
482+ x = [1.0 ]
483+ p = [0.5 ]
484+ u = [0.2 ]
485485 v = [0.1 ]
486- dx = similar (x);
486+ dx = similar (x)
487487 dp = similar (p)
488488 Test. @test_throws Exception phvf (dx, dp, x, p, u, v; variable_costate= true )
489489 end
@@ -493,10 +493,10 @@ function test_pseudo_hamiltonian_vector_field()
493493 phvf = Data. PseudoHamiltonianVectorField (
494494 f; is_autonomous= false , is_variable= true
495495 )
496- t = 0.5 ;
497- x = [1.0 ];
498- p = [0.5 ];
499- u = [0.2 ];
496+ t = 0.5
497+ x = [1.0 ]
498+ p = [0.5 ]
499+ u = [0.2 ]
500500 v = [0.1 ]
501501 Test. @test_throws Exception phvf (t, x, p, u, v; variable_costate= true )
502502 end
@@ -506,12 +506,12 @@ function test_pseudo_hamiltonian_vector_field()
506506 phvf = Data. PseudoHamiltonianVectorField (
507507 f; is_autonomous= false , is_variable= true , is_inplace= true
508508 )
509- t = 0.5 ;
510- x = [1.0 ];
511- p = [0.5 ];
512- u = [0.2 ];
509+ t = 0.5
510+ x = [1.0 ]
511+ p = [0.5 ]
512+ u = [0.2 ]
513513 v = [0.1 ]
514- dx = similar (x);
514+ dx = similar (x)
515515 dp = similar (p)
516516 Test. @test_throws Exception phvf (
517517 dx, dp, t, x, p, u, v; variable_costate= true
@@ -523,9 +523,9 @@ function test_pseudo_hamiltonian_vector_field()
523523 phvf = Data. PseudoHamiltonianVectorField (
524524 f; is_autonomous= true , is_variable= true
525525 )
526- x = [1.0 ];
527- p = [0.5 ];
528- u = [0.2 ];
526+ x = [1.0 ]
527+ p = [0.5 ]
528+ u = [0.2 ]
529529 v = [0.1 ]
530530 result = phvf (x, p, u, v)
531531 Test. @test result == (p, - x)
0 commit comments