[math] using new matrix methods in softmax

This commit is contained in:
Al
2017-04-02 23:29:52 -04:00
parent 3aab15a0a0
commit e4ed759f0d

View File

@@ -27,10 +27,8 @@ void softmax_matrix(double_matrix_t *matrix) {
size_t num_rows = matrix->m; size_t num_rows = matrix->m;
size_t num_cols = matrix->n; size_t num_cols = matrix->n;
double *values = matrix->values;
for (int i = 0; i < num_rows; i++) { for (int i = 0; i < num_rows; i++) {
double *values = double_matrix_get_row(matrix, i);
softmax_vector(values, num_cols); softmax_vector(values, num_cols);
values += num_cols;
} }
} }