math

package
v0.0.0-...-e3ab1ac Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2016 License: BSD-3-Clause Imports: 2 Imported by: 0

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) FillVDLTarget

func (m *Complex128) FillVDLTarget(t vdl.Target, tt *vdl.Type) error

func (*Complex128) MakeVDLTarget

func (m *Complex128) MakeVDLTarget() vdl.Target

func (Complex128) VDLIsZero

func (x Complex128) VDLIsZero() bool

func (*Complex128) VDLRead

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

func (Complex128) VDLWrite

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

type Complex128Target

type Complex128Target struct {
	Value *complex128

	vdl.TargetBase
	vdl.FieldsTargetBase
	// contains filtered or unexported fields
}

func (*Complex128Target) FinishField

func (t *Complex128Target) FinishField(_, _ vdl.Target) error

func (*Complex128Target) FinishFields

func (t *Complex128Target) FinishFields(_ vdl.FieldsTarget) error

func (*Complex128Target) StartField

func (t *Complex128Target) StartField(name string) (key, field vdl.Target, _ error)

func (*Complex128Target) StartFields

func (t *Complex128Target) StartFields(tt *vdl.Type) (vdl.FieldsTarget, error)

func (*Complex128Target) ZeroField

func (t *Complex128Target) ZeroField(name string) 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) FillVDLTarget

func (m *Complex64) FillVDLTarget(t vdl.Target, tt *vdl.Type) error

func (*Complex64) MakeVDLTarget

func (m *Complex64) MakeVDLTarget() vdl.Target

func (Complex64) VDLIsZero

func (x Complex64) VDLIsZero() bool

func (*Complex64) VDLRead

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

func (Complex64) VDLWrite

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

type Complex64Target

type Complex64Target struct {
	Value *complex64

	vdl.TargetBase
	vdl.FieldsTargetBase
	// contains filtered or unexported fields
}

func (*Complex64Target) FinishField

func (t *Complex64Target) FinishField(_, _ vdl.Target) error

func (*Complex64Target) FinishFields

func (t *Complex64Target) FinishFields(_ vdl.FieldsTarget) error

func (*Complex64Target) StartField

func (t *Complex64Target) StartField(name string) (key, field vdl.Target, _ error)

func (*Complex64Target) StartFields

func (t *Complex64Target) StartFields(tt *vdl.Type) (vdl.FieldsTarget, error)

func (*Complex64Target) ZeroField

func (t *Complex64Target) ZeroField(name string) error

Jump to

Keyboard shortcuts

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