Vector.LoadUnsafe Method

Definition

Overloads

LoadUnsafe<T>(T)

Loads a vector from the given source.

LoadUnsafe<T>(T, UIntPtr)

Loads a vector from the given source and element offset.

LoadUnsafe<T>(T)

Source:
Vector.cs
Source:
Vector.cs

Loads a vector from the given source.

C#
public static System.Numerics.Vector<T> LoadUnsafe<T>(ref T source);

Type Parameters

T

The type of the elements in the vector.

Parameters

source
T

The source from which the vector will be loaded.

Returns

The vector loaded from source.

Exceptions

The type of source (T) is not supported.

Applies to

.NET 9 and .NET 8
Product Versions
.NET 8, 9

LoadUnsafe<T>(T, UIntPtr)

Source:
Vector.cs
Source:
Vector.cs

Important

This API is not CLS-compliant.

Loads a vector from the given source and element offset.

C#
[System.CLSCompliant(false)]
public static System.Numerics.Vector<T> LoadUnsafe<T>(ref T source, UIntPtr elementOffset);

Type Parameters

T

The type of the elements in the vector.

Parameters

source
T

The source to which elementOffset will be added before loading the vector.

elementOffset
UIntPtr

The element offset from source from which the vector will be loaded.

Returns

The vector loaded from source plus elementOffset.

Attributes

Exceptions

The type of source (T) is not supported.

Applies to

.NET 9 and .NET 8
Product Versions
.NET 8, 9