comparison liboctave/boolNDArray.cc @ 7620:36594d5bbe13

Move diag function into the octave_value class
author David Bateman <dbateman@free.fr>
date Fri, 21 Mar 2008 00:08:24 +0100
parents a018c140f8aa
children 1bd918cfb6e2
comparison
equal deleted inserted replaced
7619:56012914972a 7620:36594d5bbe13
127 const dim_vector& dimensions) 127 const dim_vector& dimensions)
128 { 128 {
129 return ::compute_index (ra_idx, dimensions); 129 return ::compute_index (ra_idx, dimensions);
130 } 130 }
131 131
132 boolNDArray
133 boolNDArray::diag (octave_idx_type k) const
134 {
135 return ArrayN<bool>::diag (k);
136 }
137
132 NDND_BOOL_OPS (boolNDArray, boolNDArray, false) 138 NDND_BOOL_OPS (boolNDArray, boolNDArray, false)
133 NDND_CMP_OPS (boolNDArray, , boolNDArray, ) 139 NDND_CMP_OPS (boolNDArray, , boolNDArray, )
134 140
135 NDS_BOOL_OPS (boolNDArray, bool, false) 141 NDS_BOOL_OPS (boolNDArray, bool, false)
136 NDS_CMP_OPS (boolNDArray, , bool, ) 142 NDS_CMP_OPS (boolNDArray, , bool, )