This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 24969 - Functions to support manipulation of matrices
Summary: Functions to support manipulation of matrices
Status: NEW
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Requirements for Future Versions (show other bugs)
Version: Working drafts
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Jim Melton
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-07 13:02 UTC by Andrew Coleman
Modified: 2014-03-07 13:02 UTC (History)
0 users

See Also:


Attachments

Description Andrew Coleman 2014-03-07 13:02:03 UTC
XPath/XQuery 3.0 added support for arrays, including functions to create and manipulate them.  A future version should consider adding functions to support matrix operations.

Typical operations would be:
- creating n x m matrix (2-dimensional array)
- submatrix (splitting)
- transpose
- matrix addition
- matric multiplication
- scalar operations (addition/subtraction/multiplication etc of each entry)

A few use cases:
- representing graphs (edges, adjacency etc)
- computer graphics (4x4 transformation matrix representing translation, rotation, scaling, perspective/orthogonal projection)
- data structures for probability and statistics
- linear algebra