MatrixOptions - Maple Programming Help

MatrixOptions

display or set of Matrix options

VectorOptions

display or set Vector options

 Calling Sequence MatrixOptions(A, opt1, opt2, ...) VectorOptions(V, opt1, opt2, ...)

Parameters

 A - Matrix V - Vector opt1, opt2, ... - (optional) option name or equation of the form option = value

Description

 • The MatrixOptions(A) function returns an expression sequence of equations consisting of the option names and their values for Matrix A.
 If an option (other than shape) is not set, no value is returned.  If A has no shape, shape=[] is returned.
 The MatrixOptions(A, opt1, opt2, ...) function, where each opti is an option name, returns an expression sequence of equations indicating only the values of each opti specified in the calling sequence.
 The MatrixOptions(A, opt1, opt2, ...) function, where each opti is an equation of the form option = value, assigns each specified option opti of A the indicated value (if possible). The following Matrix options cannot be changed by using this method: dimensions, datatype, shape, and storage. The readonly option may be set, but once it is set it cannot be unset (unsetting requires a copy operation).
 • The VectorOptions(A) and VectorOptions(A, opt1, opt2, ...) functions operate in a similar manner.
 • For information regarding permissible options in Matrices and Vectors, see the Matrix and Vector constructor pages.

Examples

 > $A≔⟨⟨1,2,3⟩|⟨4,5,6⟩|⟨7,8,9⟩|⟨10,11,12⟩⟩$
 ${A}{≔}\left[\begin{array}{rrrr}{1}& {4}& {7}& {10}\\ {2}& {5}& {8}& {11}\\ {3}& {6}& {9}& {12}\end{array}\right]$ (1)
 > $\mathrm{MatrixOptions}\left(A\right)$
 ${\mathrm{shape}}{=}\left[{}\right]{,}{\mathrm{datatype}}{=}{\mathrm{anything}}{,}{\mathrm{storage}}{=}{\mathrm{rectangular}}{,}{\mathrm{order}}{=}{\mathrm{Fortran_order}}$ (2)
 > $\mathrm{MatrixOptions}\left(A,\mathrm{shape},\mathrm{datatype}\right)$
 $\left[{}\right]{,}{\mathrm{anything}}$ (3)
 > $\mathrm{MatrixOptions}\left(A,\mathrm{readonly}=\mathrm{true},\mathrm{order}=\mathrm{C_order}\right)$
 > $\mathrm{MatrixOptions}\left(A\right)$
 ${\mathrm{shape}}{=}\left[{}\right]{,}{\mathrm{datatype}}{=}{\mathrm{anything}}{,}{\mathrm{storage}}{=}{\mathrm{rectangular}}{,}{\mathrm{order}}{=}{\mathrm{C_order}}{,}{\mathrm{readonly}}$ (4)
 > $V≔⟨1,2,3⟩$
 ${V}{≔}\left[\begin{array}{r}{1}\\ {2}\\ {3}\end{array}\right]$ (5)
 > $\mathrm{VectorOptions}\left(V\right)$
 ${\mathrm{shape}}{=}\left[{}\right]{,}{\mathrm{datatype}}{=}{\mathrm{anything}}{,}{\mathrm{orientation}}{=}{\mathrm{column}}{,}{\mathrm{storage}}{=}{\mathrm{rectangular}}{,}{\mathrm{order}}{=}{\mathrm{Fortran_order}}$ (6)
 > $\mathrm{VectorOptions}\left(V,\mathrm{orientation}=\mathrm{row}\right)$
 > $V$
 $\left[\begin{array}{ccc}{1}& {2}& {3}\end{array}\right]$ (7)