~ubuntu-branches/ubuntu/feisty/python-numpy/feisty

« back to all changes in this revision

Viewing changes to numpy/doc/swig/series.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-07-12 10:00:24 UTC
  • Revision ID: james.westby@ubuntu.com-20060712100024-5lw9q2yczlisqcrt
Tags: upstream-0.9.8
ImportĀ upstreamĀ versionĀ 0.9.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef SERIES_H
 
2
#define SERIES_H
 
3
 
 
4
/*** One Dimensional Arrays ***/
 
5
 
 
6
/* Examples of functions that take 1D C arrays as input */
 
7
short shortSum( short* series, int size);
 
8
short shortProd(short* series, int size);
 
9
 
 
10
int intSum( int* series, int size);
 
11
int intProd(int* series, int size);
 
12
 
 
13
long longSum( long* series, int size);
 
14
long longProd(long* series, int size);
 
15
 
 
16
float floatSum( float* series, int size);
 
17
float floatProd(float* series, int size);
 
18
 
 
19
double doubleSum( double* series, int size);
 
20
double doubleProd(double* series, int size);
 
21
 
 
22
/* Examples of functions that manipulate 1D C arrays as in-place */
 
23
void intZeros( int* array, int size);
 
24
void intOnes(  int* array, int size);
 
25
void intNegate(int* array, int size);
 
26
 
 
27
void doubleZeros( double* array, int size);
 
28
void doubleOnes(  double* array, int size);
 
29
void doubleNegate(double* array, int size);
 
30
 
 
31
/*** Two Dimensional Arrays ***/
 
32
 
 
33
/* Examples of functions that take 2D arrays as input */
 
34
int intMax(int* matrix, int rows, int cols);
 
35
void intFloor(int* matrix, int rows, int cols, int floor);
 
36
 
 
37
double doubleMax(double* matrix, int rows, int cols);
 
38
void doubleFloor(double* matrix, int rows, int cols, double floor);
 
39
 
 
40
#endif