trait Scalar[S] extends Any

Trait signifying that the data is scalar (i.e., numeric).

Note that while unsigned integral types (UByte, UShort, UInt, ULong) are supported, some operations may be significantly slower than when using the built-in primitive (signed) data types. In other words, it may be worthwile to directly map the data to a signed type after reading, then working with the signed data.

S

the type of the actual scalar data.

Linear Supertypes
Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Scalar
  2. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def fromByte(n: Byte): S
  2. abstract def fromDouble(n: Double): S
  3. abstract def fromFloat(n: Float): S
  4. abstract def fromInt(n: Int): S
  5. abstract def fromLong(n: Long): S
  6. abstract def fromShort(n: Short): S
  7. abstract def minus(s1: S, s2: S): S
  8. abstract def one: S
  9. abstract def plus(s1: S, s2: S): S
  10. abstract def times(s1: S, s2: S): S
  11. abstract def timesDouble(s1: S, d: Double): Double
  12. abstract def toByte(a: S): Byte
  13. abstract def toDouble(a: S): Double
  14. abstract def toFloat(a: S): Float
  15. abstract def toInt(a: S): Int
  16. abstract def toLong(a: S): Long
  17. abstract def toShort(a: S): Short
  18. abstract def zero: S