ILinear Algebra Operations<T>.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, ReadOnlySpan<T>, Int32, Span<T>, Int32)
Evaluates a vector plus the product of a scalar and a vector
void MultiplyAndAddInPlace(
int n,
T alpha,
ReadOnlySpan<T> x,
int incx,
Span<T> y,
int incy
)
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 ReadOnlySpan<T>
- A span containing the elements of the vector x.
- incx Int32
- The distance between elements in x.
- y Span<T>
- A span containing the elements of the vector y. The elements of y are overwritten with the result.
- incy Int32
- The distance between elements in y.
MultiplyAndAddInPlace(TransposeOperation, Int32, Int32, T, ReadOnlySpan<T>, Int32, ReadOnlySpan<T>, Int32, T, Span<T>, Int32)
Sum of the product of a general matrix and vector and a scaled vector.
void MultiplyAndAddInPlace(
TransposeOperation transposeOperation,
int m,
int n,
T alpha,
ReadOnlySpan<T> a,
int lda,
ReadOnlySpan<T> x,
int incx,
T beta,
Span<T> y,
int incy
)
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 ReadOnlySpan<T>
- A span that contains the elements of the matrix.
- lda Int32
- The leading dimension of the matrix a.
- x ReadOnlySpan<T>
- A span containing the elements of the vector x.
- incx Int32
- The distance between elements in x.
- beta T
- The scalar used to multiply y.
- y Span<T>
- A span containing the elements of the vector y. The elements of y are overwritten with the result.
- incy Int32
- The distance between elements in y.
Remarks
This method is similar to the BLAS routine DGEMV.
MultiplyAndAddInPlace(TransposeOperation, TransposeOperation, Int32, Int32, Int32, T, ReadOnlySpan<T>, Int32, ReadOnlySpan<T>, Int32, T, Span<T>, Int32)
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,
ReadOnlySpan<T> a,
int lda,
ReadOnlySpan<T> b,
int ldb,
T beta,
Span<T> c,
int ldc
)
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 ReadOnlySpan<T>
- A span that contains the elements of the first matrix.
- lda Int32
- The leading dimension of the matrix a.
- b ReadOnlySpan<T>
- A span that contains the elements of the second matrix.
- ldb Int32
- The leading dimension of the matrix b.
- beta T
- The scalar used to multiply c.
- c Span<T>
- A span that contains the elements of the third matrix.
- ldc Int32
- The leading dimension of the matrix c.