Git Product home page Git Product logo

Comments (1)

jpivarski avatar jpivarski commented on May 16, 2024

Take a look at the diff and have a laugh.

Actually, for something.max().max(), something.flatten().max() would always be equal and less effort to compute.

I should probably start publicizing that something.content is not to be used unless you're interested in the internals of your array. (It doesn't start with an underscore; there seems to be a third level between "public" and "private" for starts/stops/content.) The content need not be contiguous and it can contain unreachable elements. Two arrays might look the same and result in the same list of lists with .tolist() (i.e. the same "logical structure") but one has elements in its content that the other doesn't have (i.e. different "physical structure"). For instance, do

something[:, 1:]

to logically drop the first element in each sublist and you'll get a new starts but the same content. The elements that have been dropped from the logical view would contribute to content.max().

I'm beginning to realize that this is a gotcha on the order of Numpy's view vs copy.

from awkward-0.x.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.