Code Monkey home page Code Monkey logo

Comments (4)

wjakob avatar wjakob commented on June 1, 2024

Dear @skgbanga,

that's a good point! This kind of very strict checking is probably a fairly narrow use case, but it would be good if there was a way to disable the Enoki optimization in such a case.

What I would suggest is to introduce a new enum ENOKI_DISABLE_3D_SPECIAL_CASE and wrapping the partial template overloads at the end of array_sse.h, array_avx[2].h with a corresponding #if !defined(..).

Best,
Wenzel

from enoki.

wjakob avatar wjakob commented on June 1, 2024

(Please feel free to create a PR with this change, once you have checked that it addresses your issue.)

from enoki.

skgbanga avatar skgbanga commented on June 1, 2024

@wjakob

For now, I have initialized all my enoki arrays with sensible defaults.(even the 4th element) because I do want to use that optimization.

I will submit a PR separately with your recommendation though.

from enoki.

wjakob avatar wjakob commented on June 1, 2024

Closing this ticket.

from enoki.

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.