matrix.h
Go to the documentation of this file.
00001 #ifndef MATRIX_H
00002 #define MATRIX_H
00003 typedef struct matrix{
00004     int rows, cols;
00005     float **vals;
00006 } matrix;
00007 
00008 matrix make_matrix(int rows, int cols);
00009 void free_matrix(matrix m);
00010 void print_matrix(matrix m);
00011 
00012 matrix csv_to_matrix(char *filename);
00013 void matrix_to_csv(matrix m);
00014 matrix hold_out_matrix(matrix *m, int n);
00015 float matrix_topk_accuracy(matrix truth, matrix guess, int k);
00016 void matrix_add_matrix(matrix from, matrix to);
00017 void scale_matrix(matrix m, float scale);
00018 matrix resize_matrix(matrix m, int size);
00019 
00020 float *pop_column(matrix *m, int c);
00021 
00022 #endif


rail_object_detector
Author(s):
autogenerated on Sat Jun 8 2019 20:26:30