DyadicOperationTimes

com.phasmidsoftware.number.core.inner.DyadicOperationTimes

Represents the dyadic multiplication operation, where the operation is performed for various numeric types (Int, Rational, Double) using predefined functions.

This object provides the implementation of the multiplication operation specific to each numeric type, with safeguards to handle exceptions and ensure safety through Try.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Operation
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Inherited types

type MirroredElemLabels = EmptyTuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Singleton
type MirroredElemTypes = EmptyTuple

Attributes

Inherited from:
Singleton
type MirroredMonoType = this.type

The mirrored *-type.

The mirrored *-type.

Attributes

Inherited from:
Singleton
type MirroredType = this.type

Attributes

Inherited from:
Singleton

Inherited and Abstract types

type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Inherited methods

def fromProduct(p: Product): MirroredMonoType

Creates a new instance of type T with elements taken from product p.

Creates a new instance of type T with elements taken from product p.

Attributes

Inherited from:
Singleton
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product

Concrete fields

val absolute: Boolean

Indicates whether the operation should treat values in absolute terms. When set to false, the operation does not enforce absolute values.

Indicates whether the operation should treat values in absolute terms. When set to false, the operation does not enforce absolute values.

Attributes

Defines a tuple of dyadic functions where each function attempts to perform multiplication for a specific numeric type and returns the result wrapped in a Try.

Defines a tuple of dyadic functions where each function attempts to perform multiplication for a specific numeric type and returns the result wrapped in a Try.

  • The first function handles multiplication for integers using safe arithmetic.
  • The second function handles multiplication for Rational numbers using the implicit Numeric instance.
  • The third function handles multiplication for Double values using the implicit Numeric instance.

Attributes