Documentation
¶
Index ¶
- type Matrix
- func (matrix *Matrix) Clone() Matrix
- func (matrix *Matrix) Column(n int) (*Vector, error)
- func (matrix *Matrix) Diagonals() []Vector
- func (matrix *Matrix) Dot(matrix2 Matrix) Matrix
- func (matrix *Matrix) Equal(m Matrix) bool
- func (matrix *Matrix) Get(i int, j int) (int, error)
- func (matrix *Matrix) GetPoint(p point.Point) (int, error)
- func (matrix *Matrix) Mirror() (*Matrix, error)
- func (matrix1 *Matrix) PatternMatch(matrix2 Matrix, mask Matrix) Matrix
- func (matrix *Matrix) PrintText()
- func (matrix *Matrix) PrintValues()
- func (matrix *Matrix) Reduce(fn func(a int, b int) int, initial int) int
- func (matrix *Matrix) Row(i int) (*Vector, error)
- func (matrix *Matrix) Set(i int, j int, value int)
- func (matrix *Matrix) SetPoint(p point.Point, value int)
- func (matrix *Matrix) Size() (int, int)
- func (matrix *Matrix) SubMatrix(iStart int, jStart int, iEnd int, jEnd int) Matrix
- func (matrix *Matrix) Transpose() (*Matrix, error)
- type Vector
- func (v *Vector) All(f func(a int, b int) bool) bool
- func (v *Vector) Any(f func(a int, b int) bool) bool
- func (v *Vector) Clone() Vector
- func (v *Vector) Equal(v2 Vector) bool
- func (v *Vector) Get(n int) int
- func (v *Vector) PrintValues()
- func (v *Vector) Reduce(fn func(a int, b int) int, initial int) int
- func (v *Vector) Remove(s int) Vector
- func (v *Vector) Reverse() Vector
- func (v *Vector) Set(position int, value int)
- func (v *Vector) Size() int
- func (v *Vector) Slice(start int, end int) Vector
- func (v *Vector) ToTextString() string
- func (v *Vector) ToValuesString() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Matrix ¶
type Matrix struct {
Rows []Vector
}
func NewEmptyMatrix ¶
func NewMatrixWithValue ¶
func ParseRuneMatrix ¶
func (*Matrix) PatternMatch ¶
func (*Matrix) PrintValues ¶
func (matrix *Matrix) PrintValues()
type Vector ¶
type Vector struct {
Values []int
}
func NewEmptyVector ¶
func NewVectorWithValue ¶
func ParseRuneVector ¶
func VectorFromSlice ¶
func (*Vector) PrintValues ¶
func (v *Vector) PrintValues()
func (*Vector) ToTextString ¶
func (*Vector) ToValuesString ¶
Click to show internal directories.
Click to hide internal directories.