summaryrefslogtreecommitdiff
path: root/doc/swig/test/Tensor.h
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2014-03-12 11:19:40 -0600
committerCharles Harris <charlesr.harris@gmail.com>2014-03-12 11:26:48 -0600
commita38888c18cd2a20de0eb0578b3fa8660cda79582 (patch)
tree4f0590684328a013544de84b1577f9322db4cbac /doc/swig/test/Tensor.h
parent4fd4850d6b8bb9a8837e19b7ef2b38d0cd67fdd1 (diff)
downloadnumpy-a38888c18cd2a20de0eb0578b3fa8660cda79582.tar.gz
MAINT: Move doc/swig to tools/swig.
Also update MANIFEST.in and documentation to reflect the move. The discussion of this change is at #2384. Closes #2384. Closes #4374.
Diffstat (limited to 'doc/swig/test/Tensor.h')
-rw-r--r--doc/swig/test/Tensor.h52
1 files changed, 0 insertions, 52 deletions
diff --git a/doc/swig/test/Tensor.h b/doc/swig/test/Tensor.h
deleted file mode 100644
index 1f483b328..000000000
--- a/doc/swig/test/Tensor.h
+++ /dev/null
@@ -1,52 +0,0 @@
-#ifndef TENSOR_H
-#define TENSOR_H
-
-// The following macro defines the prototypes for a family of
-// functions that work with 3D arrays with the forms
-//
-// TYPE SNAMENorm( TYPE tensor[2][2][2]);
-// TYPE SNAMEMax( TYPE * tensor, int slices, int rows, int cols);
-// TYPE SNAMEMin( int slices, int rows, int cols, TYPE * tensor);
-// void SNAMEScale( TYPE array[3][3][3]);
-// void SNAMEFloor( TYPE * array, int slices, int rows, int cols, TYPE floor);
-// void SNAMECeil( int slices, int rows, int cols, TYPE * array, TYPE ceil );
-// void SNAMELUSplit(TYPE in[3][3][3], TYPE lower[3][3][3], TYPE upper[3][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:
-//
-// * 3D input arrays, hard-coded lengths
-// * 3D input arrays
-// * 3D input arrays, data last
-// * 3D in-place arrays, hard-coded lengths
-// * 3D in-place arrays
-// * 3D in-place arrays, data last
-// * 3D argout arrays, hard-coded length
-//
-#define TEST_FUNC_PROTOS(TYPE, SNAME) \
-\
-TYPE SNAME ## Norm( TYPE tensor[2][2][2]); \
-TYPE SNAME ## Max( TYPE * tensor, int slices, int rows, int cols); \
-TYPE SNAME ## Min( int slices, int rows, int cols, TYPE * tensor); \
-void SNAME ## Scale( TYPE array[3][3][3], TYPE val); \
-void SNAME ## Floor( TYPE * array, int slices, int rows, int cols, TYPE floor); \
-void SNAME ## Ceil( int slices, int rows, int cols, TYPE * array, TYPE ceil ); \
-void SNAME ## LUSplit(TYPE tensor[2][2][2], TYPE lower[2][2][2], TYPE upper[2][2][2]);
-
-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