Class NativeRealDoubleVector
java.lang.Object
org.episteme.core.mathematics.linearalgebra.vectors.GenericVector<Real>
org.episteme.nativ.mathematics.linearalgebra.vectors.NativeRealDoubleVector
- All Implemented Interfaces:
Vector<Real>, AbelianGroup<Vector<Real>>, AbelianMonoid<Vector<Real>>, Group<Vector<Real>>, Magma<Vector<Real>>, Monoid<Vector<Real>>, Set<Vector<Real>>, Module<Vector<Real>, Real>, NativeSegmentProxy
High-performance Real Double Vector backed by a persistent native MemorySegment.
Implements
NativeSegmentProxy for zero-copy transfer to FFM-based BLAS backends.-
Field Summary
Fields inherited from class GenericVector
provider, ring, storage -
Constructor Summary
ConstructorsConstructorDescriptionNativeRealDoubleVector(int dimension, Arena arena, LinearAlgebraProvider<Real> provider) NativeRealDoubleVector(NativeRealDoubleVectorStorage storage, LinearAlgebraProvider<Real> provider) -
Method Summary
Modifier and TypeMethodDescriptionarena()Returns the Arena managing the lifecycle of the segment.copy()static NativeRealDoubleVectorReturns a human-readable description of this set.segment()Returns the underlying native memory segment.Methods inherited from class GenericVector
add, angle, contains, cross, dimension, dot, get, getField, getProvider, getScalarRing, getStorage, inverse, isEmpty, multiply, negate, norm, normalize, operate, projection, scale, scale, set, subtract, toMatrix, toTensor, withProviderMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AbelianGroup
isCommutative, negate, subtractMethods inherited from interface AbelianMonoid
add, identity, zeroMethods inherited from interface Monoid
isAssociativeMethods inherited from interface NativeSegmentProxy
isAlive
-
Constructor Details
-
NativeRealDoubleVector
-
NativeRealDoubleVector
public NativeRealDoubleVector(NativeRealDoubleVectorStorage storage, LinearAlgebraProvider<Real> provider)
-
-
Method Details
-
copyOf
public static NativeRealDoubleVector copyOf(Vector<Real> other, Arena arena, LinearAlgebraProvider<Real> provider) -
segment
Description copied from interface:NativeSegmentProxyReturns the underlying native memory segment.- Specified by:
segmentin interfaceNativeSegmentProxy
-
arena
Description copied from interface:NativeSegmentProxyReturns the Arena managing the lifecycle of the segment.- Specified by:
arenain interfaceNativeSegmentProxy
-
description
Description copied from interface:SetReturns a human-readable description of this set.Examples:
- "â„ (Real Numbers)"
- "ℤ/12ℤ (Integers modulo 12)"
- "{1, 2, 3, 4, 5}"
- Specified by:
descriptionin interfaceSet<Vector<Real>>- Overrides:
descriptionin classGenericVector<Real>- Returns:
- a description of this set
-
copy
-