On Wed, Feb 25, 2026 at 07:15:47PM +0100, Grégory Vanuxem wrote:
> Hello,
>
> Consider this:
>
> (1) -> a:=nrand(4,4)
>
> (1)
>
> -0.863933 0.621559 -1.32229 -0.890806
> -0.612494 -1.59226 1.98657 -0.269779
> 0.747213 0.700417 0.44448 -1.22057
> 0.540618 0.445654 -0.694296 1.52915
> Type: JLFloat64Matrix
> Time: 0 sec
> (2) -> a(1,3)
>
> (2) -1.3222918354742483
> Type: JLFloat64
> Time: 0 sec
>
> It is an "automatic" indexing operator acting like a function if I can
> think like this.
TwoDimensionalArrayCategory array category declares:
elt : (%, Integer, Integer) -> R
If your JLFloat64Matrix inherits from TwoDimensionalArrayCategory
and implements 'elt', then it will work as above.
Add 'elt' to your domain.
--
Waldek Hebisch