easytensor-1.0.0.0: Pure, type-indexed haskell vector, matrix, and tensor library.
Numeric.Scalar
Description
Scalar is an alias to zero-dimensional DataFrame
Synopsis
type Scalar t = DataFrame t ('[] :: [Nat]) Source #
Alias for zero-dimensional DataFrame
unScalar :: Scalar t -> t Source #
Convert scalar back to ordinary type
scalar :: t -> Scalar t Source #
Convert any type to scalar wrapper
fromScalar :: SubSpace t '[] ds ds => Scalar t -> DataFrame t ds Source #
Broadcast scalar value onto a whole data frame
type Scf = Scalar Float Source #
type Scd = Scalar Double Source #
type Sci = Scalar Int Source #
type Scw = Scalar Word Source #