Read-only forum archive

test function in Singular

test function in Singular

vinay · Thu Apr 11, 2019 11:38 am

Continuing with my previous post ...
It seems Singular already has a command named test. `grep` on source code shows that this funtion is defined in:
Quote:
Singular_SRC_path/Sources/Singular/ipshell.cc


The function doesnt seem to be documented.

Wonder what this function does...

-- VInay

Re: test function in Singular

hannes · Thu Apr 11, 2019 4:38 pm

Singular has the option command which internally set/clears bits in a 64bit vector.
(Not all of the bits have names).
test as a command allows to access these bits by there number instead of their name - undocumented, as these changes all the time and should not be used.
(And it is defined in Singular/table.h: "test" -> TEST_CMD->jjTEST
and jjTEST (which gets called) is in Singular/iparith.cc)