powered by
Test to make sure that matricies are the right size
test_mat_size(correct_size, mat, name)
the correct size of a matrix
The matrix to test.
The name of the matrix as a string.
test_mat_size(c(2,3),zeros(2,3),"foo") if (FALSE) { test_mat_size(c(2,3),zeros(2,6),"foo") } test_mat_size(c(1,3),c(2,6,7),"foo")
Run the code above in your browser using DataLab