CONCAT_MATRIX(3G)
NAME
concat_matrix − multiply two matrices and return the resulting matrix
SYNOPSIS
C Syntax:
void concat_matrix(matrix1,matrix2,result);
float matrix1[4][4],matrix2[4][4],result[4][4];
FORTRAN77 Syntax:
(See Language Dependencies Below)
subroutine concat_matrix(matrix1,matrix2,result)
real matrix1(4,4),matrix2(4,4),result(4,4)
Pascal Syntax:
type three_d_xform = array[1..4][1..4] of real;
procedure concat_matrix(var matrix1,matrix2,
result:three_d_xform);
DESCRIPTION
Input Parameters
matrix1,matrix2
Two user-supplied 4x4 matrices presented in row major form.
Output Parameters
result Resulting 4x4 matrix obtained by multiplying matrix1 and matrix2 .
Discussion
Matrix1 and matrix2 are concatenated (matrix multiplied) and the resulting matrix placed in result:
matrix1 * matrix2 → result
The three matrices need not be unique. For instance, concat_matrix (A,A,A) is valid.
LANGUAGE DEPENDENCIES
FORTRAN77:
A transposition of array rows and columns is required due to the manner in which FORTRAN77 stores arrays.
SEE ALSO
concat_transformation(3G), concat_transformation(3G), flush_matrices(3G), pop_matrix(3G), push_matrix(3G), replace_matrix(3G).
Hewlett-Packard Company — May 11, 2021