Giter Club home page Giter Club logo

Comments (6)

jiawen avatar jiawen commented on June 17, 2024

It's already defined in matrix.h as small_matrix.

from array.

fbleibel-g avatar fbleibel-g commented on June 17, 2024

Thanks, that looks like the right header. I'm looking for the N-dimensional generalization of this - something I can use to define 3D and > arrays.

from array.

jiawen avatar jiawen commented on June 17, 2024

Gah, I clearly should have read the request more carefully. Now I'm really curious what use you have for a fixed size high dimensional array!

from array.

dsharlet avatar dsharlet commented on June 17, 2024

I was thinking about this a bit. It's probably a good idea to add a fixed_dense_shape type (see #74). This is tricky enough to implement that we should provide a wrapper.

I think adding an alias for array is more questionable though, and not that hard for user code to do with fixed_dense_shape, since it's a one liner with that (replaces your CompactShapeHelper), and doesn't require any big leaps of template programming. It also still requires some decisions from the user (e.g. initialized vs. not).

from array.

fbleibel-g avatar fbleibel-g commented on June 17, 2024

Thanks, the CompactShapeHelper replacement was most of the code, and I can remove our own implementation of that.

Subsidiary question: do you think matrix_shape and vector_shape from image.h should now also be defined in terms of fixed_dense_shape? This can provide a 'guide' for users that are looking to implement the same.

Thanks again!

from array.

dsharlet avatar dsharlet commented on June 17, 2024

matrix_shape has the dense dimension as the second dimension, so it wouldn't be the same thing...

from array.

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.