Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some pointers on creating the wrapper js over the emscripten build #1

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sdmuki
Copy link

@sdmuki sdmuki commented Apr 24, 2024

Here is what's needed:

  1. A library to JS array and pointer conversions. I wrote the vector one for 32 bit floats.
  2. an API exposing readable functions which consumes the wasm js wrapper from emscripten build. Examples in the api folder.

#include <Eigen/Core>
#include <Eigen/Dense>
#include <cassert>
#include <iostream>

extern "C"
{
EMSCRIPTEN_KEEPALIVE
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be accomplished through compiler flags too

@TtheBC01
Copy link
Contributor

32bit floats is probably what we want to work in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants