The Complete SPRLIB & ANNLIB

mattransp

- transpose matrix A to At

SYNOPSIS

int mattransp (A, m, n, At)

ARGUMENTS

double **A Input matrix.
double **At Output (result) matrix.
int n First dimension. See in FUNCTION below.
int m Second dimension. See in FUNCTION below.

RETURNS

TRUE if A and At are equal but not square (n != m), FALSE if no error detected.

FUNCTION

This function calculates the transpose of the input matrix A and stores the result in At. The input matrix must have the form A[1..m][1..n] and the output matrix must have the form At[1..n][1..m]. If square matrices are supplied, A and At may be the same matrix. In mathematical form: At = A^T.

NOTE

A core dump will probably result if the requirements are violated !

SEE ALSO

matcopy, vecinmult, matvecmult, matmult, matinv, matinvd

This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998