#include "utils_tests.h"
{
for ( i = 0; i < mat->
height; i++ ) {
for ( j = 0; j < mat->
length; j++ ) {
assert(mat->
data[i][j] == scalar);
}
}
}
int main (void)
{
uint_t height = 3, length = 9;
assert(mat);
assert(other_mat);
assert(mat->
length == length);
assert(mat->
height == height);
for (i = 0; i < mat->
height; i++) {
for (j = 0; j < mat->
length; j++) {
assert(mat->
data[i][j] == 0);
mat->
data[i][j] = i * 10. + j;
}
}
for (i = 0; i < mat->
height; i++) {
for (j = 0; j < mat->
length; j++) {
assert(mat->
data[i][j] == i * 10. + mat->
length - 1. - j);
}
}
assert_fmat_all_equal(mat, 1.);
assert_fmat_all_equal(other_mat, .5);
assert_fmat_all_equal(mat, .5);
fvec_t *channel = &channel_onstack;
other_mat =
new_fmat(height - 1, length);
other_mat =
new_fmat(height, length + 1);
if (mat)
if (other_mat)
return 0;
}