sarkit.crsd.MtxType

class MtxType(shape)

Transcoder for MTX XML parameter types containing a matrix.

Attributes:
shapetuple of (int, int)

Expected shape of the matrix.

Methods

make_elem(tag, val)

Create a new XML element.

parse_elem(elem)

Returns an array containing the matrix encoded in elem.

set_elem(elem, val)

Set elem node using val.