#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
| Status: | new → assigned |
|---|---|
| Summary: | Matrix definition → Matrix definition |
comment:2 Changed 21 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
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 19 years ago by
| bug_file_loc: | → http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000102 |
|---|

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:
It works, but if some of those values were negative, the error appears.
I have accepted the error. I tell you something soon.