Documentation ¶
Index ¶
- Constants
- func Lane(row, col int) int
- func RowCol(lane int) (int, int)
- type Day
- type Matrix
- func (m Matrix) Add(a uint64)
- func (m Matrix) AddInMap(portMap PortMap, a uint64)
- func (m Matrix) Assign(a uint64)
- func (m Matrix) AtLeast(a uint64)
- func (m Matrix) AtMost(a uint64)
- func (m Matrix) Binary()
- func (m Matrix) BinaryStr() string
- func (m Matrix) Ceil(a uint64)
- func (m Matrix) Clear()
- func (m Matrix) Clone() Matrix
- func (m Matrix) ColSum(v Vector)
- func (m Matrix) Diameter() int
- func (m Matrix) Div(a uint64) Matrix
- func (m Matrix) Empty() bool
- func (m Matrix) Equals(m2 Matrix) bool
- func (m Matrix) Floor(a uint64)
- func (m Matrix) IsPortMap() bool
- func (m Matrix) Madd(m2 Matrix)
- func (m Matrix) MapAdd(pm PortMap, a uint64)
- func (m Matrix) MapInc(pm PortMap)
- func (m Matrix) Marshal() string
- func (m Matrix) Massign(m2 Matrix)
- func (m Matrix) MatLeast(m2 Matrix)
- func (m Matrix) MatMost(m2 Matrix)
- func (m Matrix) MatrixStr() string
- func (m Matrix) Max(a uint64)
- func (m Matrix) MaxLineSum() uint64
- func (m Matrix) Mdiv(m2 Matrix)
- func (m Matrix) MdivUp(m2 Matrix)
- func (m Matrix) Min(a uint64)
- func (m Matrix) MinInMap(portMap PortMap) uint64
- func (m Matrix) Mmax(m2 Matrix)
- func (m Matrix) Mmin(m2 Matrix)
- func (m Matrix) Mmul(m2 Matrix)
- func (m Matrix) MnolessThan(m2 Matrix) bool
- func (m Matrix) Msub(m2 Matrix)
- func (m Matrix) Mul(a uint64)
- func (m Matrix) NonZeroAdd(a uint64)
- func (m Matrix) NonZeroAtLeast(a uint64)
- func (m Matrix) NormDown(norm uint64, buf Vector)
- func (m Matrix) NormUp(norm uint64, rowBuf, colBuf Vector)
- func (m Matrix) Round(a uint64)
- func (m Matrix) RoundDiv(a uint64)
- func (m Matrix) RowSum(v Vector)
- func (m Matrix) Set(row, col int, i uint64)
- func (m Matrix) Sparse() Sparse
- func (m Matrix) SparseStr() string
- func (m Matrix) String() string
- func (m Matrix) Sub(a uint64)
- func (m Matrix) SubInMap(portMap PortMap, a uint64)
- func (m Matrix) Sum() uint64
- func (m Matrix) Sums(rowSum, colSum Vector) uint64
- func (m Matrix) ToPortMap() PortMap
- func (m Matrix) TrimUnder(a uint64)
- type PortMap
- func (self PortMap) Clear()
- func (self PortMap) Clone() PortMap
- func (self PortMap) CopyInto(other PortMap)
- func (self PortMap) Direct()
- func (self PortMap) Equal(other PortMap) bool
- func (self PortMap) FillReverse(ret PortMap)
- func (self PortMap) FillUp()
- func (self PortMap) Mask(mask Matrix)
- func (self PortMap) Matrix() Matrix
- func (self PortMap) Rand(r *rand.Rand)
- func (self PortMap) String() string
- type Sparse
- func (s Sparse) AddAt(row, col int, a uint64)
- func (s Sparse) Assign(m Matrix)
- func (s Sparse) At(row, col int) uint64
- func (s Sparse) Clear()
- func (s Sparse) CopyFrom(other Sparse) Sparse
- func (s Sparse) Get(lane int) uint64
- func (s Sparse) Matrix() Matrix
- func (s Sparse) MinInMap(pm PortMap) uint64
- func (s Sparse) Set(lane int, a uint64)
- func (s Sparse) SetAt(row, col int, a uint64)
- func (s Sparse) Sub(row, col int, delta uint64)
- func (s Sparse) SubInMap(pm PortMap, w uint64)
- func (s Sparse) SubTrim(row, col int, delta, min uint64)
- func (s Sparse) Sums(rowSum Vector, colSum Vector) uint64
- func (s Sparse) Thres(min uint64) Sparse
- func (s Sparse) ThresFrom(other Sparse, min uint64) Sparse
- type SparseCol
- type Vector
- func (v Vector) Assign(a uint64)
- func (v Vector) Cap(a uint64)
- func (v Vector) Clear()
- func (v Vector) Div(a uint64)
- func (v Vector) Leq(a uint64) bool
- func (v Vector) Max() uint64
- func (v Vector) Reach(a uint64)
- func (v Vector) String() string
- func (v Vector) SubBy(a uint64)
- func (v Vector) Sum() uint64
- func (v Vector) Vadd(v2 Vector)
- func (v Vector) Vtrim(v2 Vector)
Constants ¶
View Source
const InvalidPort = -1
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Day ¶
func (*Day) ApplyBandw ¶
type Matrix ¶
type Matrix []uint64
func NewMatrixOf ¶
func (Matrix) MaxLineSum ¶
func (Matrix) MnolessThan ¶
func (Matrix) NonZeroAdd ¶
func (Matrix) NonZeroAtLeast ¶
type PortMap ¶
type PortMap []int
func DirectPortMap ¶
func DirectPortMap() PortMap
func NewPortMap ¶
func NewPortMap() PortMap
func RandPortMap ¶
func (PortMap) FillReverse ¶
Click to show internal directories.
Click to hide internal directories.