Class RealVectorPrimitives

java.lang.Object
com.apple.foundationdb.linear.RealVectorPrimitives

public final class RealVectorPrimitives extends Object
Package-private vector primitives that can be shared by all vector implementations (including those not extending from AbstractRealVector). All methods contained in this class do not assume an immutable or mutable vector they operate on.

Loops delegate to a Backend chosen at static-init time:

  • Default (auto): try com.apple.foundationdb.linear.simd.SimdBackend; fall back to ScalarBackend if it can't be loaded (typically because --add-modules jdk.incubator.vector wasn't passed at runtime).
  • -Dfdb.vector.simd=scalar: force ScalarBackend regardless.
  • -Dfdb.vector.simd=simd: try the SIMD backend and propagate failure (useful in tests that want to guarantee SIMD is active).