bigfft – github.com/remyoudompheng/bigfft Index | Files

package bigfft

import "github.com/remyoudompheng/bigfft"

Package bigfft implements multiplication of big.Int using FFT.

The implementation is based on the Schönhage-Strassen method using integer FFT modulo 2^n+1.

Index

Functions

func FromDecimalString

func FromDecimalString(s string) *big.Int

FromDecimalString converts the base 10 string representation of a natural (non-negative) number into a *big.Int. Its asymptotic complexity is less than quadratic.

func Mul

func Mul(x, y *big.Int) *big.Int

Mul computes the product x*y and returns z. It can be used instead of the Mul method of *big.Int from math/big package.

Types

type Word

type Word = big.Word

Source Files

arith_decl.go fermat.go fft.go scan.go

Version
v0.0.0-20230129092748-24d4a6f8daec (latest)
Published
Jan 29, 2023
Platform
linux/amd64
Imports
2 packages
Last checked
2 hours ago

Tools for package owners.