quaternion

package
v0.0.0-...-41d7962 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Matrix

type Matrix struct {
	Cols   int
	Rows   int
	Data   []quat.Number
	States [][]quat.Number
}

Matrix is a quaternion matrix

func Activation

func Activation(m Matrix) Matrix

Activation is a quaternion activation function

func Add

func Add(m Matrix, n Matrix) Matrix

Add adds two quaternion matrices

func EverettActivation

func EverettActivation(m Matrix) Matrix

EverettActivation is the everett quaternion activation function

func MulT

func MulT(m Matrix, n Matrix) Matrix

MulT multiplies two quaternion matrices and computes the transpose

func NewMatrix

func NewMatrix(states, cols, rows int) Matrix

NewMatrix creates a new quaternion matrix

func NewRandQuatMatrix

func NewRandQuatMatrix(rnd *rand.Rand, states, cols, rows int) Matrix

NewRandMatrix creates a new random quaternion matrix

func (Matrix) Size

func (m Matrix) Size() int

Size is the size of the quaternion matrix

Jump to

Keyboard shortcuts

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