darknet  v3
Functions
matrix.c File Reference
#include "matrix.h"
#include "utils.h"
#include "blas.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

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

Function Documentation

◆ copy_matrix()

matrix copy_matrix ( matrix  m)

Definition at line 77 of file matrix.c.

◆ csv_to_matrix()

matrix csv_to_matrix ( char *  filename)

Definition at line 133 of file matrix.c.

◆ free_matrix()

void free_matrix ( matrix  m)

Definition at line 10 of file matrix.c.

◆ hold_out_matrix()

matrix hold_out_matrix ( matrix m,
int  n 
)

Definition at line 104 of file matrix.c.

◆ make_matrix()

matrix make_matrix ( int  rows,
int  cols 
)

Definition at line 91 of file matrix.c.

◆ matrix_add_matrix()

void matrix_add_matrix ( matrix  from,
matrix  to 
)

Definition at line 66 of file matrix.c.

◆ matrix_to_csv()

void matrix_to_csv ( matrix  m)

Definition at line 161 of file matrix.c.

◆ matrix_topk_accuracy()

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

Definition at line 17 of file matrix.c.

◆ pop_column()

float* pop_column ( matrix m,
int  c 
)

Definition at line 119 of file matrix.c.

◆ print_matrix()

void print_matrix ( matrix  m)

Definition at line 174 of file matrix.c.

◆ resize_matrix()

matrix resize_matrix ( matrix  m,
int  size 
)

Definition at line 47 of file matrix.c.

◆ scale_matrix()

void scale_matrix ( matrix  m,
float  scale 
)

Definition at line 37 of file matrix.c.