ManagedLinearAlgebraOperationsOfSingle.MultiplyAndAddInPlace Method

Definition

Namespace: Extreme.Mathematics.LinearAlgebra.Implementation
Assembly: Extreme.Numerics.SinglePrecision (in Extreme.Numerics.SinglePrecision.dll) Version: 8.1.4

Overload List

MultiplyAndAddInPlace(Int32, Complex<Single>, ArraySlice<Complex<Single>>, ArraySlice<Complex<Single>>)

Evaluates a vector plus the product of a scalar and a vector
C#
public override void MultiplyAndAddInPlace(
	int n,
	Complex<float> a,
	ArraySlice<Complex<float>> x,
	ArraySlice<Complex<float>> y
)

Parameters

n  Int32
The number of elements in the vectors x and y.
a  Complex<Single>
The scalar value used to multiply the elements of x.
x  ArraySlice<Complex<Single>>
A reference to a one-dimensional array containing the elements of the vector x.
y  ArraySlice<Complex<Single>>
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, Single, ArraySlice<Single>, ArraySlice<Single>)

Evaluates a vector plus the product of a scalar and a vector
C#
public override void MultiplyAndAddInPlace(
	int n,
	float alpha,
	ArraySlice<float> x,
	ArraySlice<float> y
)

Parameters

n  Int32
The number of elements in the vectors x and y.
alpha  Single
The scalar value used to multiply the elements of x.
x  ArraySlice<Single>
A reference to a one-dimensional array containing the elements of the vector x.
y  ArraySlice<Single>
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<Single>, Array2D<Complex<Single>>, ArraySlice<Complex<Single>>, Complex<Single>, ArraySlice<Complex<Single>>)

Sum of the product of a general matrix and vector and a scaled vector.
C#
public override void MultiplyAndAddInPlace(
	TransposeOperation transA,
	int m,
	int n,
	Complex<float> alpha,
	Array2D<Complex<float>> a,
	ArraySlice<Complex<float>> x,
	Complex<float> beta,
	ArraySlice<Complex<float>> 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<Single>
The scalar used to multiply the matrix-vector product.
a  Array2D<Complex<Single>>
Reference to the first element in a one-dimensional array that contains the elements of the matrix.
x  ArraySlice<Complex<Single>>
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<Single>
The scalar used to multiply y.
y  ArraySlice<Complex<Single>>
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, Single, Array2D<Single>, ArraySlice<Single>, Single, ArraySlice<Single>)

Sum of the product of a general matrix and vector and a scaled vector.
C#
public override void MultiplyAndAddInPlace(
	TransposeOperation transA,
	int m,
	int n,
	float alpha,
	Array2D<float> a,
	ArraySlice<float> x,
	float beta,
	ArraySlice<float> 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  Single
The scalar used to multiply the matrix-vector product.
a  Array2D<Single>
Reference to the first element in a one-dimensional array that contains the elements of the matrix.
x  ArraySlice<Single>
A reference to a one-dimensional array containing the elements of the vector x. The elements of x are overwritten with the result.
beta  Single
The scalar used to multiply y.
y  ArraySlice<Single>
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<Single>, Array2D<Complex<Single>>, Array2D<Complex<Single>>, Complex<Single>, Array2D<Complex<Single>>)

Sum of the product of two general matrices and a scaled matrix.
C#
public override void MultiplyAndAddInPlace(
	TransposeOperation transA,
	TransposeOperation transB,
	int m,
	int n,
	int k,
	Complex<float> alpha,
	Array2D<Complex<float>> a,
	Array2D<Complex<float>> b,
	Complex<float> beta,
	Array2D<Complex<float>> 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<Single>
The scalar used to multiply the matrix-vector product.
a  Array2D<Complex<Single>>
Reference to the first element in a one-dimensional array that contains the elements of the first matrix.
b  Array2D<Complex<Single>>
Reference to the first element in a one-dimensional array that contains the elements of the second matrix.
beta  Complex<Single>
The scalar used to multiply the product of the matrices.
c  Array2D<Complex<Single>>
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, Single, Array2D<Single>, Array2D<Single>, Single, Array2D<Single>)

Sum of the product of two general matrices and a scaled matrix.
C#
public override void MultiplyAndAddInPlace(
	TransposeOperation transA,
	TransposeOperation transB,
	int m,
	int n,
	int k,
	float alpha,
	Array2D<float> a,
	Array2D<float> b,
	float beta,
	Array2D<float> 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  Single
The scalar used to multiply the matrix-vector product.
a  Array2D<Single>
Reference to the first element in a one-dimensional array that contains the elements of the first matrix.
b  Array2D<Single>
Reference to the first element in a one-dimensional array that contains the elements of the second matrix.
beta  Single
The scalar used to multiply c.
c  Array2D<Single>
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>)

See Also