ILinearAlgebraOperations<T>.SymmetricMultiplyAndAddInPlace Method

Definition

Namespace: Numerics.NET.LinearAlgebra.Implementation
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

SymmetricMultiplyAndAddInPlace(MatrixTriangle, Int32, T, ReadOnlySpan<T>, Int32, ReadOnlySpan<T>, Int32, T, Span<T>, Int32)

Product of a symmetric matrix and a vector.
C#
void SymmetricMultiplyAndAddInPlace(
	MatrixTriangle storedTriangle,
	int n,
	T alpha,
	ReadOnlySpan<T> a,
	int lda,
	ReadOnlySpan<T> x,
	int incx,
	T beta,
	Span<T> y,
	int incy
)

Parameters

storedTriangle  MatrixTriangle
Specifies whether the matrix is an upper or lower triangular matrix.
n  Int32
The number of rows and 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 DSYMV.

SymmetricMultiplyAndAddInPlace(MatrixOperationSide, MatrixTriangle, Int32, Int32, T, ReadOnlySpan<T>, Int32, ReadOnlySpan<T>, Int32, T, Span<T>, Int32)

Sum of the product of a symmetric and a general matrix and a scaled matrix.
C#
void SymmetricMultiplyAndAddInPlace(
	MatrixOperationSide side,
	MatrixTriangle storedTriangle,
	int m,
	int n,
	T alpha,
	ReadOnlySpan<T> a,
	int lda,
	ReadOnlySpan<T> b,
	int ldb,
	T beta,
	Span<T> c,
	int ldc
)

Parameters

side  MatrixOperationSide
Specifies on which side the symmetric matrix a is to be multiplied.
storedTriangle  MatrixTriangle
Specifies whether the elements of the matrix a are stored in the upper or lower triangular part.
m  Int32
The number of rows in the matrix a and the matrix c.
n  Int32
The number of columns in the matrix b and the matrix c.
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.

See Also