simd

package
v0.0.0-...-2af2c34 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Matmul

func Matmul(dst, m, n *Matrix)

Matmul multiplies matrix M by N and writes the result into dst

Types

type Matrix

type Matrix struct {
	Data []float32 `json:"data"`
	Rows int       `json:"rows"`
	Cols int       `json:"cols"`
}

Matrix represents a Matrix using the conventional storage scheme.

func NewMatrix

func NewMatrix(r, c int, data []float32) Matrix

NewMatrix creates a new dense matrix

func (*Matrix) String

func (mx *Matrix) String() string

String returns a string representation of the matrix

Jump to

Keyboard shortcuts

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