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
Type parameters
- This
-
The type of the class inheriting the NumericOps trait
Attributes
- 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
Type parameters
- B
-
type of the other operand
- That
-
result type of operation
Value parameters
- op
-
implicit evidence for operation between this and other
- other
-
other operand instance (divisor)
Attributes
Bit-wise AND
Bit-wise AND
Type parameters
- B
-
type of the other operand
- That
-
result type of operation
Value parameters
- op
-
implicit evidence for operation between this and other
- other
-
other operand instance
Attributes
Logical AND
Logical AND
Type parameters
- B
-
type of the other operand
- That
-
result type of operation
Value parameters
- op
-
implicit evidence for operation between this and other
- other
-
other operand instance
Attributes
Multiplication
Multiplication
Type parameters
- B
-
type of the other operand
- That
-
result type of operation
Value parameters
- op
-
implicit evidence for operation between this and other
- other
-
other operand instance
Attributes
Exponentiation
Exponentiation
Type parameters
- B
-
type of the other operand
- That
-
result type of operation
Value parameters
- op
-
implicit evidence for operation between this and other
- other
-
other operand instance (exponent)
Attributes
Addition
Addition
Type parameters
- B
-
type of the other operand
- That
-
result type of operation
Value parameters
- op
-
implicit evidence for operation between this and other
- other
-
other operand instance
Attributes
Subtraction
Subtraction
Type parameters
- B
-
type of the other operand
- That
-
result type of operation
Value parameters
- op
-
implicit evidence for operation between this and other
- other
-
other operand instance
Attributes
Division
Division
Type parameters
- B
-
type of the other operand
- That
-
result type of operation
Value parameters
- op
-
implicit evidence for operation between this and other
- other
-
other operand instance (divisor)
Attributes
Less-than comparison operator
Less-than comparison operator
Type parameters
- B
-
type of the other operand
- That
-
result type of operation
Value parameters
- op
-
implicit evidence for operation between this and other
- other
-
other operand instance
Attributes
Bit-shift left
Bit-shift left
Type parameters
- B
-
type of the other operand
- That
-
result type of operation
Value parameters
- op
-
implicit evidence for operation between this and other
- other
-
other operand instance
Attributes
Less-than-or-equal-to comparison operator
Less-than-or-equal-to comparison operator
Type parameters
- B
-
type of the other operand
- That
-
result type of operation
Value parameters
- op
-
implicit evidence for operation between this and other
- other
-
other operand instance
Attributes
Element-wise inequality operator
Element-wise inequality operator
Type parameters
- B
-
type of the other operand
- That
-
result type of operation
Value parameters
- op
-
implicit evidence for operation between this and other
- other
-
other operand instance
Attributes
Element-wise equality operator
Element-wise equality operator
Type parameters
- B
-
type of the other operand
- That
-
result type of operation
Value parameters
- op
-
implicit evidence for operation between this and other
- other
-
other operand instance
Attributes
Greater-than comparison operator
Greater-than comparison operator
Type parameters
- B
-
type of the other operand
- That
-
result type of operation
Value parameters
- op
-
implicit evidence for operation between this and other
- other
-
other operand instance
Attributes
Greater-than-or-equal-to comparison operator
Greater-than-or-equal-to comparison operator
Type parameters
- B
-
type of the other operand
- That
-
result type of operation
Value parameters
- op
-
implicit evidence for operation between this and other
- other
-
other operand instance
Attributes
Bit-shift right (arithmetic)
Bit-shift right (arithmetic)
Type parameters
- B
-
type of the other operand
- That
-
result type of operation
Value parameters
- op
-
implicit evidence for operation between this and other
- other
-
other operand instance
Attributes
Bit-shift right (logical)
Bit-shift right (logical)
Type parameters
- B
-
type of the other operand
- That
-
result type of operation
Value parameters
- op
-
implicit evidence for operation between this and other
- other
-
other operand instance
Attributes
Bit-wise EXCLUSIVE OR
Bit-wise EXCLUSIVE OR
Type parameters
- B
-
type of the other operand
- That
-
result type of operation
Value parameters
- op
-
implicit evidence for operation between this and other
- other
-
other operand instance
Attributes
Dot (inner) product
Dot (inner) product
Type parameters
- B
-
type of the other operand
- That
-
result type of operation
Value parameters
- op
-
implicit evidence for operation between this and other
- other
-
other operand instance
Attributes
Outer product
Outer product
Type parameters
- B
-
type of the other operand
- That
-
result type of operation
Value parameters
- op
-
implicit evidence for operation between this and other
- other
-
other operand instance
Attributes
Logical EXCLUSIVE OR
Logical EXCLUSIVE OR
Type parameters
- B
-
type of the other operand
- That
-
result type of operation
Value parameters
- op
-
implicit evidence for operation between this and other
- other
-
other operand instance
Attributes
Bit-wise OR
Bit-wise OR
Type parameters
- B
-
type of the other operand
- That
-
result type of operation
Value parameters
- op
-
implicit evidence for operation between this and other
- other
-
other operand instance