sequences

package module
v0.0.0-...-8f2081d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2015 License: GPL-2.0 Imports: 2 Imported by: 0

README

sequences

Implementation for mathematical sequences in go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FibonacciGenerator

type FibonacciGenerator struct {
	// contains filtered or unexported fields
}

+gen sequenceGenerator:"Iterator[int64,uint64,*bigInt]"

func NewFibonacciGenerator

func NewFibonacciGenerator(repeatInitialOne bool) *FibonacciGenerator

func (*FibonacciGenerator) SetChannelBuffer

func (fg *FibonacciGenerator) SetChannelBuffer(size int)

func (*FibonacciGenerator) TakeBigInt

func (generator *FibonacciGenerator) TakeBigInt(maxIndex int) <-chan *big.Int

func (*FibonacciGenerator) TakeInt64

func (generator *FibonacciGenerator) TakeInt64(maxIndex int) <-chan int64

func (*FibonacciGenerator) TakeUint64

func (generator *FibonacciGenerator) TakeUint64(maxIndex int) <-chan uint64

func (*FibonacciGenerator) UpToBigInt

func (generator *FibonacciGenerator) UpToBigInt(maxValue *big.Int) <-chan *big.Int

func (*FibonacciGenerator) UpToInt64

func (generator *FibonacciGenerator) UpToInt64(maxValue int64) <-chan int64

func (*FibonacciGenerator) UpToUint64

func (generator *FibonacciGenerator) UpToUint64(maxValue uint64) <-chan uint64

func (*FibonacciGenerator) WhileBigInt

func (generator *FibonacciGenerator) WhileBigInt(condition func(index int, value *big.Int) bool) <-chan *big.Int

func (*FibonacciGenerator) WhileInt64

func (generator *FibonacciGenerator) WhileInt64(condition func(index int, value int64) bool) <-chan int64

func (*FibonacciGenerator) WhileUint64

func (generator *FibonacciGenerator) WhileUint64(condition func(index int, value uint64) bool) <-chan uint64

type PrimeGenerator

type PrimeGenerator struct {
	// contains filtered or unexported fields
}

+gen sequenceGenerator:"Iterator[int64,uint64]"

func NewPrimeGenerator

func NewPrimeGenerator() *PrimeGenerator

func (*PrimeGenerator) SetChannelBuffer

func (fg *PrimeGenerator) SetChannelBuffer(size int)

func (*PrimeGenerator) TakeInt64

func (generator *PrimeGenerator) TakeInt64(maxIndex int) <-chan int64

func (*PrimeGenerator) TakeUint64

func (generator *PrimeGenerator) TakeUint64(maxIndex int) <-chan uint64

func (*PrimeGenerator) UpToInt64

func (generator *PrimeGenerator) UpToInt64(maxValue int64) <-chan int64

func (*PrimeGenerator) UpToUint64

func (generator *PrimeGenerator) UpToUint64(maxValue uint64) <-chan uint64

func (*PrimeGenerator) WhileInt64

func (generator *PrimeGenerator) WhileInt64(condition func(index int, value int64) bool) <-chan int64

func (*PrimeGenerator) WhileUint64

func (generator *PrimeGenerator) WhileUint64(condition func(index int, value uint64) bool) <-chan uint64

type TriangularNumberGenerator

type TriangularNumberGenerator struct {
	// contains filtered or unexported fields
}

+gen sequenceGenerator:"Iterator[int64,uint64,*bigInt]"

func NewTriangularGenerator

func NewTriangularGenerator() *TriangularNumberGenerator

func (*TriangularNumberGenerator) SetChannelBuffer

func (fg *TriangularNumberGenerator) SetChannelBuffer(size int)

func (*TriangularNumberGenerator) TakeBigInt

func (generator *TriangularNumberGenerator) TakeBigInt(maxIndex int) <-chan *big.Int

func (*TriangularNumberGenerator) TakeInt64

func (generator *TriangularNumberGenerator) TakeInt64(maxIndex int) <-chan int64

func (*TriangularNumberGenerator) TakeUint64

func (generator *TriangularNumberGenerator) TakeUint64(maxIndex int) <-chan uint64

func (*TriangularNumberGenerator) UpToBigInt

func (generator *TriangularNumberGenerator) UpToBigInt(maxValue *big.Int) <-chan *big.Int

func (*TriangularNumberGenerator) UpToInt64

func (generator *TriangularNumberGenerator) UpToInt64(maxValue int64) <-chan int64

func (*TriangularNumberGenerator) UpToUint64

func (generator *TriangularNumberGenerator) UpToUint64(maxValue uint64) <-chan uint64

func (*TriangularNumberGenerator) WhileBigInt

func (generator *TriangularNumberGenerator) WhileBigInt(condition func(index int, value *big.Int) bool) <-chan *big.Int

func (*TriangularNumberGenerator) WhileInt64

func (generator *TriangularNumberGenerator) WhileInt64(condition func(index int, value int64) bool) <-chan int64

func (*TriangularNumberGenerator) WhileUint64

func (generator *TriangularNumberGenerator) WhileUint64(condition func(index int, value uint64) bool) <-chan uint64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL