Linear Algebra Operations.Multiply And Add In Place Method
Definition
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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<T>(Int32, T, ArraySlice<T>, ArraySlice<T>)
Evaluates a vector plus the product of a scalar and a vector
public static void MultiplyAndAddInPlace<T>(
int n,
T alpha,
ArraySlice<T> x,
ArraySlice<T> 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 ArraySlice<T>
- A reference to a one-dimensional array containing the elements of the vector x.
- y ArraySlice<T>
- A reference to a one-dimensional array containing the elements of the vector y. The elements of y are overwritten with the result.
Type Parameters
- T
MultiplyAndAddInPlace<T>(TransposeOperation, Int32, Int32, T, Array2D<T>, ArraySlice<T>, T, ArraySlice<T>)
Sum of the product of a general matrix and vector and a scaled vector.
public static void MultiplyAndAddInPlace<T>(
TransposeOperation transposeOperation,
int m,
int n,
T alpha,
Array2D<T> a,
ArraySlice<T> x,
T beta,
ArraySlice<T> 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 Array2D<T>
- Reference to the first element in a one-dimensional array that contains the elements of the matrix.
- x ArraySlice<T>
- A reference to a one-dimensional array containing the elements of the vector x.
- beta T
- The scalar used to multiply y.
- y ArraySlice<T>
- A reference to a one-dimensional array containing the elements of the vector y. The elements of y are overwritten with the result.
Type Parameters
- T
Remarks
This method is similar to the BLAS routine DGEMV.
MultiplyAndAddInPlace<T>(TransposeOperation, TransposeOperation, Int32, Int32, Int32, T, Array2D<T>, Array2D<T>, T, Array2D<T>)
Sum of the product of two general matrices and a scaled matrix.
public static void MultiplyAndAddInPlace<T>(
TransposeOperation transA,
TransposeOperation transB,
int m,
int n,
int k,
T alpha,
Array2D<T> a,
Array2D<T> b,
T beta,
Array2D<T> 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 Array2D<T>
- Reference to the first element in a one-dimensional array that contains the elements of the first matrix.
- b Array2D<T>
- Reference to the first element in a one-dimensional array that contains the elements of the second matrix.
- beta T
- The scalar used to multiply c.
- c Array2D<T>
- Reference to the first element in a one-dimensional array that contains the elements of the third matrix.
Type Parameters
- T