Skip to content

Commit

Permalink
Fixes #1454 Possible typo in subsref
Browse files Browse the repository at this point in the history
  • Loading branch information
johanlofberg committed Nov 26, 2024
1 parent e70a103 commit a5cab36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extras/@optimizer/subsref.m
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
for i = 1:length(subs.subs)
dimBlocks(i) = numel(subs.subs{i}) / prod(self.diminOrig{i});
end
if any(dimBlocks)>1 && any(dimBlocks==0)
if any(dimBlocks>1) && any(dimBlocks==0)
error('Blocked data in partial instantiation is not possible');
end
if all(dimBlocks)
Expand Down

0 comments on commit a5cab36

Please sign in to comment.