File: num_util_impl.hpp

package info (click to toggle)
python-visual 3.2.9-4.1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 2,796 kB
  • ctags: 2,664
  • sloc: cpp: 11,958; sh: 8,185; python: 3,709; ansic: 480; makefile: 311
file content (35 lines) | stat: -rw-r--r-- 1,064 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef VISUAL_NUM_UTIL_IMPL_HPP
#define VISUAL_NUM_UTIL_IMPL_HPP

/**
	This file contains the set of function pointers that will be called
	by the utility functions in num_util.
	They are declared here, and defined in num_util.cpp.  They are initialized
	to NULL statically, and the functions init_numarray() in 
	num_util_numarray.{h,h}pp and init_numeric() in num_util_numeric.{h,c}pp
	initialize both their internal function pointers and set the implementation
	function pointers to their independant implementations.
*/

#include "num_util.h"

#ifdef HAVE_CONFIG_H
# include "config.h"
#else
// A slightly more sane default?
# define VISUAL_HAVE_NUMERIC
# undef VISUAL_HAVE_NUMARRAY
#endif

namespace visual {
	
extern array (*makeNum_impl)(std::vector<int>, array_types);
extern array_types (*type_impl)(array);
extern std::vector<int> (*shape_impl)(array);
extern bool (*iscontiguous_impl)(array);
extern char* (*data_impl)(const array&);
extern array (*astype_impl)(array, array_types);

} // !namespace visual

#endif // !defined VISUAL_NUM_UTIL_IMPL_HPP