Coder Social home page Coder Social logo

konrad1991 / etr Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 0.0 30.94 MB

Expression template for C++ similar to R syntax

License: GNU General Public License v2.0

C++ 99.17% C 0.02% Lua 0.35% Shell 0.41% R 0.06%
cpp cpp17 expression-template header-only-library r rlanguage rstats

etr's People

Contributors

konrad1991 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

etr's Issues

Constants inderivatives

How to handle constants and r values in derivatives?

Arithmetic constants have to get their own class holding the value and the derivative. Furthermore, this has to be stored in AllVars

R values have to become lazy in the same way as eg binary operations. For instance a call to vector returns Vec which has a size and the operator [] returns always 0.

In case of derivatives a static code analysis has to be performed in r. All constants have to be stored in one class eg AllConst. Subsequently, the type of the individual constant can refer to the instance of class AllConst

some assignments don't work

  • sexp s = 1 --> calls instead constructor. Can the constructor be removed?
  • sexp s = vector(3,5) + 1; or similar terms does not compile. Need a constructor for VECPLUS etc.
  • sexp s; s = 1; sexp v; v = s + vector(4,4); or similar terms throw runtime error. Which is wrong. Has to be removed in VECPLUS etc.

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.