Hello,
I'm currently trying to use ASDoubleMatrix but I may use them in a wrong way. But for now I'm getting a segmentation fault with a simple code like this :
ASDoubleMatrix a = {0}, b = {0};
a.a = 1.f;
a.b = 1.f;
a.c = 1.f;
a.d = 1.f;
a.h = 1.f;
a.v = 1.f;
b.a = 1.f;
b.b = 1.f;
b.c = 1.f;
b.d = 1.f;
b.h = 1.f;
b.v = 1.f;
printf("Matrix 'a' (%p) has .a = %f, .b = %f, .c = %f, .d = %f, .h = %f, .v = %f\n",
&a, a.a, a.b, a.c, a.d, a.h, a.v);
printf("Matrix 'b' (%p) has .a = %f, .b = %f, .c = %f, .d = %f, .h = %f, .v = %f\n",
&b, b.a, b.b, b.c, b.d, b.h, b.v);
printf("Start multiply DoubleMatrix\n");
ASDoubleMatrixConcat(&a, &a, &b);
printf("End multiply DoubleMatrix\n");
printf("Result matrix (%p) has .a = %f, .b = %f, .c = %f, .d = %f, .h = %f, .v = %f\n",
&a, a.a, a.b, a.c, a.d, a.h, a.v);
the output I'm current having is like this :
Matrix 'a' (0xffaba488) has .a = 1.000000, .b = 1.000000, .c = 1.000000, .d = 1.000000, .h = 1.000000, .v = 1.000000
Matrix 'b' (0xffaba458) has .a = 1.000000, .b = 1.000000, .c = 1.000000, .d = 1.000000, .h = 1.000000, .v = 1.000000
Start multiply DoubleMatrix
Segmentation fault
I'm on Linux and using Adobe PDFL.
Can someone point me to where is my mistake ?
North America
Europe, Middle East and Africa
Asia Pacific