Home
Blogs
Questions

Home

About Us

Blogs

Questions

Monetize

Post Job

banner

Questions about gmpy

Read more about gmpy

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - gmpy

Preventing overflow of large integers in (GPU) optimized methods such as gmpy2 and numba

I am trying to check whether a large integer is a perfect square using gmpy2 in a JIT-decorated (optimized) routine using numba. The example here is for illustrative purposes only (from a theoretical ...
test-img

Eldar Sultanow

python

gpu

largenumber

gmpy

Votes: 0

Answers: 2

Latest Answer

I could now manage to avoid the loss of precision by the following code: @jit('void(uint64)') def findIntegerSolutionsGmpy2(limit: np.uint64): for x in np.arange(0, limit+1, dtype=np.uint64): ...
test-img

Eldar Sultanow

Posts

Questions

Blogs

Where knowledge meets opportunity!

About

  • Company
  • Monetize your knowledge
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved