Documentation ¶
Index ¶
- func MatricesToBytes(in []*Matrix) []byte
- func Matrix128ToBytes(in *Matrix128) []byte
- func MatrixToBytes(in *Matrix) []byte
- type Matrix
- func BinaryMul(a *Matrix, b *MatrixBytes) *Matrix
- func BytesToMatrices(in []byte) []*Matrix
- func BytesToMatrix(in []byte) *Matrix
- func Mul(a *Matrix, b *Matrix) *Matrix
- func New(r int, c int) *Matrix
- func NewGauss(r int, c int) *Matrix
- func NewRandom(rnd io.Reader, r int, c int) *Matrix
- func NewWithData(r int, c int, data []uint32) *Matrix
- func (a *Matrix) Add(b *Matrix)
- func (a *Matrix) BytesSize() float64
- func (m *Matrix) Cols() int
- func (m *Matrix) Get(r int, c int) uint32
- func (m *Matrix) Len() int
- func (m *Matrix) Rows() int
- func (m *Matrix) Set(r int, c int, v uint32)
- func (m *Matrix) SetData(i int, v uint32)
- func (a *Matrix) Sub(b *Matrix)
- type Matrix128
- type MatrixBytes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatricesToBytes ¶
func Matrix128ToBytes ¶
func MatrixToBytes ¶
Types ¶
type Matrix ¶
type Matrix struct {
// contains filtered or unexported fields
}
func BinaryMul ¶
func BinaryMul(a *Matrix, b *MatrixBytes) *Matrix
func BytesToMatrices ¶
func BytesToMatrix ¶
type Matrix128 ¶
type Matrix128 struct {
// contains filtered or unexported fields
}
func BinaryMul128 ¶
func BinaryMul128(a *Matrix128, b *MatrixBytes) *Matrix128
func BytesToMatrix128 ¶
func NewGauss128 ¶
type MatrixBytes ¶
type MatrixBytes struct {
// contains filtered or unexported fields
}
func NewBytes ¶
func NewBytes(r int, c int) *MatrixBytes
func (*MatrixBytes) Len ¶
func (m *MatrixBytes) Len() int
func (*MatrixBytes) SetData ¶
func (m *MatrixBytes) SetData(i int, v byte)
Click to show internal directories.
Click to hide internal directories.