Package com.apple.foundationdb.linear
package com.apple.foundationdb.linear
Package that implements basic mathematical objects such as vectors and matrices as well as
operations on these objects.
-
ClassDescriptionCommon implementation skeleton for every
RealVectorsubtype in this package.Vector operator that applies/unapplies a linear operator and an addition to a vector.Computes a distance between two vectors.Immutable vector storing 64-bit double-precision components.FhtKac-like random orthogonal rotator which implementsLinearOperator.Immutable vector storing 32-bit single-precision (float) components.Immutable vector storing 16-bitHalf-precision components.Represents various distance calculation strategies (metrics) for vectors.Mutable double-precision vector.Provides a static method to compute the QR decomposition of a matrix.Defines the contract for a quantizer, a component responsible for encoding data vectors into a different, ideally a more compact, representation.Real-valued mathematical vector — the common API every dense vector representation in this package implements.Package-private vector primitives that can be shared by all vector implementations (including those not extending fromAbstractRealVector.Abstract iterator implementation to read the IVecs/FVecs data format that is used by publicly available embedding datasets.Iterator to read floating point vectors from aFileChannelproviding an iterator ofDoubleRealVectors.Iterator to read vectors from aFileChannelinto a list of integers.Transformed<V extends RealVector>This class aims to reduce potential logic problems with respect to coordinate transformations by soliciting help from Java's type system.Interface that represents the root of all linear and affine operators including matrices.