public boolean equals()

in ndarray/src/main/java/org/tensorflow/ndarray/impl/buffer/adapter/DoubleDataBufferAdapter.java [91:108]


  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }
    if (!(obj instanceof DoubleDataBuffer)) {
      return super.equals(obj);
    }
    DoubleDataBuffer other = (DoubleDataBuffer)obj;
    if (other.size() != size()) {
      return false;
    }
    for (long idx = 0L; idx < size(); ++idx) {
      if (other.getDouble(idx) != getDouble(idx)) {
        return false;
      }
    }
    return true;
  }