amount

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vec

type Vec struct {
	Values []decimal.Decimal
}

Vec is a vector of decimals.

func NewVec

func NewVec(n int) Vec

NewVec creates a new vector.

func (Vec) Add

func (v Vec) Add(u Vec)

Add mutably adds the given vector to the receiver.

func (Vec) Neg

func (v Vec) Neg()

Neg mutably negates the given vector.

Jump to

Keyboard shortcuts

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