#include "matrix.h"#include "utils.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include <assert.h>#include <math.h>
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) |
| 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 | ||
| ) |