Removing uneccessary files.

This commit is contained in:
Jostein R. Natvig 2009-06-25 11:44:10 +00:00
parent 89e23f883f
commit 3e0e7b0c90
3 changed files with 0 additions and 32 deletions

View File

@ -1,24 +0,0 @@
#include <stdlib.h>
#include "matalloc.h"
double **dmatalloc(int m, int n)
{
double **ret = malloc(m*sizeof *ret);
ret[0] = malloc(m*n*sizeof *ret[0]);
int i;
for (i=1; i<m; ++i) {
ret[i] = ret[i-1]+n*sizeof *ret[0];
}
return ret;
}
int **imatalloc(int m, int n)
{
int **ret = malloc(m*sizeof *ret);
ret[0] = malloc(m*n*sizeof *ret[0]);
int i;
for (i=1; i<m; ++i) {
ret[i] = ret[i-1]+n*sizeof *ret[0];
}
return ret;
}

View File

@ -1,7 +0,0 @@
#ifndef MATALLOC_H_
#define MATALLOC_H
double **dmatalloc(int m, int n);
int **imatalloc(int m, int n);
#endif

View File

@ -43,7 +43,6 @@ along with OpenRS. If not, see <http://www.gnu.org/licenses/>.
#include "sparsetable.h"
#include "preprocess.h"
#include "uniquepoints.h"
#include "matalloc.h"
#define min(i,j) ((i)<(j) ? (i) : (j))
#define max(i,j) ((i)>(j) ? (i) : (j))