~martijnbraam/megapixels

3408d6262d84742a22b4f3ea8cb600b09a62dc0f — Martijn Braam 1 year, 2 months ago 4cf16a5
Add debug function to print matrices
1 files changed, 7 insertions(+), 0 deletions(-)

M src/matrix.c
M src/matrix.c => src/matrix.c +7 -0
@@ 1,3 1,10 @@
void print_matrix(float m[9])
{
	printf(" [%.2f  %.2f  %.2f] \n", m[0], m[1], m[2]);
	printf(" [%.2f  %.2f  %.2f] \n", m[3], m[4], m[5]);
	printf(" [%.2f  %.2f  %.2f] \n\n", m[6], m[7], m[8]);
}

void
multiply_matrices(float a[9], float b[9], float out[9])
{