ApCoCoALib:Convert
User Documentation for convert
[Parts of this documentation are taken from the CoCoALib documentation file "doc/convert.txt" written by John Abbott.]
The header file [convert.H] supplies several conversion functions between (Ap)CoCoALib and LinBox objects. All the conversion functions are called [convert]; they attempt to assign the value of the second argument to the first argument. If the attempt succeeds, they return [true], otherwise they return [false]. The value of the first argument may be modified even when [false] is returned. Note that you have to enable LinBox support in your [lib.config] to make these conversion functions available.
Here is a summary of the conversion currently offered:
"to" type "from" type notes LinBox::PID_integer CoCoA::RingElem CoCoA::RingElem owner must be CoCoA::RingZ LinBox::integer CoCoA::ZZ LinBox::DenseMatrix< CoCoA::matrix Matrix must be defined over LinBox::Modular<LinB CoCoA::NewZmod ox::int32> >
Maintenance notes for convert
...
Bugs, Shortcomings, etc
The [convert] function CoCoA::ZZ -> LinBox::integer always returns [true] at the moment.