Documentation
¶
Index ¶
- type VectOp
- func (s VectOp) Abs() VectOp
- func (s VectOp) Apply(f fs.IndexedFunc) VectOp
- func (s VectOp) ApplyOp(f fs.Operator) VectOp
- func (s VectOp) ApplyOpi(f fs.IndexedOperator) VectOp
- func (s VectOp) DivOp(o fs.IndexedFunc) VectOp
- func (s VectOp) DivOpi(o fs.IndexedOperator) VectOp
- func (s VectOp) Divl(value float64) VectOp
- func (s VectOp) Divv(v []float64) VectOp
- func (s VectOp) Dot(v []float64) float64
- func (s VectOp) Exp() VectOp
- func (s VectOp) Expl(value float64) VectOp
- func (s VectOp) ForEach(c fs.Consumer)
- func (s VectOp) ForEachIndexed(c fs.IndexedConsumer)
- func (s VectOp) Head(n int) VectOp
- func (s VectOp) Ident() VectOp
- func (s VectOp) Idivl(value float64) VectOp
- func (s VectOp) IndexOf(p fs.Predicate) int
- func (s VectOp) IndexOfVal(value float64) int
- func (s VectOp) IndexesOf(p fs.Predicate) []int
- func (s VectOp) IndexesOfVal(value float64) []int
- func (s VectOp) Inv() VectOp
- func (s VectOp) Last() float64
- func (s VectOp) Log() VectOp
- func (s VectOp) Max() float64
- func (s VectOp) MaxOp(o fs.IndexedFunc) VectOp
- func (s VectOp) MaxOpi(o fs.IndexedOperator) VectOp
- func (s VectOp) Maxl(value float64) VectOp
- func (s VectOp) Maxv(v []float64) VectOp
- func (s VectOp) Min() float64
- func (s VectOp) MinOp(o fs.IndexedFunc) VectOp
- func (s VectOp) MinOpi(o fs.IndexedOperator) VectOp
- func (s VectOp) Minl(value float64) VectOp
- func (s VectOp) MinusOp(o fs.IndexedFunc) VectOp
- func (s VectOp) MinusOpi(o fs.IndexedOperator) VectOp
- func (s VectOp) Minusl(value float64) VectOp
- func (s VectOp) Minusv(v []float64) VectOp
- func (s VectOp) Minv(v []float64) VectOp
- func (s VectOp) Neg() VectOp
- func (s VectOp) PlusOp(o fs.IndexedFunc) VectOp
- func (s VectOp) PlusOpi(o fs.IndexedOperator) VectOp
- func (s VectOp) Plusl(value float64) VectOp
- func (s VectOp) Plusv(v []float64) VectOp
- func (s VectOp) PowOp(o fs.IndexedFunc) VectOp
- func (s VectOp) PowOpi(o fs.IndexedOperator) VectOp
- func (s VectOp) Powl(value float64) VectOp
- func (s VectOp) Powv(v []float64) VectOp
- func (s VectOp) Reduce(f fs.ReduceOperator, identity float64) float64
- func (s VectOp) Rev() VectOp
- func (s VectOp) SetMaskl(value float64, p is.Predicate) VectOp
- func (s VectOp) SetMaskv(v []float64, p is.Predicate) VectOp
- func (s VectOp) Setl(value float64) VectOp
- func (s VectOp) Setv(v []float64) VectOp
- func (s VectOp) Slice(start int, end int) VectOp
- func (s VectOp) Stream() <-chan float64
- func (s VectOp) Sum() float64
- func (s VectOp) Tail(n int) VectOp
- func (s VectOp) TimesOp(o fs.IndexedFunc) VectOp
- func (s VectOp) TimesOpi(o fs.IndexedOperator) VectOp
- func (s VectOp) Timesl(value float64) VectOp
- func (s VectOp) Timesv(v []float64) VectOp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VectOp ¶
type VectOp []float64
func (VectOp) DivOpi ¶
func (s VectOp) DivOpi(o fs.IndexedOperator) VectOp
-> s'[i] = s[i] / o(i, s[i])
func (VectOp) ForEachIndexed ¶
func (s VectOp) ForEachIndexed(c fs.IndexedConsumer)
-> c(i, s[i])...
func (VectOp) IndexOfVal ¶
-> index of the first occurrence of the specified value in this vector, or < 0 if absent...
func (VectOp) IndexesOf ¶
-> indexes of all occurrences of the specified value in this vector, or empty...
func (VectOp) IndexesOfVal ¶
--> indexes of all occurrences of the specified value in this vector, or empty...
func (VectOp) MaxOpi ¶
func (s VectOp) MaxOpi(o fs.IndexedOperator) VectOp
-> s'[i] = max(s[i], o(i, s[i]))
func (VectOp) MinOpi ¶
func (s VectOp) MinOpi(o fs.IndexedOperator) VectOp
-> s'[i] = min(s[i], o(i, s[i]))
func (VectOp) MinusOpi ¶
func (s VectOp) MinusOpi(o fs.IndexedOperator) VectOp
-> s'[i] = s[i] + o(i, s[i])
func (VectOp) PlusOpi ¶
func (s VectOp) PlusOpi(o fs.IndexedOperator) VectOp
-> s'[i] = s[i] + o(i, s[i])
func (VectOp) PowOpi ¶
func (s VectOp) PowOpi(o fs.IndexedOperator) VectOp
-> s'[i] = s[i] ^ o(i, s[i])
func (VectOp) Reduce ¶
func (s VectOp) Reduce(f fs.ReduceOperator, identity float64) float64
-> f[v[n - 1], ... f[v[2], f[v[1], f[v[0], identity]]]]
Click to show internal directories.
Click to hide internal directories.