matrix

package
v0.0.0-...-d4941c9 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eps

func Eps(eps ...float64) float64

Types

type Matrix

type Matrix [][]complex128

func AntiCommutator

func AntiCommutator(m0, m1 Matrix) Matrix

func Commutator

func Commutator(m0, m1 Matrix) Matrix

func New

func New(v ...[]complex128) Matrix

func TensorProduct

func TensorProduct(m ...Matrix) Matrix

func TensorProductN

func TensorProductN(m Matrix, bit ...int) Matrix

func (Matrix) Add

func (m0 Matrix) Add(m1 Matrix) Matrix

func (Matrix) Apply

func (m0 Matrix) Apply(m1 Matrix) Matrix

func (Matrix) Clone

func (m0 Matrix) Clone() Matrix

func (Matrix) Conjugate

func (m0 Matrix) Conjugate() Matrix

func (Matrix) Dagger

func (m0 Matrix) Dagger() Matrix

func (Matrix) Dimension

func (m0 Matrix) Dimension() (int, int)

func (Matrix) Equals

func (m0 Matrix) Equals(m1 Matrix, eps ...float64) bool

func (Matrix) Inverse

func (m0 Matrix) Inverse() Matrix

func (Matrix) IsHermite

func (m0 Matrix) IsHermite(eps ...float64) bool

func (Matrix) IsUnitary

func (m0 Matrix) IsUnitary(eps ...float64) bool

func (Matrix) Mul

func (m0 Matrix) Mul(z complex128) Matrix

func (Matrix) Sub

func (m0 Matrix) Sub(m1 Matrix) Matrix

func (Matrix) TensorProduct

func (m0 Matrix) TensorProduct(m1 Matrix) Matrix

func (Matrix) Trace

func (m0 Matrix) Trace() complex128

func (Matrix) Transpose

func (m0 Matrix) Transpose() Matrix

Jump to

Keyboard shortcuts

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