Revision 11, 400 bytes
(checked in by smidl, 17 years ago)
|
resampling in PF + initial port of functions
|
Line | |
---|
1 | // |
---|
2 | // C++ Implementation: itpp_ext |
---|
3 | // |
---|
4 | // Description: |
---|
5 | // |
---|
6 | // |
---|
7 | // Author: smidl <smidl@utia.cas.cz>, (C) 2008 |
---|
8 | // |
---|
9 | // Copyright: See COPYING file that comes with this distribution |
---|
10 | // |
---|
11 | // |
---|
12 | |
---|
13 | #include <itpp/itbase.h> |
---|
14 | |
---|
15 | namespace itpp { |
---|
16 | Array<int> to_Arr(const ivec &indices) |
---|
17 | { |
---|
18 | Array<int> a(indices.size()); |
---|
19 | for (int i = 0; i < a.size(); i++) { |
---|
20 | a(i) = indices(i); |
---|
21 | } |
---|
22 | return a; |
---|
23 | } |
---|
24 | |
---|
25 | |
---|
26 | } |
---|