Managed Linear Algebra Operations.Multiply And Add In Place Method
Definition
Namespace: Extreme.Mathematics.LinearAlgebra.Implementation
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
MultiplyAndAddInPlace(Int32, Complex<Double>, ArraySlice<Complex<Double>>, ArraySlice<Complex<Double>>)
Evaluates a vector plus the product of a scalar and a vector
public override void MultiplyAndAddInPlace(
int n,
Complex<double> a,
ArraySlice<Complex<double>> x,
ArraySlice<Complex<double>> y
)
Parameters
- n Int32
- The number of elements in the vectors x and y.
- a Complex<Double>
- The scalar value used to multiply the elements of x.
- x ArraySlice<Complex<Double>>
- A reference to a one-dimensional array containing the elements of the vector x.
- y ArraySlice<Complex<Double>>
- A reference to a one-dimensional array containing the elements of the vector y. The elements of y are overwritten with the result.
Implements
ILinearAlgebraOperations<T>.MultiplyAndAddInPlace(Int32, T, ArraySlice<T>, ArraySlice<T>)MultiplyAndAddInPlace(Int32, Double, ArraySlice<Double>, ArraySlice<Double>)
Evaluates a vector plus the product of a scalar and a vector
public override void MultiplyAndAddInPlace(
int n,
double alpha,
ArraySlice<double> x,
ArraySlice<double> y
)
Parameters
- n Int32
- The number of elements in the vectors x and y.
- alpha Double
- The scalar value used to multiply the elements of x.
- x ArraySlice<Double>
- A reference to a one-dimensional array containing the elements of the vector x.
- y ArraySlice<Double>
- A reference to a one-dimensional array containing the elements of the vector y. The elements of y are overwritten with the result.
Implements
ILinearAlgebraOperations<T>.MultiplyAndAddInPlace(Int32, T, ArraySlice<T>, ArraySlice<T>)MultiplyAndAddInPlace(TransposeOperation, Int32, Int32, Complex<Double>, Array2D<Complex<Double>>, ArraySlice<Complex<Double>>, Complex<Double>, ArraySlice<Complex<Double>>)
Sum of the product of a general matrix and vector and a scaled vector.
public override void MultiplyAndAddInPlace(
TransposeOperation transA,
int m,
int n,
Complex<double> alpha,
Array2D<Complex<double>> a,
ArraySlice<Complex<double>> x,
Complex<double> beta,
ArraySlice<Complex<double>> y
)
Parameters
- transA 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 Complex<Double>
- The scalar used to multiply the matrix-vector product.
- a Array2D<Complex<Double>>
- Reference to the first element in a one-dimensional array that contains the elements of the matrix.
- x ArraySlice<Complex<Double>>
- A reference to a one-dimensional array containing the elements of the vector x. The elements of x are overwritten with the result.
- beta Complex<Double>
- The scalar used to multiply y.
- y ArraySlice<Complex<Double>>
- A reference to a one-dimensional array containing the elements of the vector y.
Implements
ILinearAlgebraOperations<T>.MultiplyAndAddInPlace(TransposeOperation, Int32, Int32, T, Array2D<T>, ArraySlice<T>, T, ArraySlice<T>)MultiplyAndAddInPlace(TransposeOperation, Int32, Int32, Double, Array2D<Double>, ArraySlice<Double>, Double, ArraySlice<Double>)
Sum of the product of a general matrix and vector and a scaled vector.
public override void MultiplyAndAddInPlace(
TransposeOperation transA,
int m,
int n,
double alpha,
Array2D<double> a,
ArraySlice<double> x,
double beta,
ArraySlice<double> y
)
Parameters
- transA 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 Double
- The scalar used to multiply the matrix-vector product.
- a Array2D<Double>
- Reference to the first element in a one-dimensional array that contains the elements of the matrix.
- x ArraySlice<Double>
- A reference to a one-dimensional array containing the elements of the vector x. The elements of x are overwritten with the result.
- beta Double
- The scalar used to multiply y.
- y ArraySlice<Double>
- A reference to a one-dimensional array containing the elements of the vector y.
Implements
ILinearAlgebraOperations<T>.MultiplyAndAddInPlace(TransposeOperation, Int32, Int32, T, Array2D<T>, ArraySlice<T>, T, ArraySlice<T>)MultiplyAndAddInPlace(TransposeOperation, TransposeOperation, Int32, Int32, Int32, Complex<Double>, Array2D<Complex<Double>>, Array2D<Complex<Double>>, Complex<Double>, Array2D<Complex<Double>>)
Sum of the product of two general matrices and a scaled matrix.
public override void MultiplyAndAddInPlace(
TransposeOperation transA,
TransposeOperation transB,
int m,
int n,
int k,
Complex<double> alpha,
Array2D<Complex<double>> a,
Array2D<Complex<double>> b,
Complex<double> beta,
Array2D<Complex<double>> 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 Complex<Double>
- The scalar used to multiply the matrix-vector product.
- a Array2D<Complex<Double>>
- Reference to the first element in a one-dimensional array that contains the elements of the first matrix.
- b Array2D<Complex<Double>>
- Reference to the first element in a one-dimensional array that contains the elements of the second matrix.
- beta Complex<Double>
- The scalar used to multiply the product of the matrices.
- c Array2D<Complex<Double>>
- Reference to the first element in a one-dimensional array that contains the elements of the third matrix.
Implements
ILinearAlgebraOperations<T>.MultiplyAndAddInPlace(TransposeOperation, TransposeOperation, Int32, Int32, Int32, T, Array2D<T>, Array2D<T>, T, Array2D<T>)MultiplyAndAddInPlace(TransposeOperation, TransposeOperation, Int32, Int32, Int32, Double, Array2D<Double>, Array2D<Double>, Double, Array2D<Double>)
Sum of the product of two general matrices and a scaled matrix.
public override void MultiplyAndAddInPlace(
TransposeOperation transA,
TransposeOperation transB,
int m,
int n,
int k,
double alpha,
Array2D<double> a,
Array2D<double> b,
double beta,
Array2D<double> 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 Double
- The scalar used to multiply the matrix-vector product.
- a Array2D<Double>
- Reference to the first element in a one-dimensional array that contains the elements of the first matrix.
- b Array2D<Double>
- Reference to the first element in a one-dimensional array that contains the elements of the second matrix.
- beta Double
- The scalar used to multiply c.
- c Array2D<Double>
- Reference to the first element in a one-dimensional array that contains the elements of the third matrix.