org.saddle

ops

package ops

Provides type aliases for a few basic operations

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ops
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait Add extends ScalarOp

  2. type AddOp[T] = BinOp[Add, T, T, T]

  3. trait AndOp extends ScalarOp

  4. trait BinOp[O <: OpType, -X, -Y, +Z] extends AnyRef

    Concrete implementations of BinOp provide primitive-specialized support for performing binary operations on elements of the following objects, as well as the objects themselves:

    Concrete implementations of BinOp provide primitive-specialized support for performing binary operations on elements of the following objects, as well as the objects themselves:

    Appropriate BinOp instances are made available in an implicit context in order for the org.saddle.ops.NumericOps methods inherited by the structures above to operate in a seamless fashion.

    For example:

    Vec(1,2,3) * Vec(4,5,6) == Vec(4,10,18)

    The multiplication above relies on two BinOp implementations: the first is BinOp[Multiply, Vec, Vec, Vec], whose implementation in turn relies on BinOp[Multiply, Int, Int, Int].

    Annotations
    @implicitNotFound( ... )
  5. trait BinOpFrame extends AnyRef

    Provides concrete implementations of binary operations for org.saddle.Frame; these instances provide implicit support for org.saddle.ops.NumericOps methods which are inherited by Frame.

  6. trait BinOpMat extends AnyRef

    Provides concrete implementations of binary operations for org.saddle.Mat; these instances provide implicit support for org.saddle.ops.NumericOps methods which are inherited by Mat.

  7. trait BinOpSeries extends AnyRef

    Provides concrete implementations of binary operations for org.saddle.Series; these instances provide implicit support for org.saddle.ops.NumericOps methods which are inherited by Series.

  8. trait BinOpVec extends AnyRef

    Provides concrete implementations of binary operations for org.saddle.Vec; these instances provide implicit support for org.saddle.ops.NumericOps methods which are inherited by Vec.

  9. trait BitAnd extends ScalarOp

  10. trait BitOr extends ScalarOp

  11. trait BitShl extends ScalarOp

  12. trait BitShr extends ScalarOp

  13. trait BitUShr extends ScalarOp

  14. trait BitXor extends ScalarOp

  15. type DivOp[T] = BinOp[Divide, T, T, T]

  16. trait Divide extends ScalarOp

  17. trait EqOp extends ScalarOp

  18. trait GtOp extends ScalarOp

  19. trait GteOp extends ScalarOp

  20. trait InnerProd extends MatrixOp

  21. trait LtOp extends ScalarOp

  22. trait LteOp extends ScalarOp

  23. trait MatrixOp extends OpType

  24. trait Mod extends ScalarOp

  25. type MulOp[T] = BinOp[Multiply, T, T, T]

  26. trait Multiply extends ScalarOp

  27. trait NeqOp extends ScalarOp

  28. trait NumericOps[+This] extends AnyRef

    NumericOps provides a mix-in trait for mathematical objects, which in Saddle include:

    NumericOps provides a mix-in trait for mathematical objects, which in Saddle include:

    The methods of this trait allow certain element-wise operations involving these objects to be expressed more naturally as mathematical expressions.

    For instance:

    Vec(1,2,4) << 1 == Vec(2,4,8)
    Vec(1,2,4) + Vec(3,5,7) == Vec(4,7,11)
    Vec(1,2,4) dot Vec(3,5,7) == 41
    This

    The type of the class inheriting the NumericOps trait

  29. sealed trait OpType extends AnyRef

    All operations on Saddle objects are defined via instances of subtypes of the trait OpType.

    All operations on Saddle objects are defined via instances of subtypes of the trait OpType. The instances further derive from ScalarOp or MatrixOp, depending on whether the second operand is a scalar or higher-dimensional object.

  30. trait OrOp extends ScalarOp

  31. trait OuterProd extends MatrixOp

  32. trait Power extends ScalarOp

  33. trait ScalarOp extends OpType

  34. type SubOp[T] = BinOp[Subtract, T, T, T]

  35. trait Subtract extends ScalarOp

  36. trait XorOp extends ScalarOp

Value Members

  1. object BinOp

    Contains implementations of primitive binary ops that are NA-aware

    Contains implementations of primitive binary ops that are NA-aware

    Double primitive has NA bit pattern baked into its representation, but for others we must check for the appropriate sentinel value.

    Note scala.Function2 is not specialized on Boolean inputs, only output

Inherited from AnyRef

Inherited from Any

Ungrouped