N-dimensional representation of arrays are quite straightforward with XML
too. Is there any incentive to expect better performances with a JSON
matrix representation rather than an XML one ?

@Ihe Storing N-dim arrays with 1-D ones, as you quoted, is used since
decades in others languages. It is very well adapted to some particular
scientific computing. But for matrix operations, it might not be so well
adapted (I don't know an example of a linear algebra library using such
structures). Indeed, for "complex" linear algebra operations, one needs
very often to take matrix "slices" in every dimensions, an operation for
which these kind of Multi-D structures might not be very efficient at.

Hope this helps


2014-02-02 Ihe Onwuka <[email protected]>:

> On Sat, Feb 1, 2014 at 11:33 PM, Hermann Stamm-Wilbrandt
> <[email protected]> wrote:
> >
> > Last Sylvester there was a thread on Matrix Multiplication in XQuery:
> >
> http://markmail.org/message/7q7qnbbnjo7cljzv?q=list:com.x-query.talk+matrix
> > +multiplication
> >
> > The biggest problem identified was that XQuery does not allow for
> efficient
> > representation of 2+dimensional arrays.
> >
> > JSON does provide 2+dimensional arrays for free.
> >
>
> I gave an algorithm for representing n-dimensional arrays with a 1
> dimensional array earlier in the thread.
>
> See my post of 31 Dec 2013 here.
>
>
> http://markmail.org/message/dkhw7ryirwyviqm3#query:+page:1+mid:ccipumgobpaljjao+state:results
> _______________________________________________
> [email protected]
> http://x-query.com/mailman/listinfo/talk
>
_______________________________________________
[email protected]
http://x-query.com/mailman/listinfo/talk

Reply via email to