view examples/code/@polynomial/numel.m @ 20828:a3b9ee5c040a

Replace bsxfun with broadcasting for performance with complex inputs (bug #38628). cumtrapz.m, quadgk.m, trapz.m, center.m, zscore.m: Replace bsxfun with broadcasting for performance where inputs might be complex.
author Rik <rik@octave.org>
date Mon, 12 Oct 2015 21:28:32 -0700
parents c8240a60dd01
children
line wrap: on
line source

function n = numel (obj, idx)

  # always produce an array.
  n = 1;

endfunction