Mercurial > octave-nkf
comparison liboctave/boolNDArray.cc @ 5073:e71be9c548f2
[project @ 2004-11-09 18:31:25 by jwe]
author | jwe |
---|---|
date | Tue, 09 Nov 2004 18:31:26 +0000 |
parents | 269c3d6c0569 |
children | e35b034d3523 |
comparison
equal
deleted
inserted
replaced
5072:97b62f0c1bee | 5073:e71be9c548f2 |
---|---|
60 { | 60 { |
61 MX_ND_ANY_ALL_REDUCTION (MX_ND_ANY_EVAL (MX_ND_ANY_EXPR), false); | 61 MX_ND_ANY_ALL_REDUCTION (MX_ND_ANY_EVAL (MX_ND_ANY_EXPR), false); |
62 } | 62 } |
63 | 63 |
64 boolNDArray | 64 boolNDArray |
65 concat (const boolNDArray& ra, const boolNDArray& rb, const Array<int>& ra_idx) | 65 boolNDArray::concat (const boolNDArray& rb, const Array<int>& ra_idx) |
66 { | 66 { |
67 boolNDArray retval (ra); | |
68 if (rb.numel () > 0) | 67 if (rb.numel () > 0) |
69 retval.insert (rb, ra_idx); | 68 insert (rb, ra_idx); |
70 return retval; | 69 return *this; |
71 } | 70 } |
72 | 71 |
73 boolNDArray& | 72 boolNDArray& |
74 boolNDArray::insert (const boolNDArray& a, int r, int c) | 73 boolNDArray::insert (const boolNDArray& a, int r, int c) |
75 { | 74 { |