UFunc

trait UFunc extends HasOps

"Universal" Functions that mimic numpy's. A universal function is typically defined on anything that supports elementwise maps.

For example, exp is a UFunc: It just calls exp on all components of the passed in object.

Moreover, "operators" like breeze.linalg.operators.OpAdd are UFuncs as well, with syntactic sugar provided by way of breeze.linalg.NumericOps.

Additional implementations can be added as implicits by extending a UFunc's Impl, InPlaceImpl, or SinkImpl traits. For example, breeze.math.Complex extends breeze.numerics.log with the following implicit:

    implicit object logComplexImpl extends breeze.numerics.log.Impl[Complex, Complex] { def apply(v: Complex) = v.log }
Companion
object
trait HasOps
class Object
trait Matchable
class Any
object convert
object logDiff
object OpNot
object i0
object acos
object acosh
object atan2
object cos
object cosh
object digamma
object erfc
object erfcinv
object erfi
object erfinv
object exp
object gammp
object gammq
object isEven
object isFinite
object lgamma
object log
object log10
object log1p
object log2
object logI
object logit
object nextPower
object nextPower2
object pow
object sech
object sigmoid
object sinc
object sincpi
object step
object trigamma
object Beta
object ChiSquared
object Gamma
object Gaussian
object LogNormal
object StudentsT
object Uniform
object i1
object I
object abs
object asin
object asinh
object atan
object atanh
object cbrt
object ceil
object erf
object expm1
object floor
object isOdd
object relu
object rint
object round
object signum
object sin
object sinh
object sqrt
object tan
object tanh
object toDegrees
object toRadians
object clip
object OpAdd
object OpAnd
object OpDiv
object OpEq
object OpGT
object OpGTE
object OpLT
object OpLTE
object OpMod
object OpNe
object OpNeg
object OpOr
object OpPow
object OpSet
object OpSub
object OpXor
object primitive
object LU
object randn
object randomInt
object max
object min
object sum
object accumulate
object all
object any
object argmax
object argmin
object argsort
object argtopk
object cholesky
object cond
object det
object diag
object diff
object dim
object eig
object eigSym
object evdr
object fliplr
object flipud
object hsplit
object inv
object isClose
object kron
object logdet
object minMax
object mpow
object norm
object normalize
object pinv
object product
object ptp
object justR
object justQ
object justR
object justQ
object reduced
object qr
object qrp
object rank
object reshape
object reverse
object roll
object rot90
object scaleAdd
object shuffle
object softmax
object split
object reduced
object svd
object svdr
object tile
object trace
object unique
object vsplit
object where
object zipValues
object OpMulInner
trait OpType
object lbeta
object fourierTr
object iFourierTr
object sparse
object bincount
object corrcoeff
object covmat
object digitize
object hist
object mean
object median
object mode
object population
object stddev
object population
object variance
object lasso
object partition

Type members

Types

type Impl[V, VR] = UImpl[UFunc, V, VR]
type Impl2[V1, V2, VR] = UImpl2[UFunc, V1, V2, VR]
type Impl3[V1, V2, V3, VR] = UImpl3[UFunc, V1, V2, V3, VR]
type Impl4[V1, V2, V3, V4, VR] = UImpl4[UFunc, V1, V2, V3, V4, VR]
type InPlaceImpl2[V1, V2] = InPlaceImpl2[UFunc, V1, V2]
type InPlaceImpl3[V1, V2, V3] = InPlaceImpl3[UFunc, V1, V2, V3]
type SinkImpl[S, V] = SinkImpl[UFunc, S, V]
type SinkImpl2[S, V1, V2] = SinkImpl2[UFunc, S, V1, V2]
type SinkImpl3[S, V1, V2, V3] = SinkImpl3[UFunc, S, V1, V2, V3]

Value members

Concrete methods

final def apply[@specialized(Int, Double, Float) V, @specialized(Int, Double, Float) VR](v: V)(implicit impl: Impl[V, VR]): VR
final def apply[@specialized(Int, Double, Float) V1, @specialized(Int, Double, Float) V2, @specialized(Int, Double, Float) VR](v1: V1, v2: V2)(implicit impl: Impl2[V1, V2, VR]): VR
final def apply[V1, @specialized(Int, Double, Float) V2, @specialized(Int, Double, Float) V3, @specialized(Int, Double, Float) VR](v1: V1, v2: V2, v3: V3)(implicit impl: Impl3[V1, V2, V3, VR]): VR
final def apply[V1, V2, V3, V4, VR](v1: V1, v2: V2, v3: V3, v4: V4)(implicit impl: Impl4[V1, V2, V3, V4, VR]): VR
final def inPlace[V](v: V)(implicit impl: InPlaceImpl[UFunc, V]): V
final def inPlace[V, V2](v: V, v2: V2)(implicit impl: InPlaceImpl2[UFunc, V, V2]): V
final def inPlace[V, V2, V3](v: V, v2: V2, v3: V3)(implicit impl: InPlaceImpl3[UFunc, V, V2, V3]): V
final def withSink[S](s: S): WithSinkHelp[UFunc, S]