Opened 13 years ago

Closed 13 years ago

#253 closed bug (fixed)

intvec of size 1 is not compatible with int

Reported by: Oleksandr Owned by: somebody
Priority: trivial Milestone: 3-1-2 and higher
Component: singular-libs Version: 3-1-1
Keywords: intvec, int, interpretor Cc: hannes, Lars Kastner <kastner@…>


Dear Team,

Lars Kastner from Berlin has found the following glitch in Singular interpreter:

intvec v =1;
intmat m[1][3]=1,2,3;


   ? `int` = `intvec` is not supported
   ? expected `int` = `int`
   ? error occurred in or before STDIN line 3: `m[1..1,1]=v;`

Should Singular users work around this problem themselves or should we allow these conversions?

I propose the later which would be compatible with the following:

ring r;
vector V = -1;
matrix M[1][3]=1,2,3;
M[1..1,1] = V;

which works like charm!

Change History (1)

comment:1 Changed 13 years ago by hannes

Resolution: fixed
Status: newclosed

fixed (missing case implemented).

Note: See TracTickets for help on using tickets.