Skip navigation
A PDFL user
Currently Being Moderated

ASDoubleMatrix doesn't work ?

Jun 22, 2012 1:24 AM

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 ?

 
Replies
  • Currently Being Moderated
    Jun 22, 2012 5:34 AM   in reply to A PDFL user

    Since you are a PDFL customer, you should contact either Datalogics or Adobe directly for support.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points