ToruNiina / jitome

JIT-Optimized Math Expression

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jitome

JIT-Optimized Math Expression

Example

#include <jitome.hpp>

int main()
{
    std::string func_body = "(a, b, c) {a + b * c}";

    jitome::JitCompiler<double(double, double, double)> func(func_body);

    std::cout << func(1.0, 2.0, 3.0) << std::endl; // prints 7

    return 0;
}

Prerequisites & Dependency

Syntax

See syntax.abnf.

Licensing terms

This product is licensed under the terms of the MIT License.

  • Copyright (c) 2021-now Toru Niina

All rights reserved.

About

JIT-Optimized Math Expression

License:MIT License


Languages

Language:C++ 98.6%Language:CMake 1.4%