complexslice

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromFloats

func FromFloats(input []float64) []complex128

FromFloats makes a complex slice from the given floats.

func Map

func Map(vals []complex128, mapFunc func(complex128) complex128) []complex128

Map maps the given values to a new slice using the given map function.

func New

func New(n int, f func(idx int) complex128) []complex128

New makes a new slice, initializing each value using the given func.

func Zero

func Zero() complex128

Zero returns a new zero complex128

func Zeros

func Zeros(n int) []complex128

Zeros returns a slice of zeros.

Types

This section is empty.

Jump to

Keyboard shortcuts

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