someone wrote:
> 
> Are you interested in including the extension and
> documentation of matrix slicing done in [1]?
> If yes I'd finish the documentation part as
> soon as possible.
> 
> [1]: https://github.com/raoulb/fricas/tree/twodimarraydoc

I am thinking about this.  I am a bit worried because
if we would like another form of indexong number of
combinations may get large.  So I consider alternative
of sort

LSI => List Segment Integer
IndexType ....
   autoCoerce(LSI) -> %
   -- maybe just coerce, would need to experiment to find
   -- out which one gives better behaviour
   autoCoerce(SI) -> %
   -- maybe other variants
   convert : (%, Integer, Integer) -> LSI
   -- extra arguments to represent lower and upper bound
   -- for matrix indices, needed if we want complement

and then define


   elt : (%, Integer, IndexType)
   elt : (%, IndexType, Integer)
   elt : (IndexType, Integer)

The idea is that interpreter/compiler magic should convert
what needed to IndexType.  I am special casing Integer as
oterwise we would get mismatch with normal array indexing.

It may require tweaking interpreter priorities for choosing
operations.

-- 
                              Waldek Hebisch
[email protected] 

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to