float64x2
struct float64x2Available without an import.
A 128-bit SIMD value containing 2 float64 lanes. Arithmetic operates lane-wise. Lane and WithLane require constant indices; bracket indexing supports checked runtime indices. Comparisons return all-one/all-zero integer masks. Bit reinterpretation involving floating-point lanes canonicalizes NaNs.
Members
Splatmethod
public static fn Splat(double value) : float64x2Copies one scalar value into every lane.
Zeromethod
public static fn Zero() : float64x2Returns a vector whose lanes are all zero.
constructorconstructor
public constructor (double l0, double l1)Creates a vector from scalar lanes in ascending index order.
Lanemethod
public fn Lane(int32 index) : doubleReads a compile-time constant lane index in [0, 2). Invalid or nonconstant indices are rejected; use bracket indexing for runtime indices.
ReduceSummethod
public fn ReduceSum() : doubleSums every lane into the scalar result. Uses a pairwise tree, so rounding can differ from a left-to-right scalar sum.
ReduceMinmethod
public fn ReduceMin() : doubleReduces all lanes to their minimum. Uses pairwise SIMD Min rules; ties and NaNs follow receiver preference, not scalar Math.Min.
ReduceMaxmethod
public fn ReduceMax() : doubleReduces all lanes to their maximum. Uses pairwise SIMD Max rules; ties and NaNs follow receiver preference, not scalar Math.Max.
Minmethod
public fn Min(float64x2 other) : float64x2Selects the smaller value in each lane. Uses other < this ? other : this: ties and unordered NaN comparisons retain the receiver lane, unlike scalar Math.Min.
Maxmethod
public fn Max(float64x2 other) : float64x2Selects the larger value in each lane. Uses this < other ? other : this: ties and unordered NaN comparisons retain the receiver lane, unlike scalar Math.Max.
Absmethod
public fn Abs() : float64x2Clears each floating-point sign bit.
Sqrtmethod
public fn Sqrt() : float64x2Computes a square root per lane; negative lanes produce NaN.
Rsqrtmethod
public fn Rsqrt() : float64x2Computes 1/sqrt(value) per lane using square root and division, not a hardware approximation.
Floormethod
public fn Floor() : float64x2Rounds each lane toward negative infinity.
Eqmethod
public fn Eq(float64x2 other) : int64x2Compares corresponding lanes for equal, returning all-one bits for true and all-zero bits for false. NaN comparisons are false except Ne, which is true.
Nemethod
public fn Ne(float64x2 other) : int64x2Compares corresponding lanes for unequal, returning all-one bits for true and all-zero bits for false. NaN comparisons are false except Ne, which is true.
Ltmethod
public fn Lt(float64x2 other) : int64x2Compares corresponding lanes for less, returning all-one bits for true and all-zero bits for false. NaN comparisons are false except Ne, which is true.
Lemethod
public fn Le(float64x2 other) : int64x2Compares corresponding lanes for less or equal, returning all-one bits for true and all-zero bits for false. NaN comparisons are false except Ne, which is true.
Gtmethod
public fn Gt(float64x2 other) : int64x2Compares corresponding lanes for greater, returning all-one bits for true and all-zero bits for false. NaN comparisons are false except Ne, which is true.
Gemethod
public fn Ge(float64x2 other) : int64x2Compares corresponding lanes for greater or equal, returning all-one bits for true and all-zero bits for false. NaN comparisons are false except Ne, which is true.
WithLanemethod
public fn WithLane(int32 index, double value) : float64x2Returns a copy with one lane replaced. The index must be a compile-time constant in [0, 2); use bracket assignment for runtime indices.
Shufflemethod
public fn Shuffle(int32 l0, int32 l1) : float64x2Returns lanes selected in argument order. Every index must be a compile-time constant in [0, 2); repeats are allowed.
AsInt8x16method
public fn AsInt8x16() : int8x16Reinterprets this 128-bit value with the destination lane shape rather than converting numerically. Floating-point NaN lanes are canonicalized on either side of the reinterpretation; NaN payload bits are not preserved.
AsUint8x16method
public fn AsUint8x16() : uint8x16Reinterprets this 128-bit value with the destination lane shape rather than converting numerically. Floating-point NaN lanes are canonicalized on either side of the reinterpretation; NaN payload bits are not preserved.
AsInt16x8method
public fn AsInt16x8() : int16x8Reinterprets this 128-bit value with the destination lane shape rather than converting numerically. Floating-point NaN lanes are canonicalized on either side of the reinterpretation; NaN payload bits are not preserved.
AsUint16x8method
public fn AsUint16x8() : uint16x8Reinterprets this 128-bit value with the destination lane shape rather than converting numerically. Floating-point NaN lanes are canonicalized on either side of the reinterpretation; NaN payload bits are not preserved.
AsInt32x4method
public fn AsInt32x4() : int32x4Reinterprets this 128-bit value with the destination lane shape rather than converting numerically. Floating-point NaN lanes are canonicalized on either side of the reinterpretation; NaN payload bits are not preserved.
AsUint32x4method
public fn AsUint32x4() : uint32x4Reinterprets this 128-bit value with the destination lane shape rather than converting numerically. Floating-point NaN lanes are canonicalized on either side of the reinterpretation; NaN payload bits are not preserved.
AsInt64x2method
public fn AsInt64x2() : int64x2Reinterprets this 128-bit value with the destination lane shape rather than converting numerically. Floating-point NaN lanes are canonicalized on either side of the reinterpretation; NaN payload bits are not preserved.
AsUint64x2method
public fn AsUint64x2() : uint64x2Reinterprets this 128-bit value with the destination lane shape rather than converting numerically. Floating-point NaN lanes are canonicalized on either side of the reinterpretation; NaN payload bits are not preserved.
AsFloat32x4method
public fn AsFloat32x4() : float32x4Reinterprets this 128-bit value with the destination lane shape rather than converting numerically. Floating-point NaN lanes are canonicalized on either side of the reinterpretation; NaN payload bits are not preserved.
ToInt32x4method
public fn ToInt32x4() : int32x4Truncates floating-point lanes toward zero with saturation to int32. NaNs become zero and out-of-range values clamp to integer bounds. Converts the two lanes to the low two results and zeros the high two lanes.
Loadmethod
public static fn Load(Span<uint8> data, int32 byteOffset) : float64x2Reads 16 bytes starting at byteOffset as this lane type. The complete range must fit the span or the operation panics. No alignment requirement is imposed.
LoadAlignedmethod
public static fn LoadAligned(Span<uint8> data, int32 byteOffset) : float64x2Reads 16 bytes with the same bounds checks and behavior as Load. Alignment is a hint; unaligned addresses are accepted.
Storemethod
public fn Store(Span<uint8> data, int32 byteOffset) : voidWrites all 16 bytes at byteOffset. The complete range must fit the span or the operation panics. Does not resize or retain the span.
LoadElemsmethod
public static fn LoadElems(Span<double> data, int32 elemIndex) : float64x2Reads 2 consecutive elements starting at elemIndex. The whole element range must fit or the operation panics; indices count elements, not bytes.
StoreElemsmethod
public fn StoreElems(Span<double> data, int32 elemIndex) : voidWrites 2 consecutive elements starting at elemIndex. The whole element range must fit or the operation panics; indices count elements, not bytes.
ToStringmethod
public fn ToString() : stringProvided by the compiler.
ToStringBuffermethod
public fn ToStringBuffer(StringBuilder builder) : int32Provided by the compiler.