Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for generic matrix multiplication #25

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

evanmcclure
Copy link
Collaborator

No description provided.

include/nn_dot_product_matrix.h Outdated Show resolved Hide resolved
include/nn_dot_product_matrix.h Outdated Show resolved Hide resolved
//
// The dimensions of the input matrices and the resultant matrix are
// implicitly the same.
void nn_dot_product_matrix(float result[MATRIX_MAX_ROWS][MATRIX_MAX_COLS], const float a[MATRIX_MAX_ROWS][MATRIX_MAX_COLS], const float b[MATRIX_MAX_ROWS][MATRIX_MAX_COLS]);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my previous comment.

src/nn_dot_product matrix.c Outdated Show resolved Hide resolved
src/nn_dot_product matrix.c Outdated Show resolved Hide resolved
Comment on lines 18 to 20
for (int i = 0; i < NN_MATRIX_MAX_ROWS; i++) {
for (int j = 0; j < NN_MATRIX_MAX_COLS; j++) {
for (int k = 0; k < NN_MATRIX_MAX_ROWS; k++) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use the size arguments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants