summaryrefslogtreecommitdiff
path: root/numpy/doc/swig/series.h
diff options
context:
space:
mode:
authorwfspotz@sandia.gov <wfspotz@sandia.gov@localhost>2007-04-04 19:57:37 +0000
committerwfspotz@sandia.gov <wfspotz@sandia.gov@localhost>2007-04-04 19:57:37 +0000
commit081af11038f18803c051c765b6967ea255cc3b67 (patch)
tree104b19462310b806953bd4f0bd5a3deff29510fd /numpy/doc/swig/series.h
parent07c0893279de1e0b59d3381de36b52efce0dd719 (diff)
downloadnumpy-081af11038f18803c051c765b6967ea255cc3b67.tar.gz
Split Series header/code/interface tests into Vector and Matrix components
Diffstat (limited to 'numpy/doc/swig/series.h')
-rw-r--r--numpy/doc/swig/series.h79
1 files changed, 0 insertions, 79 deletions
diff --git a/numpy/doc/swig/series.h b/numpy/doc/swig/series.h
deleted file mode 100644
index 167b04dee..000000000
--- a/numpy/doc/swig/series.h
+++ /dev/null
@@ -1,79 +0,0 @@
-#ifndef SERIES_H
-#define SERIES_H
-
-// The following macro defines the prototypes for a family of
-// functions with the forms
-//
-// TYPE SNAMELength( TYPE vector[3]);
-// TYPE SNAMEProd( TYPE * series, int size);
-// TYPE SNAMESum( int size, TYPE * series);
-// void SNAMEReverse( TYPE array[3]);
-// void SNAMEOnes( TYPE * array, int size);
-// void SNAMEZeros( int size, TYPE * array);
-// void SNAMEEOSplit( TYPE vector[3], TYPE even[3], TYPE odd[3]);
-// void SNAMETwos( TYPE * twoVec, int size);
-// void SNAMEThrees( int size, TYPE * threeVec);
-// TYPE SNAMEDet( TYPE matrix[2][2]);
-// TYPE SNAMEMax( TYPE * matrix, int rows, int cols);
-// TYPE SNAMEMin( int rows, int cols, TYPE * matrix);
-// void SNAMEScale( TYPE array[3][3]);
-// void SNAMEFloor( TYPE * array, int rows, int cols, TYPE floor);
-// void SNAMECeil( int rows, int cols, TYPE * array, TYPE ceil );
-// void SNAMESetIdent(TYPE in[3][3], TYPE lower[3][3], TYPE upper[3][3]);
-//
-// for any specified type TYPE (for example: short, unsigned int, long
-// long, etc.) with given short name SNAME (for example: short, uint,
-// longLong, etc.). The macro is then expanded for the given
-// TYPE/SNAME pairs. The resulting functions are for testing numpy
-// interfaces, respectively, for:
-//
-// * 1D input arrays, hard-coded length
-// * 1D input arrays
-// * 1D input arrays, data last
-// * 1D in-place arrays, hard-coded length
-// * 1D in-place arrays
-// * 1D in-place arrays, data last
-// * 1D argout arrays, hard-coded length
-// * 1D argout arrays
-// * 1D argout arrays, data last
-// * 2D input arrays, hard-coded lengths
-// * 2D input arrays
-// * 2D input arrays, data last
-// * 2D in-place arrays, hard-coded lengths
-// * 2D in-place arrays
-// * 2D in-place arrays, data last
-// * 2D argout arrays, hard-coded length
-//
-#define TEST_FUNC_PROTOS(TYPE, SNAME) \
-\
-TYPE SNAME ## Length( TYPE vector[3]); \
-TYPE SNAME ## Prod( TYPE * series, int size); \
-TYPE SNAME ## Sum( int size, TYPE * series); \
-void SNAME ## Reverse( TYPE array[3]); \
-void SNAME ## Ones( TYPE * array, int size); \
-void SNAME ## Zeros( int size, TYPE * array); \
-void SNAME ## EOSplit( TYPE vector[3], TYPE even[3], TYPE odd[3]); \
-void SNAME ## Twos( TYPE * twoVec, int size); \
-void SNAME ## Threes( int size, TYPE * threeVec); \
-TYPE SNAME ## Det( TYPE matrix[2][2]); \
-TYPE SNAME ## Max( TYPE * matrix, int rows, int cols); \
-TYPE SNAME ## Min( int rows, int cols, TYPE * matrix); \
-void SNAME ## Scale( TYPE array[3][3], TYPE val); \
-void SNAME ## Floor( TYPE * array, int rows, int cols, TYPE floor); \
-void SNAME ## Ceil( int rows, int cols, TYPE * array, TYPE ceil ); \
-void SNAME ## LUSplit( TYPE matrix[3][3], TYPE lower[3][3], TYPE upper[3][3]);
-
-TEST_FUNC_PROTOS(signed char , schar )
-TEST_FUNC_PROTOS(unsigned char , uchar )
-TEST_FUNC_PROTOS(short , short )
-TEST_FUNC_PROTOS(unsigned short , ushort )
-TEST_FUNC_PROTOS(int , int )
-TEST_FUNC_PROTOS(unsigned int , uint )
-TEST_FUNC_PROTOS(long , long )
-TEST_FUNC_PROTOS(unsigned long , ulong )
-TEST_FUNC_PROTOS(long long , longLong )
-TEST_FUNC_PROTOS(unsigned long long, ulongLong)
-TEST_FUNC_PROTOS(float , float )
-TEST_FUNC_PROTOS(double , double )
-
-#endif