Vector<T>.Copy To Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
Overload List
Copy | Copies the elements of this vector to an array. |
Copy | Copies the elements of this vector to an untyped vector. |
Copy | Copies the elements of this vector to a span. |
Copy | Copies the elements of this vector to a span slice. |
Copy | Copies the elements of this vector to an array. |
Copy | Copies the elements of this vector to another vector. |
Copy | Copies the elements of this vector to an array. |
Copy | Copies the elements of this vector to another vector starting at the specified position. |
CopyTo(ArraySlice<T>)
Copies the elements of this vector
to an array.
public virtual void CopyTo(
ArraySlice<T> array
)
Parameters
- array ArraySlice<T>
- An array that is to hold the elements of this Vector<T>.
Exceptions
Argument | array is null. |
Argument | The length of array is less than the length of this instance. |
CopyTo(IVector)
Copies the elements of this vector
to an untyped vector.
public Vector<T> CopyTo(
IVector destination
)
Parameters
- destination IVector
- A vector whose elements are to be set.
Return Value
Vector<T>A reference to the destination vector.
Remarks
The element type of the destination vector must be the same as
the element type of the source vector.
Exceptions
Argument | The length of destination is less than the length of this instance. |
Invalid | The element type of destination does not equal the element type of the vector. |
CopyTo(Span<T>)
Copies the elements of this vector to a span.
public virtual void CopyTo(
Span<T> span
)
Parameters
Exceptions
Argument | The length of span is less than the length of this instance. |
CopyTo(SpanSlice<T>)
Copies the elements of this vector to a span slice.
public virtual void CopyTo(
SpanSlice<T> span
)
Parameters
Exceptions
Argument | The length of span is less than the length of this instance. |
CopyTo(T[])
Copies the elements of this vector
to an array.
public void CopyTo(
T[] array
)
Parameters
Exceptions
Argument | array is null. |
Argument | The length of array is less than the length of this instance. |
CopyTo(Vector<T>)
Copies the elements of this vector
to another vector.
public Vector<T> CopyTo(
Vector<T>? destination
)
Parameters
Return Value
Vector<T>A reference to the destination vector.
Exceptions
Argument | The length of destination is less than the length of this instance. |
CopyTo(T[], Int32)
Copies the elements of this vector
to an array.
public void CopyTo(
T[] array,
int index
)
Parameters
Exceptions
Argument | array is null. |
Argument | The length of array is less than the length of this instance. |
CopyTo(Vector<T>, Int32)
Copies the elements of this vector
to another vector starting at the specified position.
public virtual Vector<T> CopyTo(
Vector<T> destination,
int index
)
Parameters
- destination Vector<T>
- A vector whose elements are to be set.
- index Int32
- The index in destination where copying is to start.
Return Value
Vector<T>A reference to the destination vector.
Exceptions
Argument | destination is null. |
Argument | index is less than zero. |
Argument | The length of destination is less than index plus the length of this instance. |