ILinearAlgebraOperations<T>.SymmetricRankUpdate Method

Definition

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

Overload List

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

Performs a rank one update of a symmetric matrix.
C#
void SymmetricRankUpdate(
	MatrixTriangle storedTriangle,
	int n,
	T alpha,
	ReadOnlySpan<T> x,
	int incx,
	Span<T> a,
	int lda
)

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 outer product.
x  ReadOnlySpan<T>
A span containing the elements of the vector x.
incx  Int32
The distance between elements in x.
a  Span<T>
A span that contains the elements of the matrix.
lda  Int32
The leading dimension of the matrix a.

Remarks

This method is similar to the BLAS routine DSYR.

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

Performs a symmetric rank two update of a symmetric matrix.
C#
void SymmetricRankUpdate(
	MatrixTriangle storedTriangle,
	int n,
	T alpha,
	ReadOnlySpan<T> x,
	int incx,
	ReadOnlySpan<T> y,
	int incy,
	Span<T> a,
	int lda
)

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 outer product.
x  ReadOnlySpan<T>
A span containing the elements of the vector x.
incx  Int32
The distance between elements in x.
y  ReadOnlySpan<T>
A span containing the elements of the vector y.
incy  Int32
The distance between elements in y.
a  Span<T>
A span that contains the elements of the matrix.
lda  Int32
The leading dimension of the matrix a.

Remarks

This method is similar to the BLAS routine DSYR2.

SymmetricRankUpdate(MatrixTriangle, TransposeOperation, Int32, Int32, T, ReadOnlySpan<T>, Int32, T, Span<T>, Int32)

Performs a rank k update of a symmetric matrix.
C#
void SymmetricRankUpdate(
	MatrixTriangle storedTriangle,
	TransposeOperation trans,
	int n,
	int k,
	T alpha,
	ReadOnlySpan<T> a,
	int lda,
	T beta,
	Span<T> c,
	int ldc
)

Parameters

storedTriangle  MatrixTriangle
Specifies whether the elements of the matrix c are stored in the upper or lower triangular part.
trans  TransposeOperation
Specifies the operation to be performed on the matrix a.
n  Int32
The number of rows and columns in the matrix c.
k  Int32
The number of columns in the matrix a transformed as specified by trans.
alpha  T
The scalar used to multiply the matrix-matrix product.
a  ReadOnlySpan<T>
A span that contains the elements of the first matrix.
lda  Int32
The leading dimension of the matrix a.
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.

SymmetricRankUpdate(MatrixTriangle, TransposeOperation, Int32, Int32, T, ReadOnlySpan<T>, Int32, ReadOnlySpan<T>, Int32, T, Span<T>, Int32)

Performs a rank k update of a symmetric matrix.
C#
void SymmetricRankUpdate(
	MatrixTriangle storedTriangle,
	TransposeOperation trans,
	int n,
	int k,
	T alpha,
	ReadOnlySpan<T> a,
	int lda,
	ReadOnlySpan<T> b,
	int ldb,
	T beta,
	Span<T> c,
	int ldc
)

Parameters

storedTriangle  MatrixTriangle
Specifies whether the elements of the matrix a are stored in the upper or lower triangular part.
trans  TransposeOperation
Specifies the operation to be performed on the matrix a.
n  Int32
The number of rows and columns in the matrix c.
k  Int32
The number of columns in the matrix a transformed as specified by trans.
alpha  T
The scalar used to multiply the matrix-matrix 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