Functions
matrix.c File Reference
#include "matrix.h"
#include "utils.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
Include dependency graph for matrix.c:

Go to the source code of this file.

Functions

matrix csv_to_matrix (char *filename)
void free_matrix (matrix m)
matrix hold_out_matrix (matrix *m, int n)
matrix make_matrix (int rows, int cols)
void matrix_add_matrix (matrix from, matrix to)
void matrix_to_csv (matrix m)
float matrix_topk_accuracy (matrix truth, matrix guess, int k)
float * pop_column (matrix *m, int c)
void print_matrix (matrix m)
matrix resize_matrix (matrix m, int size)
void scale_matrix (matrix m, float scale)

Function Documentation

matrix csv_to_matrix ( char *  filename)

Definition at line 118 of file matrix.c.

void free_matrix ( matrix  m)

Definition at line 9 of file matrix.c.

matrix hold_out_matrix ( matrix m,
int  n 
)

Definition at line 89 of file matrix.c.

matrix make_matrix ( int  rows,
int  cols 
)

Definition at line 76 of file matrix.c.

void matrix_add_matrix ( matrix  from,
matrix  to 
)

Definition at line 65 of file matrix.c.

void matrix_to_csv ( matrix  m)

Definition at line 146 of file matrix.c.

float matrix_topk_accuracy ( matrix  truth,
matrix  guess,
int  k 
)

Definition at line 16 of file matrix.c.

float* pop_column ( matrix m,
int  c 
)

Definition at line 104 of file matrix.c.

void print_matrix ( matrix  m)

Definition at line 159 of file matrix.c.

matrix resize_matrix ( matrix  m,
int  size 
)

Definition at line 46 of file matrix.c.

void scale_matrix ( matrix  m,
float  scale 
)

Definition at line 36 of file matrix.c.



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