root/itpp_ext.cpp @ 6

Revision 6, 399 bytes (checked in by smidl, 17 years ago)

to%Arr

RevLine 
[6]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
15namespace 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}
Note: See TracBrowser for help on using the browser.