f06pa computes the matrix-vector product for a real general matrix or its transpose.
Syntax
C# |
---|
public static void f06pa( string trans, int m, int n, double alpha, double[,] a, double[] x, int incx, double beta, double[] y, int incy, out int ifail ) |
Visual Basic |
---|
Public Shared Sub f06pa ( _ trans As String, _ m As Integer, _ n As Integer, _ alpha As Double, _ a As Double(,), _ x As Double(), _ incx As Integer, _ beta As Double, _ y As Double(), _ incy As Integer, _ <OutAttribute> ByRef ifail As Integer _ ) |
Visual C++ |
---|
public: static void f06pa( String^ trans, int m, int n, double alpha, array<double,2>^ a, array<double>^ x, int incx, double beta, array<double>^ y, int incy, [OutAttribute] int% ifail ) |
F# |
---|
static member f06pa : trans : string * m : int * n : int * alpha : float * a : float[,] * x : float[] * incx : int * beta : float * y : float[] * incy : int * ifail : int byref -> unit |
Parameters
- trans
- Type: System..::..StringOn entry: specifies the operation to be performed.
- .
- or
- .
Constraint: , or .
- m
- Type: System..::..Int32On entry: , the number of rows of the matrix .Constraint: .
- n
- Type: System..::..Int32On entry: , the number of columns of the matrix .Constraint: .
- alpha
- Type: System..::..DoubleOn entry: the scalar .
- a
- Type: array<System..::..Double,2>[,](,)[,][,]An array of size [dim1, dim2]Note: dim1 must satisfy the constraint:Note: the second dimension of the array a must be at least .On entry: the by matrix .
- x
- Type: array<System..::..Double>[]()[][]An array of size [dim1]Note: the dimension of the array x must be at least if and at least if or .On entry: the vector .If ,
- if , must be stored in , for ;
- if , must be stored in , for .
If or ,- if , must be stored in , for ;
- if , must be stored in , for .
- incx
- Type: System..::..Int32On entry: the increment in the subscripts of x between successive elements of .Constraint: .
- beta
- Type: System..::..DoubleOn entry: the scalar .
- y
- Type: array<System..::..Double>[]()[][]An array of size [dim1]Note: the dimension of the array y must be at least if and at least if or .On entry: the vector , if , y need not be set.If ,
- if , must be stored in , for ;
- if , must be stored in , for .
If or ,- if , must be stored in , for ;
- if , must be stored in , for .
On exit: the updated vector stored in the array elements used to supply the original vector .
- incy
- Type: System..::..Int32On entry: the increment in the subscripts of y between successive elements of .Constraint: .
- ifail
- Type: System..::..Int32%On exit: unless the method detects an error (see [Error Indicators and Warnings]).
Description
f06pa performs one of the matrix-vector operations
where is an by real matrix, and are real vectors, and and are real scalars.
If or , no operation is performed.
References
None.
Error Indicators and Warnings
Accuracy
Not applicable.
Parallelism and Performance
None.
Further Comments
None.