close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 21 years ago

Closed 21 years ago

Last modified 18 years ago

#102 closed defect (fixed)

Matrix definition

Reported by: jlaybar Owned by: danirus
Priority: normal Milestone:
Component: Kernel Version: head
Severity: normal Keywords:
Cc:

Description

Matrix a1 = Col(1,-1,0,0,0,0);
-----------------------------------------------------
Matrix a2 = ((1,-1,0,0,0,0));
Don´t work
---------------------------------------------

Matrix a3 = ((1,0),(0,1)); Work

Change History (3)

comment:1 Changed 21 years ago by danirus

Status: newassigned
Summary: Matrix definition Matrix definition

The problem isn't the sentence declaration based on two parenthesis. The problem
appears when we use negative values under that form. You can try it with:

Matrix a2 = ((1,2,3,4));

It works, but if some of those values were negative, the error appears.

I have accepted the error. I tell you something soon.

comment:2 Changed 21 years ago by danirus

Resolution: fixed
Status: assignedclosed

This bug has just been resolved.
The problem was a bad interpretation of the lenght of syntactical tree received
as argument in EvaluateMatrix function of graimp.cpp.

Matrix a = ((1,1)); this works
Matrix b = ((1,-1));
Also this works
Matrix c = ((1,-1),(-1,1)); and this works too
Matrix d = ((3));
but this doesn't work because it considered a Real
Instead of last form, use this other:
Matrix d = Col(3);

Tschüss!

comment:3 Changed 18 years ago by Víctor de Buen Remiro

bug_file_loc: http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000102
Note: See TracTickets for help on using tickets.