XSL-FO - WordML - XSLT

Vectors and matrices

(Excerpt from "The MathML Handbook" by Pavi Sandhu)

The vector element is used to represent vectors. A vector from an n-dimensional vector space is represented by a vector element that contains n child elements, each of which represents one scalar component of the vector. For example, a three-dimensional vector, (1, 0, 2), can be represented as shown below:

``````<vector>
<cn>1</cn>
<cn>0</cn>
<cn>2</cn>
</vector>
``````

The matrix element is used to represent matrices. It contains zero or more matrixrow elements, each of which represents a single row of the matrix. Every matrixrow element, in turn, has zero or more child elements, each of which must be a number, symbol, or algebraic expression. For example, the 3 x 3 identity matrix can be represented as shown below:

``````<matrix>
<matrixrow>
<cn>1</cn><cn>0</cn><cn>0</cn>
</matrixrow>
<matrixrow>
<cn>0</cn><cn>1</cn><cn>0</cn>
</matrixrow>
<matrixrow>
<cn>0</cn><cn>0</cn><cn>1</cn>
</matrixrow>
</matrix>
``````