File: vectorops.h

package info (click to toggle)
biosquid 1.9g%2Bcvs20050121-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,624 kB
  • sloc: ansic: 12,750; sh: 1,412; perl: 243; makefile: 233
file content (37 lines) | stat: -rw-r--r-- 1,517 bytes parent folder | download | duplicates (9)
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
36
37
/* vectorops.h
 * Header file for vectorops.c
 * 
 * SRE, Tue Oct  1 15:23:37 2002 [St. Louis]
 * CVS $Id: vectorops.h,v 1.4 2004/05/24 15:49:07 eddy Exp $
 */

extern void   DSet(double *vec, int n, double value);
extern void   FSet(float *vec, int n, float value);
extern void   DScale(double *vec, int n, double scale);
extern void   FScale(float *vec, int n, float scale);
extern double DSum(double *vec, int n);
extern float  FSum(float *vec, int n);
extern void   DAdd(double *vec1, double *vec2, int n);
extern void   FAdd(float *vec1, float *vec2, int n);
extern void   DCopy(double *vec1, double *vec2, int n);
extern void   FCopy(float *vec1, float *vec2, int n);
extern double DDot(double *vec1, double *vec2, int n);
extern float  FDot(float *vec1, float *vec2, int n);
extern double DMax(double *vec, int n);
extern float  FMax(float *vec, int n);
extern double DMin(double *vec, int n);
extern float  FMin(float *vec, int n);
extern int    DArgMax(double *vec, int n);
extern int    FArgMax(float *vec, int n);
extern int    DArgMin(double *vec, int n);
extern int    FArgMin(float *vec, int n);
extern void   DNorm(double *vec, int n);
extern void   FNorm(float *vec, int n);
extern void   DLog(double *vec, int n);
extern void   FLog(float *vec, int n);
extern void   DExp(double *vec, int n);
extern void   FExp(float *vec, int n);
extern double DLogSum(double *vec, int n);
extern float  FLogSum(float *vec, int n);
extern double DEntropy(double *p, int n);
extern float  FEntropy(float *p, int n);