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
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- Scalar
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def fromByte(n: Byte): S
- abstract def fromDouble(n: Double): S
- abstract def fromFloat(n: Float): S
- abstract def fromInt(n: Int): S
- abstract def fromLong(n: Long): S
- abstract def fromShort(n: Short): S
- abstract def getClass(): Class[_ <: AnyRef]
- Definition Classes
- Any
- abstract def minus(s1: S, s2: S): S
- abstract def one: S
- abstract def plus(s1: S, s2: S): S
- abstract def times(s1: S, s2: S): S
- abstract def timesDouble(s1: S, d: Double): Double
- abstract def toByte(a: S): Byte
- abstract def toDouble(a: S): Double
- abstract def toFloat(a: S): Float
- abstract def toInt(a: S): Int
- abstract def toLong(a: S): Long
- abstract def toShort(a: S): Short
- abstract def zero: S
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##(): Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def equals(arg0: Any): Boolean
- Definition Classes
- Any
- def hashCode(): Int
- Definition Classes
- Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def toString(): String
- Definition Classes
- Any