PageRenderTime 41ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Examples/test-suite/octave/template_typedef_import_runme.m

#
MATLAB | 34 lines | 24 code | 10 blank | 0 comment | 0 complexity | eff6081a85dba6d85adc63b8e6796bcc MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. template_typedef_cplx2
  2. template_typedef_import
  3. #
  4. # this is OK
  5. #
  6. s = Sin();
  7. s.get_base_value();
  8. s.get_value();
  9. s.get_arith_value();
  10. my_func_r(s);
  11. make_Multiplies_double_double_double_double(s,s);
  12. z = CSin();
  13. z.get_base_value();
  14. z.get_value();
  15. z.get_arith_value();
  16. my_func_c(z);
  17. make_Multiplies_complex_complex_complex_complex(z,z);
  18. #
  19. # Here we fail
  20. #
  21. d = make_Identity_double();
  22. my_func_r(d);
  23. c = make_Identity_complex();
  24. my_func_c(c);