Documentation ¶
Index ¶
- func FreeMatrix(mat MatrixFloat64)
- func MatrixFloat64Mul(a []float64, b []float64, c []float64, grid []int32, block []int32, index int, ...)
- func VerifyFloat64RandResult(a *MatrixFloat64, b *MatrixFloat64, result *MatrixFloat64) bool
- func VerifyGoNumResult(a []float64, b *MatrixFloat64, result []float64, begin int) bool
- func VerifyRandResult(a *Matrix, b *Matrix, result *Matrix) bool
- func VerifyResult(a *Matrix, b *Matrix) bool
- type Matrix
- type MatrixFloat64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FreeMatrix ¶
func FreeMatrix(mat MatrixFloat64)
func MatrixFloat64Mul ¶
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 VerifyResult ¶
Types ¶
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()
Click to show internal directories.
Click to hide internal directories.