[][src]Module artha::matrix

A 2D Matrix system to make our neural network implementaion easier.

Structs

EmptyMatrixErr

Error thrown when max value of an empty matrix is queried

MSEDimMismatchErr

Error thrown when two matrix with different dimensions are compared

MatMulDimMismatchErr

Error thrown when two matrix with incorrect dimensions are multiplied

Matrix

A 2D generic Matrix with Vec<Vec<T>> as underlying data structure

Functions

mse_diff

Finds the mean squared difference of the matrix with another matrix

sigmoid

Loops through the Matrix and calculates sigmoid of each value.

sigmoid_prime

Loops through the Matrix and calculates sigmoid prime of each value.