vector

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scalar

type Scalar struct {
	*tensor.Dense
}

func NewScalar

func NewScalar(c complex128) *Scalar

type Vector

type Vector struct {
	*tensor.Dense
}

func New

func New(z ...complex128) *Vector

func NewZero

func NewZero(n int) *Vector

func (*Vector) Add

func (v *Vector) Add(c complex128) *Vector

func (*Vector) MulScalar

func (v *Vector) MulScalar(s *Scalar) *Vector

func (*Vector) ProductVector

func (a *Vector) ProductVector(b Vector) Vector

func (*Vector) Set

func (v *Vector) Set(i int, c complex128) *Vector

func (*Vector) Size

func (v *Vector) Size() int

Jump to

Keyboard shortcuts

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