# File narray_ext.rb, line 54
  def eql?(other)
    self.class == other.class &&
      typecode == other.typecode &&
      shape == other.shape &&
      case typecode
      when NArray::OBJECT
        to_a.eql? other.to_a
      else
        to_s.eql? other.to_s
      end
  end