Gives this instance its own copy of its elements.
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Overrides Sub CloneData |
| C# |
|---|
public override void CloneData () |
| C++ |
|---|
public: virtual void CloneData () override |
Remarks
Objects derived from Vector
or Matrix may share an underlying
storage structure. For example, the
GetColumn(Int32) method of the
Matrix class returns a Vector
that is a view on a column in the matrix. Changing
an element in the vector changes the corresponding
element in the 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 instance will only affect this instance. Moreover, the elements are guaranteed to be in one contiguous block of memory.