Gives this instance its own copy of its elements.

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

Syntax

Visual Basic (Declaration)
Public Sub CloneData ( _
	elementOrder As MatrixElementOrder _
)
C#
public void CloneData (
	MatrixElementOrder elementOrder
)
C++
public:
void CloneData (
	MatrixElementOrder elementOrder
)

Parameters

elementOrder (Extreme.Mathematics.LinearAlgebra.MatrixElementOrder)
A MatrixElementOrder value that specifies whether to store the elements in column-major or row-major elementOrder.

Remarks

Objects derived from Vector or Matrix may share an underlying storage structure. For example, the GetSubmatrix(Int32, Int32, Int32, Int32, Int32, Int32, TransposeOperation) method of the Matrix class returns a MatrixView that is a view on a part of a matrix. Changing an element in the submatrix changes the corresponding element in the original matrix.

This method ensures that this instance has its own copy of the data. After a call to this method, any changes to the elements of this GeneralMatrix will only affect this instance. Moreover, the elements are guaranteed to be in one contiguous block of memory, in the elementOrder specified by the elementOrder parameter.