LinearAlgebraOperations.SymmetricRankUpdate Method

Definition

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

SymmetricRankUpdate<T>(MatrixTriangle, Int32, T, ArraySlice<T>, Array2D<T>)

Performs a rank one update of a symmetric matrix.
C#
public static void SymmetricRankUpdate<T>(
	MatrixTriangle storedTriangle,
	int n,
	T alpha,
	ArraySlice<T> x,
	Array2D<T> a
)

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  ArraySlice<T>
A reference to a one-dimensional array containing the elements of the vector x.
a  Array2D<T>
Reference to the first element in a one-dimensional array that contains the elements of the matrix.

Type Parameters

T

Remarks

This method is similar to the BLAS routine DSYR.

SymmetricRankUpdate<T>(MatrixTriangle, Int32, T, ArraySlice<T>, ArraySlice<T>, Array2D<T>)

Performs a symmetric rank two update of a symmetric matrix.
C#
public static void SymmetricRankUpdate<T>(
	MatrixTriangle storedTriangle,
	int n,
	T alpha,
	ArraySlice<T> x,
	ArraySlice<T> y,
	Array2D<T> a
)

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  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.
a  Array2D<T>
Reference to the first element in a one-dimensional array that contains the elements of the matrix.

Type Parameters

T

Remarks

This method is similar to the BLAS routine DSYR2.

SymmetricRankUpdate<T>(MatrixTriangle, TransposeOperation, Int32, Int32, T, Array2D<T>, T, Array2D<T>)

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

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  Array2D<T>
Reference to the first element in a one-dimensional array that contains the elements of the first 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

SymmetricRankUpdate<T>(MatrixTriangle, TransposeOperation, Int32, Int32, T, Array2D<T>, Array2D<T>, T, Array2D<T>)

Performs a rank k update of a symmetric matrix.
C#
public static void SymmetricRankUpdate<T>(
	MatrixTriangle storedTriangle,
	TransposeOperation trans,
	int n,
	int k,
	T alpha,
	Array2D<T> a,
	Array2D<T> b,
	T beta,
	Array2D<T> c
)

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  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

See Also