Skip to content

Commit

Permalink
fixed white space
Browse files Browse the repository at this point in the history
  • Loading branch information
tristangdwl committed Oct 18, 2024
1 parent d5c275d commit f595ea0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions chunkie/@kernel/plus.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
assert(f.opdims(1) == g.opdims(1) && f.opdims(2) == g.opdims(2), ...
'kernel dimensions must agree to add');
f.name = ['custom ',f.name,' ',g.name];

if(isa(f.shifted_eval, 'function_handle'))
if(isa(g.shifted_eval, 'function_handle'))
f.shifted_eval = @(varargin) f.shifted_eval(varargin{:})+g.shifted_eval(varargin{:});
Expand All @@ -22,16 +22,14 @@
f.shifted_eval = [];
end
end



f.eval = @(varargin) g.eval(varargin{:}) + f.eval(varargin{:});
if (isa(g.fmm,'function_handle') && isa(f.fmm,'function_handle'))
f.fmm = @(varargin) g.fmm(varargin{:}) + f.fmm(varargin{:});
else
f.fmm = [];
end


if or(f.isnan,g.isnan)
f = kernel.nans(f.opdims(1),f.opdims(2));
end
Expand Down

0 comments on commit f595ea0

Please sign in to comment.