element matrix

element {http://www.xml-cml.org/schema/stmml}matrix

Type Heirarchy
{http://www.w3.org/2001/XMLSchema}string (by extension)
 {http://www.xml-cml.org/schema/stmml}matrix
Abstractfalse (This can be used in an instance)
Nillablefalse (Instance values cannot use xsi:nil)
Target Namespacehttp://www.xml-cml.org/schema/stmml
Declared Namespacesxmlns:sch=http://www.ascc.net/xml/schematron
xmlns:xsd=http://www.w3.org/2001/XMLSchema
xmlns=http://www.xml-cml.org/schema/stmml


Source

<xsd:element name="matrix" id="el.matrix">
    <
xsd:annotation>
        <
xsd:documentation>
            <
div class="summary">A rectangular matrix of any quantities</div>
            <
div class="description">
                <
p>By default
                    
<tt>matrix</tt>
represents
a rectangular matrix of any quantities
representable as XSD or STMML dataTypes. It consists of
                    
<tt>rows*columns</tt>
elements, where
                    
<tt>columns</tt>
is the
fasting moving index. Assuming the elements are counted from 1 they are
ordered
                    
<tt>
V[1,1],V[1,2],...V[1,columns],V[2,1],V[2,2],...V[2,columns],
...V[rows,1],V[rows,2],...V[rows,columns]
                    
</tt>
                </
p>
                <
p>By default whitespace is used to separate matrix elements; see
                    
<a href="el.array">array</a>
for details. There are NO characters or markup
delimiting the end of rows; authors must be careful!. The
                    
<tt>columns</tt>
and
                    
<tt>rows</tt>
attributes have no default values; a row vector requires
a
                    
<tt>rows</tt>
attribute of 1.
</p>
                <
p>
                    <
tt>matrix</tt>
also supports many types of square matrix, but at present we
require all elements to be given, even if the matrix is symmetric, antisymmetric
or banded diagonal. The
                    
<tt>matrixType</tt>
attribute allows software to
validate and process the type of matrix.
                
</p>
            </
div>
            <
div class="example">
                <
pre>
<matrix id="m1" title="mattrix-1" dictRef="foo:bar"
rows="3" columns="3" dataType="xsd:decimal"
delimiter="|" matrixType="squareSymmetric" units="unit:m"
>|1.1|1.2|1.3|1.2|2.2|2.3|1.3|2.3|3.3!</matrix>
                
</pre>
            </
div>
        </
xsd:documentation>
    </
xsd:annotation>
    <
xsd:complexType>
        <
xsd:simpleContent>
            <
xsd:extension base="xsd:string">
                <
xsd:attribute name="dataType" type="dataTypeType" use="required"
                    
id="att.matrix.dataType"/>
                <
xsd:attribute name="delimiter" type="delimiterType" id="att.matrix.delimiter"/>
                <
xsd:attribute name="rows" type="sizeType" use="required">
                    <
xsd:annotation>
                        <
xsd:documentation>
                            <
div class="summary">
                                <
p>Number of rows</p>
                            </
div>
                        </
xsd:documentation>
                    </
xsd:annotation>
                </
xsd:attribute>
                <
xsd:attribute name="columns" type="sizeType" use="required" id="att.matrix.columns">
                    <
xsd:annotation>
                        <
xsd:documentation>
                            <
div class="summary">
                                <
p>Number of columns</p>
                            </
div>
                        </
xsd:documentation>
                    </
xsd:annotation>
                </
xsd:attribute>
                <
xsd:attribute name="units" type="unitsType" id="att.matrix.units">
                    <
xsd:annotation>
                        <
xsd:documentation>
                            <
div class="summary">
                                <
p>units (recommended for numeric quantities!!)</p>
                            </
div>
                        </
xsd:documentation>
                    </
xsd:annotation>
                </
xsd:attribute>
                <
xsd:attributeGroup ref="tit_id_conv_dictGroup"/>
                <
xsd:attribute name="matrixType" type="matrixType" id="att.matrix.matrixType">
                    <
xsd:annotation>
                        <
xsd:documentation>
                            <
div class="summary">Type of matrix</div>
                            <
div class="description">Mainly square, but extensible through the
                                
<tt>xsd:union</tt>
mechanism.
</div>
                        </
xsd:documentation>
                    </
xsd:annotation>
                </
xsd:attribute>
                <
xsd:attribute name="errorValues" type="floatArrayType" id="att.matrix.errorValues">
                    <
xsd:annotation>
                        <
xsd:documentation>
                            <
div class="summary">an optional array of error values for numeric matrices</div>
                        </
xsd:documentation>
                    </
xsd:annotation>
                </
xsd:attribute>
                <
xsd:attributeGroup ref="errorBasis"/>
                <
xsd:attribute name="minValues" type="floatArrayType" id="att.matrix.minValues">
                    <
xsd:annotation>
                        <
xsd:documentation>
                            <
div class="summary">an optional array of minimum values for numeric matrices</div>
                        </
xsd:documentation>
                    </
xsd:annotation>
                </
xsd:attribute>
                <
xsd:attribute name="maxValues" type="floatArrayType" id="att.matrix.maxValues">
                    <
xsd:annotation>
                        <
xsd:documentation>
                            <
div class="summary">an optional array of maximum values for numeric matrices</div>
                        </
xsd:documentation>
                    </
xsd:annotation>
                </
xsd:attribute>
            </
xsd:extension>
        </
xsd:simpleContent>
    </
xsd:complexType>
</
xsd:element>


Documentation

A rectangular matrix of any quantities

By default matrix represents a rectangular matrix of any quantities representable as XSD or STMML dataTypes. It consists of rows*columns elements, where columns is the fasting moving index. Assuming the elements are counted from 1 they are ordered V[1,1],V[1,2],...V[1,columns],V[2,1],V[2,2],...V[2,columns], ...V[rows,1],V[rows,2],...V[rows,columns]

By default whitespace is used to separate matrix elements; see array for details. There are NO characters or markup delimiting the end of rows; authors must be careful!. The columns and rows attributes have no default values; a row vector requires a rows attribute of 1.

matrix also supports many types of square matrix, but at present we require all elements to be given, even if the matrix is symmetric, antisymmetric or banded diagonal. The matrixType attribute allows software to validate and process the type of matrix.

<matrix id="m1" title="mattrix-1" dictRef="foo:bar"
  rows="3" columns="3" dataType="xsd:decimal"
  delimiter="|" matrixType="squareSymmetric" units="unit:m"
  >|1.1|1.2|1.3|1.2|2.2|2.3|1.3|2.3|3.3!</matrix>
        


element matrix


Stylus Studio XML Schema Library Home
Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio®, a product from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2006 All Rights Reserved.