Mercurial > hg > octave-nkf
diff liboctave/boolNDArray.cc @ 4964:269c3d6c0569
[project @ 2004-09-04 01:16:28 by jwe]
author | jwe |
---|---|
date | Sat, 04 Sep 2004 01:16:28 +0000 |
parents | ef5e598f099b |
children | e71be9c548f2 |
line wrap: on
line diff
--- a/liboctave/boolNDArray.cc +++ b/liboctave/boolNDArray.cc @@ -61,6 +61,31 @@ MX_ND_ANY_ALL_REDUCTION (MX_ND_ANY_EVAL (MX_ND_ANY_EXPR), false); } +boolNDArray +concat (const boolNDArray& ra, const boolNDArray& rb, const Array<int>& ra_idx) +{ + boolNDArray retval (ra); + if (rb.numel () > 0) + retval.insert (rb, ra_idx); + return retval; +} + +boolNDArray& +boolNDArray::insert (const boolNDArray& a, int r, int c) +{ + Array<bool>::insert (a, r, c); + return *this; +} + +boolNDArray& +boolNDArray::insert (const boolNDArray& a, const Array<int>& ra_idx) +{ + Array<bool>::insert (a, ra_idx); + return *this; +} + + + boolMatrix boolNDArray::matrix_value (void) const {