math

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: BSD-3-Clause Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Complex128FromNative

func Complex128FromNative(wire *Complex128, native complex128) error

func Complex128ToNative

func Complex128ToNative(wire Complex128, native *complex128) error

func Complex64FromNative

func Complex64FromNative(wire *Complex64, native complex64) error

func Complex64ToNative

func Complex64ToNative(wire Complex64, native *complex64) error

Types

type Complex128

type Complex128 struct {
	Real float64
	Imag float64
}

Complex128 is a complex number composed of 64-bit real and imaginary parts.

func (Complex128) VDLIsZero

func (x Complex128) VDLIsZero() bool

func (*Complex128) VDLRead

func (x *Complex128) VDLRead(dec vdl.Decoder) error

func (Complex128) VDLReflect

func (Complex128) VDLReflect(struct {
	Name string `vdl:"math.Complex128"`
})

func (Complex128) VDLWrite

func (x Complex128) VDLWrite(enc vdl.Encoder) error

type Complex64

type Complex64 struct {
	Real float32
	Imag float32
}

Complex64 is a complex number composed of 32-bit real and imaginary parts.

func (Complex64) VDLIsZero

func (x Complex64) VDLIsZero() bool

func (*Complex64) VDLRead

func (x *Complex64) VDLRead(dec vdl.Decoder) error

func (Complex64) VDLReflect

func (Complex64) VDLReflect(struct {
	Name string `vdl:"math.Complex64"`
})

func (Complex64) VDLWrite

func (x Complex64) VDLWrite(enc vdl.Encoder) error

Jump to

Keyboard shortcuts

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