#include #include #include #include extern "C" { #include "sausage_tree.h" } static bool is_even(int n); DEFUN_DLD(opt_sausage, args, , "Return b = a^n for square matrix a, and non-negative, integral n.") { string eval_this = "robot"; octave_value_list retval; octave_value OV_1 = double(1); octave_value_list OVL_2 = OV_1; octave_value OV_2= OVL_2(0); RowVector RV_1 = RowVector(3,1.0); printf("row vector length%i\n", RV_1.capacity()); /* octave_value valu2 = retval(1); */ printf("this is what I got OV_1: %i\n", OV_1.int_value()); printf("this is what I got valu2: %i\n", OV_2.int_value()); /* stuff to make sausage run */ double offset_foo = 0; double range_foo = 10; double total_reward = 0; s_node *s_node_foo = s_node_new(offset_foo, range_foo, NULL); int i = 0; srand((unsigned )(time(NULL))); while( i < 100) { /* s_node_run(s_node_foo); */ i++; } return OVL_2; /* return retval; */ }