Mercurial > octave-dspies
comparison libinterp/operators/op-pm-sm.cc @ 18678:6113e0c6920b
maint: Clean up extra spaces before/after parentheses.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 25 Apr 2014 13:25:25 -0700 |
parents | d63878346099 |
children |
comparison
equal
deleted
inserted
replaced
18677:f684f7075aee | 18678:6113e0c6920b |
---|---|
42 // Not calling standard CAST_UNOP_ARG for these next two because a | 42 // Not calling standard CAST_UNOP_ARG for these next two because a |
43 // dynamic_cast would fail. | 43 // dynamic_cast would fail. |
44 DEFUNOP (not, perm_matrix) | 44 DEFUNOP (not, perm_matrix) |
45 { | 45 { |
46 // Obviously negation of a permutation matrix destroys sparsity | 46 // Obviously negation of a permutation matrix destroys sparsity |
47 return octave_value ( ! a.bool_array_value ()); | 47 return octave_value (! a.bool_array_value ()); |
48 } | 48 } |
49 | 49 |
50 DEFUNOP (uminus, perm_matrix) | 50 DEFUNOP (uminus, perm_matrix) |
51 { | 51 { |
52 return octave_value ( - a.sparse_matrix_value ()); | 52 return octave_value (- a.sparse_matrix_value ()); |
53 } | 53 } |
54 | 54 |
55 // Most other logical operations cast to SparseBoolMatrix | 55 // Most other logical operations cast to SparseBoolMatrix |
56 DEFBINOP (eq_pm, perm_matrix, perm_matrix) | 56 DEFBINOP (eq_pm, perm_matrix, perm_matrix) |
57 { | 57 { |