ILinear Algebra Operations<T, TVector, TMatrix>.Multiply And Add In Place Method
Definition
Namespace: Numerics.NET.LinearAlgebra.Implementation
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Multiply | Evaluates a vector plus the product of a scalar and a vector |
Multiply | Sum of the product of a general matrix and vector and a scaled vector. |
Multiply | Sum of the product of two general matrices and a scaled matrix. |
MultiplyAndAddInPlace(Int32, T, TVector, TVector)
Evaluates a vector plus the product of a scalar and a vector
void MultiplyAndAddInPlace(
int n,
T alpha,
TVector x,
TVector y
)
Parameters
- n Int32
- The number of elements in the vectors x and y.
- alpha T
- The scalar value used to multiply the elements of x.
- x TVector
- A reference to a one-dimensional array containing the elements of the vector x.
- y TVector
- A reference to a one-dimensional array containing the elements of the vector y. The elements of y are overwritten with the result.
MultiplyAndAddInPlace(TransposeOperation, Int32, Int32, T, TMatrix, TVector, T, TVector)
Sum of the product of a general matrix and vector and a scaled vector.
void MultiplyAndAddInPlace(
TransposeOperation transposeOperation,
int m,
int n,
T alpha,
TMatrix a,
TVector x,
T beta,
TVector y
)
Parameters
- transposeOperation TransposeOperation
- Specifies the operation to be performed on the matrix a.
- m Int32
- The number of rows in the matrix a.
- n Int32
- The number of columns in the matrix a.
- alpha T
- The scalar used to multiply the matrix-vector product.
- a TMatrix
- A span that contains the elements of the matrix.
- x TVector
- A reference to a one-dimensional array containing the elements of the vector x.
- beta T
- The scalar used to multiply y.
- y TVector
- A reference to a one-dimensional array containing the elements of the vector y. The elements of y are overwritten with the result.
Remarks
This method is similar to the BLAS routine DGEMV.
MultiplyAndAddInPlace(TransposeOperation, TransposeOperation, Int32, Int32, Int32, T, TMatrix, TMatrix, T, TMatrix)
Sum of the product of two general matrices and a scaled matrix.
void MultiplyAndAddInPlace(
TransposeOperation transA,
TransposeOperation transB,
int m,
int n,
int k,
T alpha,
TMatrix a,
TMatrix b,
T beta,
TMatrix c
)
Parameters
- transA TransposeOperation
- Specifies the operation to be performed on the matrix a.
- transB TransposeOperation
- Specifies the operation to be performed on the matrix b.
- m Int32
- The number of rows in the matrix a transformed as specified by transA, and the matrix c.
- n Int32
- The number of columns in the matrix b transformed as specified by transB, and the matrix c.
- k Int32
- The number of columns in the matrix a transformed as specified by transA, and the number of rows of the matrix b transformed as specified by transB.
- alpha T
- The scalar used to multiply the matrix-vector product.
- a TMatrix
- A span that contains the elements of the first matrix.
- b TMatrix
- A span that contains the elements of the second matrix.
- beta T
- The scalar used to multiply c.
- c TMatrix
- A span that contains the elements of the third matrix.