Mercurial > octave
comparison libinterp/corefcn/dasrt.cc @ 30896:c9788d7f6e65
maint: Use "fcn" as preferred abbreviation for "function" in libinterp/.
* __eigs__.cc, bsxfun.cc, cellfun.cc, daspk.cc, dasrt.cc, dassl.cc, data.cc,
debug.cc, error.cc, graphics.cc, graphics.in.h, gzfstream.h, ls-hdf5.cc,
lsode.cc, max.cc, oct-opengl.h, quad.cc, strfns.cc, utils.cc, utils.h,
variables.cc, __ode15__.cc, gzip.cc, cdef-manager.cc, ov-fcn-handle.cc,
ov-java.cc, ov-usr-fcn.cc, bp-table.cc, bp-table.h, lex.h, lex.ll,
oct-parse.yy, pt-eval.cc:
Replace "func", "fun", "fn" in documentation and variable names with "fcn".
author | Rik <rik@octave.org> |
---|---|
date | Tue, 05 Apr 2022 08:33:58 -0700 |
parents | 08b08b7f05b2 |
children | e88a07dec498 |
comparison
equal
deleted
inserted
replaced
30895:360d330cc30e | 30896:c9788d7f6e65 |
---|---|
430 } | 430 } |
431 | 431 |
432 if (dasrt_fcn.is_undefined ()) | 432 if (dasrt_fcn.is_undefined ()) |
433 error ("dasrt: FCN argument is not a valid function name or handle"); | 433 error ("dasrt: FCN argument is not a valid function name or handle"); |
434 | 434 |
435 DAERTFunc func (dasrt_user_f); | 435 DAERTFunc fcn (dasrt_user_f); |
436 | 436 |
437 argp++; | 437 argp++; |
438 | 438 |
439 if (args(1).isempty () && args(1).is_double_type ()) | 439 if (args(1).isempty () && args(1).is_double_type ()) |
440 { | 440 { |
455 | 455 |
456 if (dasrt_cf.is_defined ()) | 456 if (dasrt_cf.is_defined ()) |
457 { | 457 { |
458 argp++; | 458 argp++; |
459 | 459 |
460 func.set_constraint_function (dasrt_user_cf); | 460 fcn.set_constraint_function (dasrt_user_cf); |
461 } | 461 } |
462 } | 462 } |
463 | 463 |
464 if (argp + 3 > nargin) | 464 if (argp + 3 > nargin) |
465 print_usage (); | 465 print_usage (); |
483 | 483 |
484 crit_times_set = true; | 484 crit_times_set = true; |
485 } | 485 } |
486 | 486 |
487 if (dasrt_jac.is_defined ()) | 487 if (dasrt_jac.is_defined ()) |
488 func.set_jacobian_function (dasrt_user_j); | 488 fcn.set_jacobian_function (dasrt_user_j); |
489 | 489 |
490 DASRT_result output; | 490 DASRT_result output; |
491 | 491 |
492 DASRT dae = DASRT (state, stateprime, tzero, func); | 492 DASRT dae = DASRT (state, stateprime, tzero, fcn); |
493 | 493 |
494 dae.set_options (dasrt_opts); | 494 dae.set_options (dasrt_opts); |
495 | 495 |
496 if (crit_times_set) | 496 if (crit_times_set) |
497 output = dae.integrate (out_times, crit_times); | 497 output = dae.integrate (out_times, crit_times); |