Package de.jungblut.utils
Class VectorFunnel
- java.lang.Object
-
- de.jungblut.utils.VectorFunnel
-
- All Implemented Interfaces:
com.google.common.hash.Funnel<de.jungblut.math.DoubleVector>,java.io.Serializable
public final class VectorFunnel extends java.lang.Object implements com.google.common.hash.Funnel<de.jungblut.math.DoubleVector>A funnel that funnels a DoubleVector into bytes by taking the non-zero items from a vector for sparse instances. For dense instances it completely puts the vector into the byte representation (including zeros).- Author:
- thomas.jungblut
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VectorFunnel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfunnel(de.jungblut.math.DoubleVector from, com.google.common.hash.PrimitiveSink into)
-