Developer Reference for Intel® oneAPI Math Kernel Library for Fortran

ID 766686
Date 3/31/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

?larcm

Multiplies a square real matrix by a complex matrix.

Syntax

call clarcm( m, n, a, lda, b, ldb, c, ldc, rwork )

call zlarcm( m, n, a, lda, b, ldb, c, ldc, rwork )

Description

The routine performs a simple matrix-matrix multiplication of the form

C = A*B,

where A is m-by-m and real, B is m-by-n and complex, and C is m-by-n and complex.

Input Parameters
m

INTEGER. The number of rows and columns of matrix A and the number of rows of matrix C (m 0).

n

INTEGER. The number of columns of matrix B and the number of columns of matrix C

(n 0).

a

REAL for clarcm

DOUBLE PRECISION for zlarcm

Array, size (lda, m). Contains the m-by-m matrix A.

lda

INTEGER. The leading dimension of the array a, ldamax(1, m).

b

COMPLEX for clarcm

DOUBLE COMPLEX for zlarcm

Array, DIMENSION(ldb, n). Contains the m-by-n matrix B.

ldb

INTEGER. The leading dimension of the array b, ldbmax(1, m) for column-major layout; ldbmax(1, n) for row-major layout .

ldc

INTEGER. The leading dimension of the array c, ldcmax(1, m) for column-major layout; ldcmax(1, n) for row-major layout .

rwork

REAL for clarcm

DOUBLE PRECISION for zlarcm

Workspace array, DIMENSION(2*m*n).

Output Parameters
c

COMPLEX for clarcm

DOUBLE COMPLEX for zlarcm

Array, size (ldc, n). Contains the m-by-n matrix C.

Return Values

This function returns a value info. If info = 0, the execution is successful. If info = -i, parameter i had an illegal value.