Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 836375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:58:17+00:00 2026-05-15T04:58:17+00:00

I need to call Atan on millions of values per second. Is there a

  • 0

I need to call Atan on millions of values per second. Is there a good library to perform this operation in batch very fast. For example, a library that streams the low level logic using something like SSE?

I have profiled the application, and I know that this call to Atan is a bottleneck.

I know that there is support for this in OpenCL, but I would prefer to do this operation on the CPU. The target machine might not support OpenCL.

I also looked into using OpenCV, but it’s accuracy for Atan angles is only ~0.3 degrees. I need accurate results.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T04:58:18+00:00Added an answer on May 15, 2026 at 4:58 am

    Why don’t you try Brahma? To my understanding, it’s a free and open source GPGPU library that doesn’t depend on OpenCL, instead converting code to HLSL/GLSL shaders via LINQ.

    EDIT: Sample code:

    ComputationProvider provider = new ComputationProvider();
    CompiledQuery query = provider.Compile<DataParallelArray<float>>(
        data => from value in data
                select (float)Math.Atan(value)); // Do your calculations here...
    
    DataParallelArray<float> input = new DataParallelArray<float>(provider, new float[] { 0, 1, 2, 3, 4, 5, 6, 7, }); // etc...
    IQueryable result = provider.Run(query, input);
    
    foreach (float value in result)
        Console.WriteLine(value);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to call this from the code behind if there is a certain
I need to call some jQuery .load() function from flash. i Use this: import
I need to call a JS function with a C# parameter. This is inside
I need to call a library function that sometimes won't terminate within a given
When do I actually need call this method Runtime.getRuntime().addShutdownHook() and when or why I
I need to call a function on a using jquery. This function needs to
I need to call a 3rd party library that happens to spew a bunch
I need to call CPython code from Java. What tools/APIs/libraries exist out there to
i have this problem; i need call filectrl unit in a my unit. Of
I need to call a function, in PHP, that accepts 3 parameters, RGB Values.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.