If possible, gives this instance its own copy of its elements.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public override void CloneData()
Public Overrides Sub CloneData
public:
virtual void CloneData() override
abstract CloneData : unit -> unit
override CloneData : unit -> unit
Objects derived from VectorT
or MatrixT may share an underlying
storage structure. For example, the
GetColumn(Int32) method of the
MatrixT class returns a VectorT
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 values. After a call to this method,
any changes to the elements of this VectorT
will only affect this instance. Moreover, the
elements are guaranteed to be in one contiguous
block of memory.
Reference