SparseWeight8.CreateUnchecked

SparseWeight8.CreateUnchecked method

Creates a new SparseWeight8 struct.

public static SparseWeight8 CreateUnchecked(ref Vector4 idx0123, ref Vector4 idx4567, 
    ref Vector4 wgt0123, ref Vector4 wgt4567)
ParameterTypeDescription
idx0123Vector4&The first 4 indices.
idx4567Vector4&The next 4 indices.
wgt0123Vector4&The first 4 weights.
wgt4567Vector4&The next 4 weights.

Return Value

A SparseWeight8 instance.

Remarks

Unlike Create, this method is a direct call to the constructor, so it’s very fast. But it doesn’t validate the input values, so it’s intended to be used in limited scenarios, where performance is paramount.

See Also