Mercurial > hg > octave-lyh
comparison liboctave/intNDArray.cc @ 5073:e71be9c548f2
[project @ 2004-11-09 18:31:25 by jwe]
author | jwe |
---|---|
date | Tue, 09 Nov 2004 18:31:26 +0000 |
parents | 43f4ebd2704c |
children | e35b034d3523 |
comparison
equal
deleted
inserted
replaced
5072:97b62f0c1bee | 5073:e71be9c548f2 |
---|---|
79 { | 79 { |
80 return ::compute_index (ra_idx, dimensions); | 80 return ::compute_index (ra_idx, dimensions); |
81 } | 81 } |
82 | 82 |
83 template <class T> | 83 template <class T> |
84 intNDArray<T> | |
85 intNDArray<T>::concat (const intNDArray<T>& rb, const Array<int>& ra_idx) | |
86 { | |
87 if (rb.numel () > 0); | |
88 insert (rb, ra_idx); | |
89 return *this; | |
90 } | |
91 | |
92 template <class T> | |
84 intNDArray<T>& | 93 intNDArray<T>& |
85 intNDArray<T>::insert (const intNDArray<T>& a, int r, int c) | 94 intNDArray<T>::insert (const intNDArray<T>& a, int r, int c) |
86 { | 95 { |
87 Array<T>::insert (a, r, c); | 96 Array<T>::insert (a, r, c); |
88 return *this; | 97 return *this; |