Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BMatrix2d ¶
type BMatrix2d struct { Mat [][]byte // contains filtered or unexported fields }
BMatrix2d is a two dimensional array of bytes
func NewBMatrix2d ¶
NewBMatrix2d gives us a two dimensional matrix of m x n. We do not need the pointer to the backing store for simple use, but we keep it in case we want to resize the matrix
func (*BMatrix2d) Resize ¶
Resize takes a matrix and desired size. If the size is too small, it reallocates the backing array. If the size is big enough, but the dimensions are not right, it runs over the pointers and sets them. It will not reduce the space needed by a matrix.
type FMatrix2d ¶
type FMatrix2d struct { Mat [][]float32 // contains filtered or unexported fields }
------------------------------------------------------------
float32's
FMatrix2d is a two dimensional array of float32's
func NewFMatrix2d ¶
NewFMatrix2d gives us a two dimensional matrix of m x n. We do not need the pointer to the backing store for simple use, but we keep it in case we want to resize the matrix
func (*FMatrix2d) BackingDataString ¶
BackingDataString returns a string with the contents of the underlying array. It is only exported so the test file can get to it.
func (*FMatrix2d) Resize ¶
Resize takes a matrix and desired size. If the size is too small, it reallocates the backing array. If the size is big enough, but the dimensions are not right, it runs over the pointers and sets them. It will not reduce the space needed by a matrix.
type IMatrix2d ¶
type IMatrix2d struct { Mat [][]int32 // contains filtered or unexported fields }
------------------------------------------------------------
int32's
IMatrix2d is a two dimensional array of bytes
func NewIMatrix2d ¶
NewIMatrix2d gives us a two dimensional matrix of m x n for int32's.