Macaulay2 Engine
Loading...
Searching...
No Matches

◆ elem()

int tableau2::elem ( int x,
int y ) const
private

Definition at line 39 of file schur2.cpp.

40{
41 // slow: only used for debugging
42 for (int i = 1; i <= wt; i++)
43 if (xloc[i] == x && yloc[i] == y) return i;
44
45 // otherwise perhaps throw an error
46 fprintf(stderr, "tableau2: location (%d,%d) out of range\n", x, y);
47 return 0;
48}
int * xloc
Definition schur2.hpp:62
int * yloc
Definition schur2.hpp:64
int wt
Definition schur2.hpp:59
volatile int x

References wt, x, xloc, and yloc.

Referenced by display().