Assgn. 4 Correctness

126 views
Skip to first unread message

Trevor Bonas

unread,
Nov 12, 2020, 9:25:00 PM11/12/20
to cmpt-295-sfu

SFU ID: 301294664
Github username: trevorbonas
Github link: N/A
Line and file: N/A
Expected behavior: N/A
Observed behavior: N/A
Question: In the output of test-trans does a correctness of 1 mean B is the transpose of A?

I've been trying to get is_transpose to work to check if I'm transposing correctly but any printfs I put in the function don't actually print anywhere.

Thanks

Arrvindh Shriraman

unread,
Nov 13, 2020, 4:02:17 PM11/13/20
to cmpt-295-sfu
We give you is_transpose.

Trevor Bonas

unread,
Nov 13, 2020, 5:01:49 PM11/13/20
to cmpt-295-sfu
Like I said, I've been trying to get is_transpose to work to check if I'm transposing correctly but any printfs I put in the function don't actually print anywhere.

Trevor Bonas

unread,
Nov 13, 2020, 7:21:05 PM11/13/20
to cmpt-295-sfu
If anyone is reading this and having trouble with is_transpose like I was the solution is to use an assertion rather than printfs (assert(is_transpose(M, N, A, B) == 1)).

ashrir...@gmail.com

unread,
Nov 13, 2020, 9:00:21 PM11/13/20
to cmpt-295-sfu
aah; sorry misinterpreted it.
Reply all
Reply to author
Forward
0 new messages