AST_MATRIXMAP

Create a MatrixMap

Description:

This function creates a new MatrixMap and optionally initialises its attributes.

A MatrixMap is a form of Mapping which performs a general linear transformation. Each set of input coordinates, regarded as a column-vector, are pre-multiplied by a matrix (whose elements are specified when the MatrixMap is created) to give a new column-vector containing the output coordinates. If appropriate, the inverse transformation may also be performed.

Invocation

RESULT = AST_MATRIXMAP( NIN, NOUT, FORM, MATRIX, OPTIONS, STATUS )

Arguments

NIN = INTEGER (Given)
The number of input coordinates, which determines the number of columns in the matrix.
NOUT = INTEGER (Given)
The number of output coordinates, which determines the number of rows in the matrix.
FORM = INTEGER (Given)
An integer which indicates the form in which the matrix elements will be supplied.

A value of zero indicates that a full NOUT x NIN matrix of values will be supplied via the MATRIX argument (below). In this case, the elements should be given in row order (the elements of the first row, followed by the elements of the second row, etc.).

A value of 1 indicates that only the diagonal elements of the matrix will be supplied, and that all others should be zero. In this case, the elements of MATRIX should contain only the diagonal elements, stored consecutively.

A value of 2 indicates that a " unit" matrix is required, whose diagonal elements are set to unity (with all other elements zero). In this case, the MATRIX argument is not used.

MATRIX( ) = DOUBLE PRECISION (Given)
The array of matrix elements to be used, stored according to the value of FORM.
OPTIONS = CHARACTER ( ) (Given)
A character string containing an optional comma-separated list of attribute assignments to be used for initialising the new MatrixMap. The syntax used is identical to that for the AST_SET routine.
STATUS = INTEGER (Given and Returned)
The global status.

Returned Value

AST_MATRIXMAP = INTEGER
A pointer to the new MatrixMap.

Notes:

Status Handling

The protected interface to this function includes an extra parameter at the end of the parameter list descirbed above. This parameter is a pointer to the integer inherited status variable: " int status" .