NumericOps
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
Attributes
- This
The type of the class inheriting the NumericOps trait
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- Self type
- This
Members list
Value members
Concrete methods
Integer modulus of division
Integer modulus of division
Attributes
- B
type of the other operand
- That
result type of operation
- op
implicit evidence for operation between this and other
- other
other operand instance (divisor)
Bit-wise AND
Bit-wise AND
Attributes
- B
type of the other operand
- That
result type of operation
- op
implicit evidence for operation between this and other
- other
other operand instance
Logical AND
Logical AND
Attributes
- B
type of the other operand
- That
result type of operation
- op
implicit evidence for operation between this and other
- other
other operand instance
Multiplication
Multiplication
Attributes
- B
type of the other operand
- That
result type of operation
- op
implicit evidence for operation between this and other
- other
other operand instance
Exponentiation
Exponentiation
Attributes
- B
type of the other operand
- That
result type of operation
- op
implicit evidence for operation between this and other
- other
other operand instance (exponent)
Addition
Addition
Attributes
- B
type of the other operand
- That
result type of operation
- op
implicit evidence for operation between this and other
- other
other operand instance
Subtraction
Subtraction
Attributes
- B
type of the other operand
- That
result type of operation
- op
implicit evidence for operation between this and other
- other
other operand instance
Division
Division
Attributes
- B
type of the other operand
- That
result type of operation
- op
implicit evidence for operation between this and other
- other
other operand instance (divisor)
Less-than comparison operator
Less-than comparison operator
Attributes
- B
type of the other operand
- That
result type of operation
- op
implicit evidence for operation between this and other
- other
other operand instance
Bit-shift left
Bit-shift left
Attributes
- B
type of the other operand
- That
result type of operation
- op
implicit evidence for operation between this and other
- other
other operand instance
Less-than-or-equal-to comparison operator
Less-than-or-equal-to comparison operator
Attributes
- B
type of the other operand
- That
result type of operation
- op
implicit evidence for operation between this and other
- other
other operand instance
Element-wise inequality operator
Element-wise inequality operator
Attributes
- B
type of the other operand
- That
result type of operation
- op
implicit evidence for operation between this and other
- other
other operand instance
Element-wise equality operator
Element-wise equality operator
Attributes
- B
type of the other operand
- That
result type of operation
- op
implicit evidence for operation between this and other
- other
other operand instance
Greater-than comparison operator
Greater-than comparison operator
Attributes
- B
type of the other operand
- That
result type of operation
- op
implicit evidence for operation between this and other
- other
other operand instance
Greater-than-or-equal-to comparison operator
Greater-than-or-equal-to comparison operator
Attributes
- B
type of the other operand
- That
result type of operation
- op
implicit evidence for operation between this and other
- other
other operand instance
Bit-shift right (arithmetic)
Bit-shift right (arithmetic)
Attributes
- B
type of the other operand
- That
result type of operation
- op
implicit evidence for operation between this and other
- other
other operand instance
Bit-shift right (logical)
Bit-shift right (logical)
Attributes
- B
type of the other operand
- That
result type of operation
- op
implicit evidence for operation between this and other
- other
other operand instance
Bit-wise EXCLUSIVE OR
Bit-wise EXCLUSIVE OR
Attributes
- B
type of the other operand
- That
result type of operation
- op
implicit evidence for operation between this and other
- other
other operand instance
Dot (inner) product
Dot (inner) product
Attributes
- B
type of the other operand
- That
result type of operation
- op
implicit evidence for operation between this and other
- other
other operand instance
Outer product
Outer product
Attributes
- B
type of the other operand
- That
result type of operation
- op
implicit evidence for operation between this and other
- other
other operand instance
Logical EXCLUSIVE OR
Logical EXCLUSIVE OR
Attributes
- B
type of the other operand
- That
result type of operation
- op
implicit evidence for operation between this and other
- other
other operand instance
Bit-wise OR
Bit-wise OR
Attributes
- B
type of the other operand
- That
result type of operation
- op
implicit evidence for operation between this and other
- other
other operand instance