matrix

package
v0.0.0-...-7a7f204 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatricesToBytes

func MatricesToBytes(in []*Matrix) []byte

func Matrix128ToBytes

func Matrix128ToBytes(in *Matrix128) []byte

func MatrixToBytes

func MatrixToBytes(in *Matrix) []byte

Types

type Matrix

type Matrix struct {
	// contains filtered or unexported fields
}

func BinaryMul

func BinaryMul(a *Matrix, b *MatrixBytes) *Matrix

func BytesToMatrices

func BytesToMatrices(in []byte) []*Matrix

func BytesToMatrix

func BytesToMatrix(in []byte) *Matrix

func Mul

func Mul(a *Matrix, b *Matrix) *Matrix

func New

func New(r int, c int) *Matrix

func NewGauss

func NewGauss(r int, c int) *Matrix

func NewRandom

func NewRandom(rnd io.Reader, r int, c int) *Matrix

func NewWithData

func NewWithData(r int, c int, data []uint32) *Matrix

func (*Matrix) Add

func (a *Matrix) Add(b *Matrix)

func (*Matrix) BytesSize

func (a *Matrix) BytesSize() float64

func (*Matrix) Cols

func (m *Matrix) Cols() int

func (*Matrix) Get

func (m *Matrix) Get(r int, c int) uint32

func (*Matrix) Len

func (m *Matrix) Len() int

func (*Matrix) Rows

func (m *Matrix) Rows() int

func (*Matrix) Set

func (m *Matrix) Set(r int, c int, v uint32)

func (*Matrix) SetData

func (m *Matrix) SetData(i int, v uint32)

func (*Matrix) Sub

func (a *Matrix) Sub(b *Matrix)

type Matrix128

type Matrix128 struct {
	// contains filtered or unexported fields
}

func BinaryMul128

func BinaryMul128(a *Matrix128, b *MatrixBytes) *Matrix128

func BytesToMatrix128

func BytesToMatrix128(in []byte) *Matrix128

func Mul128

func Mul128(a *Matrix128, b *Matrix128) *Matrix128

func New128

func New128(r int, c int) *Matrix128

func NewGauss128

func NewGauss128(r int, c int) *Matrix128

func NewRandom128

func NewRandom128(rnd io.Reader, r int, c int) *Matrix128

func (*Matrix128) Add

func (a *Matrix128) Add(b *Matrix128)

func (*Matrix128) BytesSize

func (a *Matrix128) BytesSize() float64

func (*Matrix128) Cols

func (m *Matrix128) Cols() int

func (*Matrix128) Get

func (m *Matrix128) Get(r int, c int) uint128.Uint128

func (*Matrix128) Rows

func (m *Matrix128) Rows() int

func (*Matrix128) Set

func (m *Matrix128) Set(r int, c int, v uint128.Uint128)

func (*Matrix128) Sub

func (a *Matrix128) Sub(b *Matrix128)

type MatrixBytes

type MatrixBytes struct {
	// contains filtered or unexported fields
}

func NewBytes

func NewBytes(r int, c int) *MatrixBytes

func (*MatrixBytes) Get

func (m *MatrixBytes) Get(r int, c int) byte

func (*MatrixBytes) Len

func (m *MatrixBytes) Len() int

func (*MatrixBytes) SetData

func (m *MatrixBytes) SetData(i int, v byte)

Jump to

Keyboard shortcuts

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