10 |
|
#include "rmatrix.h" |
11 |
|
#include "platform.h" |
12 |
|
|
13 |
+ |
#ifndef MAXCOMP |
14 |
|
#define MAXCOMP MAXCSAMP /* #components we support */ |
15 |
+ |
#endif |
16 |
|
|
17 |
|
/* Unary matrix operation(s) */ |
18 |
|
typedef struct { |
345 |
|
} |
346 |
|
} |
347 |
|
if (rop->preop.transpose) { /* transpose matrix? */ |
348 |
< |
mres = rmx_transpose(rop->mtx); |
347 |
< |
if (mres == NULL) { |
348 |
> |
if (!rmx_transpose(rop->mtx)) { |
349 |
|
fputs(rop->inspec, stderr); |
350 |
|
fputs(": transpose failed\n", stderr); |
351 |
|
goto failure; |
354 |
|
fputs(rop->inspec, stderr); |
355 |
|
fputs(": transposed rows and columns\n", stderr); |
356 |
|
} |
356 |
– |
rmx_free(rop->mtx); |
357 |
– |
rop->mtx = mres; |
357 |
|
} |
358 |
|
mres = rop->mtx; |
359 |
|
rop->mtx = NULL; |