My Project
 All Classes Functions Variables Pages
array.h
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <cmath>
4 
5 /*Array-Handling*/
6 void alloc_array(double*** array, int dim1, int dim2);
7 double** alloc_array(int dim1, int dim2);
8 int** alloc_iarray(int dim1, int dim2);
9 void alloc_array(double*** array, int dim1, int* dim2);
10 double** alloc_array(int dim1, int* dim2);
11 void free_array(double*** array, int dim1);
12 void scale(double* array, int dim, double factor);
13 void init_array(double** array, int dim1, int dim2, double value);
14 void init_array(double* array, int dim, double value);
15 void init_array(int* array, int dim, int value);
16 double max_array(double* array, int dim);
17 double min_array(double* array, int dim);
18 void sum(double a, double* x, double* b, double* y, int cpara);
19 void clone(double** dest, double* src, int dim);
20 void copy(double* dest, double* src, int dim);
21 void sort(double* data,int s, int e);
22 void sort(double** data,int s, int e);
23 double norm(double* array, int dim);
24 void normalize(double* array, int dim);
25 double mean(double* d, int istart, int iend);
26