zmatrix

package
v0.0.0-...-032b0eb Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FreeMatrix

func FreeMatrix(mat MatrixFloat64)

func MatrixFloat64Mul

func MatrixFloat64Mul(a []float64, b []float64, c []float64, grid []int32, block []int32, index int, m, n, k int64)

func VerifyFloat64RandResult

func VerifyFloat64RandResult(a *MatrixFloat64, b *MatrixFloat64, result *MatrixFloat64) bool

func VerifyGoNumResult

func VerifyGoNumResult(a []float64, b *MatrixFloat64, result []float64, begin int) bool

func VerifyRandResult

func VerifyRandResult(a *Matrix, b *Matrix, result *Matrix) bool

func VerifyResult

func VerifyResult(a *Matrix, b *Matrix) bool

Types

type Matrix

type Matrix struct {
	Row  int //行
	Col  int //列
	Data *[maxInt]int32
}

func (*Matrix) Rand

func (m *Matrix) Rand()

type MatrixFloat64

type MatrixFloat64 struct {
	Row int64 //行
	Col int64 //列

	Data []float64
	// contains filtered or unexported fields
}

func GpuMatrixFloat64Mul

func GpuMatrixFloat64Mul(a *MatrixFloat64, b *MatrixFloat64, index int) (*MatrixFloat64, error)

func NewMatrixFloat64

func NewMatrixFloat64(row, col int64) MatrixFloat64

func (*MatrixFloat64) Rand

func (m *MatrixFloat64) Rand()

Jump to

Keyboard shortcuts

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