casa
5.7.0-16
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
casa
code
stdcasa
casac.h
Go to the documentation of this file.
1
//==============================================================================
2
// casac - python module definition - <MModuleDef>
3
//
4
//Stolen from the old CCM tools implementation
5
//
6
//==============================================================================
7
#ifndef _casac_h
8
#define _casac_h
9
10
#include <stdarg.h>
11
#include <vector>
12
13
#define USING_NUMPY_ARRAYS 1
14
15
namespace
casac {
16
17
template
<
class
T>
18
std::vector<T>
initialize_vector
(
int
count, T v1, ...) {
19
va_list ap;
20
va_start(ap, v1);
21
std::vector<T> result(count);
22
result[0] = v1;
23
for
(
int
i=1; i < count; ++i ) {
24
T val = va_arg(ap,T);
25
result[i] = val;
26
}
27
return
result;
28
}
29
30
}
// casac namespace
31
32
#endif
33
casac::initialize_vector
std::vector< T > initialize_vector(int count, T v1,...)
Definition:
casac.h:18
Generated on Sun Sep 1 2019 23:32:41 for casa by
1.8.5