Skip to content

Having a user-defined float type. #469

Description

@Please-just-dont

Feature category

  • enhancement - build system

The series of numbers that are used by this library seems to be of type double. In many applications a double is more precision than is required. Do you think it'd be possible to, instead of code like this:


void opengl_embed::draw_path(const std::vector<double> &x,
                             const std::vector<double> &y,
                             const std::array<float, 4> &color)

It's be possible to have something like:


void opengl_embed::draw_path(const std::vector<matplot_float_t> &x,
                             const std::vector<matplot_float_t> &y,
                             const std::array<float, 4> &color)

And then matplot_float_t could be defined as float or double or whatever by the user?

This library started out with a lot of active development, that's slowed down significantly. It's it still being developed? Is it worth making pull requests of my own? I noticed there's one from 2024 that hasn't been merged yet.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions