Class 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
      void funnel​(de.jungblut.math.DoubleVector from, com.google.common.hash.PrimitiveSink into)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VectorFunnel

        public VectorFunnel()
    • Method Detail

      • funnel

        public void funnel​(de.jungblut.math.DoubleVector from,
                           com.google.common.hash.PrimitiveSink into)
        Specified by:
        funnel in interface com.google.common.hash.Funnel<de.jungblut.math.DoubleVector>