Constructs a new symmetric BandMatrix from the components of a matrix.

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public Shared Function ExtractSymmetric ( _
	matrix As Matrix, _
	bandwidth As Integer, _
	triangleMode As MatrixTriangleMode _
) As BandMatrix
C#
public static BandMatrix ExtractSymmetric (
	Matrix matrix,
	int bandwidth,
	MatrixTriangleMode triangleMode
)
C++
public:
static BandMatrix^ ExtractSymmetric (
	Matrix^ matrix, 
	int bandwidth, 
	MatrixTriangleMode triangleMode
)

Parameters

matrix (Extreme.Mathematics.LinearAlgebra.Matrix)
The Matrix that supplies the components.
bandwidth (System.Int32)
The bandwidth of the BandMatrix.
triangleMode (Extreme.Mathematics.LinearAlgebra.MatrixTriangleMode)
A MatrixTriangleMode value that specifies whether the components are to be taken from the upper or lower triangular part of matrix.

Return Value

A symmetric BandMatrix with the same components as matrix with bandwidth bandwidth.