view test/mk_bc_overloads_expected.m @ 28942:fc4bb4bd1d5e

maint: Use '##' as lead-in for full-line comments. * condeig.m, mustBeMember.m, runge_kutta_interpolate.m, lsqnonneg.m, pqpnonneg.m, sqp.m, pkg.m, fplot.m, isosurface.m, __gnuplot_draw_axes__.m, profexport.m, bicgstab.m, factorial.m, movmad.m, movmax.m, movmean.m, movmedian.m, movmin.m, movprod.m, movstd.m, movsum.m, movvar.m, fA.m, fB.m, fC.m, one.m, two.m, df_vr.m, u_vr.m, myclass2.m, foo_subsref_subsasgn.m, Blork.m, CPrecedenceTester1.m, Cork.m, display.m, display.m, get.m, set.m, display.m, Sneetch.m, Snork.m, Spork.m, jit.tst, line-continue.tst, mk_bc_overloads_expected.m, arg_nest.m, no_closure.m, persistent_nest.m, recursive_nest.m, recursive_nest2.m, scope0.m, scope1.m, scope2.m, scope3.m, script_nest.m, script_nest_2.m, script_nest_script.m, script_nest_script_2.m, pkg.tst: Use '##' as lead-in for full-line comments.
author Rik <rik@octave.org>
date Thu, 15 Oct 2020 14:30:01 -0700
parents 279a6bd429f4
children
line wrap: on
line source

%% this script is intended to be Matlab compatible
%% first, run the script
%
%%   ./build_bc_overloads_tests.sh overloads_only
%
%% to generate the overloaded functions.
%
ex.double = 1;
ex.single = single (1);
ex.logical = true;
ex.char = 'char';
ex.int8  = int8 (1);
ex.int16 = int16 (1);
ex.int32 = int32 (1);
ex.int64 = int64 (1);
ex.uint8  = uint8 (1);
ex.uint16 = uint16 (1);
ex.uint32 = uint32 (1);
ex.uint64 = uint64 (1);
ex.cell = {};
ex.struct = struct ();
ex.function_handle = @numel;

f = fieldnames (ex);
n = numel (f);

fid = fopen ('bc_overloads_expected','w');
fid
for i = 1:n
  for j = 1:n
    s = tbcover (ex.(f{i}), ex.(f{j}));
    fprintf (fid, '%s %s %s\n', f{i}, f{j}, s);
  end
end
fclose (fid)