f06ya performs one of the matrix-matrix operations
CαAB+βC,CαATB+βC,CαABT+βC  orCαATBT+βC,
where A, B and C are real matrices, and α and β are real scalars; C is always m by n.

Syntax

C#
public static void f06ya(
	string transa,
	string transb,
	int m,
	int n,
	int k,
	double alpha,
	double[,] a,
	double[,] b,
	double beta,
	double[,] c,
	out int ifail
)
Visual Basic
Public Shared Sub f06ya ( _
	transa As String, _
	transb As String, _
	m As Integer, _
	n As Integer, _
	k As Integer, _
	alpha As Double, _
	a As Double(,), _
	b As Double(,), _
	beta As Double, _
	c As Double(,), _
	<OutAttribute> ByRef ifail As Integer _
)
Visual C++
public:
static void f06ya(
	String^ transa, 
	String^ transb, 
	int m, 
	int n, 
	int k, 
	double alpha, 
	array<double,2>^ a, 
	array<double,2>^ b, 
	double beta, 
	array<double,2>^ c, 
	[OutAttribute] int% ifail
)
F#
static member f06ya : 
        transa : string * 
        transb : string * 
        m : int * 
        n : int * 
        k : int * 
        alpha : float * 
        a : float[,] * 
        b : float[,] * 
        beta : float * 
        c : float[,] * 
        ifail : int byref -> unit 

Parameters

transa
Type: System..::..String
On entry: specifies whether the operation involves A or AT.
transa="N"
The operation involves A.
transa="T" or "C"
The operation involves AT.
Constraint: transa="N", "T" or "C".
transb
Type: System..::..String
On entry: specifies whether the operation involves B or BT.
transb="N"
The operation involves B.
transb="T" or "C"
The operation involves BT.
Constraint: transb="N", "T" or "C".
m
Type: System..::..Int32
On entry: m, the number of rows of the matrix C; the number of rows of A if transa="N", or the number of columns of A if transa="T" or "C".
Constraint: m0.
n
Type: System..::..Int32
On entry: n, the number of columns of the matrix C; the number of columns of B if transb="N", or the number of rows of B if transb="T" or "C".
Constraint: n0.
k
Type: System..::..Int32
On entry: k, the number of columns of A if transa="N", or the number of rows of A if transa="T" or "C"; the number of rows of B if transb="N", or the number of columns of B if transb="T" or "C".
Constraint: k0.
alpha
Type: System..::..Double
On entry: the scalar α.
a
Type: array<System..::..Double,2>[,](,)[,][,]
An array of size [dim1, dim2]
Note: dim1 must satisfy the constraint:
  • if transa="N", dim1max1,m;
  • if transa="T" or "C", dim1max1,k.
Note: the second dimension of the array a must be at least max1,k if transa="N" and at least max1,m if transa="T" or "C".
On entry: the matrix A; A is m by k if transa="N", or k by m if transa="T" or "C".
b
Type: array<System..::..Double,2>[,](,)[,][,]
An array of size [dim1, dim2]
Note: dim1 must satisfy the constraint:
  • if transb="N", dim1max1,k;
  • if transb="T" or "C", dim1max1,n.
Note: the second dimension of the array b must be at least max1,n if transb="N" and at least max1,k if transb="T" or "C".
On entry: the matrix B; B is k by n if transb="N", or n by k if transb="T" or "C".
beta
Type: System..::..Double
On entry: the scalar β.
c
Type: array<System..::..Double,2>[,](,)[,][,]
An array of size [dim1, dim2]
Note: dim1 must satisfy the constraint: dim1max1,m
Note: the second dimension of the array c must be at least max1,n.
On entry: the m by n matrix C.
If beta=0, c need not be set.
On exit: the updated matrix C.
ifail
Type: System..::..Int32%
On exit: ifail=0 unless the method detects an error (see [Error Indicators and Warnings]).

Description

None.

References

None.

Error Indicators and Warnings

ifail=-6000
Invalid Parameters . Check Documentation

Accuracy

Not applicable.

Parallelism and Performance

None.

Further Comments

None.

Example

See Also