Abstract supertype of types that support scaling by a numeric factor s ** x. Examples of such types include vectors and matrices.

Implementations should generally respect the following constraints, where relevant:

  • x == 1**x

Implementations of Scalable are encouraged to also satisfy Invertable, in which case, the following identity should be respected:

  • -x == -1**x

Implementations of Scalable usually also satisfy Summable, in which case, the following identity should be respected:

  • x+x == 2**x
By: Gavin
Inherited Attributes
Attributes inherited from: Object
Methods
scaleSource Code
shared formal Value scale(Scale scalar)

Scale this value by the given scale factor.

Inherited Methods
Methods inherited from: Object