Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Matrix library in C
9 changes: 9 additions & 0 deletions src/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,15 @@ void mtxPrint (MTXMatrix self) {
}
}

unsigned int mtxGetRowNum(MTXMatrix self)
{
return self->rows;
}

unsigned int mtxGetColNum(MTXMatrix self)
{
return self->columns;
}
/* ========================================================================== */

#endif
Expand Down
2 changes: 2 additions & 0 deletions src/matrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ MTXMatrix mtxGetRotationMatrix(MTXMatrix self, unsigned i, unsigned j);
MTXMatrix mtxGetEigenvalues (MTXMatrix self, double tolerance);

void mtxPrint (const MTXMatrix self);
unsigned int mtxGetRowNum(MTXMatrix self);
unsigned int mtxGetColNum(MTXMatrix self);

/* ========================================================================== */

Expand Down