10 |
|
#include "rmatrix.h" |
11 |
|
#include "platform.h" |
12 |
|
|
13 |
– |
#define MAXCOMP MAXCSAMP /* #components we support */ |
14 |
– |
|
13 |
|
/* Unary matrix operation(s) */ |
14 |
|
typedef struct { |
15 |
|
double cmat[MAXCOMP*MAXCOMP]; /* component transformation */ |
341 |
|
} |
342 |
|
} |
343 |
|
if (rop->preop.transpose) { /* transpose matrix? */ |
344 |
< |
mres = rmx_transpose(rop->mtx); |
347 |
< |
if (mres == NULL) { |
344 |
> |
if (!rmx_transpose(rop->mtx)) { |
345 |
|
fputs(rop->inspec, stderr); |
346 |
|
fputs(": transpose failed\n", stderr); |
347 |
|
goto failure; |
350 |
|
fputs(rop->inspec, stderr); |
351 |
|
fputs(": transposed rows and columns\n", stderr); |
352 |
|
} |
356 |
– |
rmx_free(rop->mtx); |
357 |
– |
rop->mtx = mres; |
353 |
|
} |
354 |
|
mres = rop->mtx; |
355 |
|
rop->mtx = NULL; |