com.io7m.jtensors

## Class HashUtility

- java.lang.Object
- - com.io7m.jtensors.HashUtility

-     public final class HashUtility
      extends Object

  Functions for hashing matrices and vectors. Note: This type is NOT part of the public API.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static int` | `accumulateDoubleHash(double x, int prime, int state)` Accumulate a hash.
    `static int` | `accumulateFloatHash(float x, int prime, int state)` Accumulate a hash.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### accumulateFloatHash

          public static int accumulateFloatHash(float x,
                                                int prime,
                                                int state)

      Accumulate a hash.
      Parameters:
        `x` - The current value
        `prime` - The prime number used to peturb the state
        `state` - The current state
      Returns:
        A new hash state

    - #### accumulateDoubleHash

          public static int accumulateDoubleHash(double x,
                                                 int prime,
                                                 int state)

      Accumulate a hash.
      Parameters:
        `x` - The current value
        `prime` - The prime number used to peturb the state
        `state` - The current state
      Returns:
        A new hash state

Copyright © 2016 <code@io7m.com> http://io7m.com