Scalar

org.saddle.scalar.Scalar$
See theScalar companion class
object Scalar

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Scalar.type

Members list

Type members

Classlikes

implicit class UnboxD(s: Scalar[Double])

Attributes

Supertypes
class Object
trait Matchable
class Any
implicit class UnboxF(s: Scalar[Float])

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[T](x: T)(implicit st: ScalarTag[T]): Scalar[T]

An Scalar factory which creates Value(x) when the argument is neither null nor an NA primitive; otherwise produces NA.

An Scalar factory which creates Value(x) when the argument is neither null nor an NA primitive; otherwise produces NA.

Value parameters

x

the value

Attributes

Returns

Value(value) if value not null or NA primitive; otherwise NA

Implicits

Implicits

final implicit def UnboxD(s: Scalar[Double]): UnboxD
final implicit def UnboxF(s: Scalar[Float]): UnboxF
implicit def ord[T : Order]: Order[Scalar[T]]

Provides comparisons of Scalars, where NA always evaluates as greater than non-NA

Provides comparisons of Scalars, where NA always evaluates as greater than non-NA

Attributes

implicit def scalarToOption[T](sc: Scalar[T]): Option[T]

Scalar is isomorphic to Option

Scalar is isomorphic to Option

Attributes

implicit def scalarUnboxD(ds: Scalar[Double]): Double

Provides implicit unboxing from double scalar to primitive

Provides implicit unboxing from double scalar to primitive

Attributes

implicit def scalarUnboxF(ds: Scalar[Float]): Float

Provides implicit unboxing from float scalar to primitive

Provides implicit unboxing from float scalar to primitive

Attributes