Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ concat_matr(3G) — HP-UX 5.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

concat_transformation(3g)

concat_transformation(3g)

flush_matrices(3g)

pop_matrix(3g)

push_matrix(3g)

replace_matrix(3g)

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);

HP-UX COMPATIBILITY

Level: HP-UX/STANDARD

Origin: HP

DESCRIPTION

INPUT PARAMETERS

matrix1, matrix2
are two user supplied 4x4 matrices presented in row major form.

OUTPUT PARAMETERS

result
is the 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  —  last mod. May 11, 2021

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026