Copies the components of this Vector
to another vector starting at the specified position.
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Overridable Function CopyTo ( _ vector As Vector, _ index As Integer _ ) As Vector |
| C# |
|---|
public virtual Vector CopyTo ( Vector vector, int index ) |
| C++ |
|---|
public: virtual Vector^ CopyTo ( Vector^ vector, int index ) |
Parameters
- vector (Extreme.Mathematics.LinearAlgebra.Vector)
- The Vector whose components are to be set.
- index (System.Int32)
- The index in vector where copying is to start.
Return Value
A reference to the destination vector.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | vector is nullNothingnullptr |
| ArgumentOutOfRangeException | index is less than zero. |
| ArgumentException | The length of vector is less than index plus the length of this instance. |