Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Size is the link size Size = 16 // Input is the network input size Input = Size + 2*Size // Scale is the scale of the search Scale = 33 //48 96 // Samples is the number of samplee Samples = Scale * (Scale - 1) / 2 // TapeSize is the size of the tape TapeSize = 8 // TapeMask is the mask for the MSB of the tape TapeMask = 1 << (TapeSize - 1) )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Matrix ¶
type Matrix struct { Cols int Rows int Data []complex128 }
Matrix is a float64 matrix
func NewMatrix ¶
func NewMatrix(cols, rows int, data ...complex128) Matrix
NewMatrix creates a new float64 matrix
func NewZeroMatrix ¶
NewZeroMatrix creates a new float64 matrix of zeros
type RandomMatrix ¶
RandomMatrix is a random matrix
func NewRandomMatrix ¶
func NewRandomMatrix(cols, rows int, seed int64) RandomMatrix
NewRandomMatrix creates a new gaussian random matrix
func (RandomMatrix) Sample ¶
func (g RandomMatrix) Sample() Matrix
Sample generates a matrix from a gaussian distribution
type Sample ¶
type Sample struct { A RandomMatrix B RandomMatrix Order [2]RandomMatrix Symbol [2]RandomMatrix Ranks []float64 Variance float64 }
Sample is a sample
Click to show internal directories.
Click to hide internal directories.