easytensor-2.1.0.0: Pure, type-indexed haskell vector, matrix, and tensor library.
Numeric.Scalar
Description
Scalar is an alias to zero-dimensional DataFrame
type Scalar t = DataFrame t ('[] :: [Nat]) Source #
Alias for zero-dimensional DataFrame
unScalar :: DataFrame t ('[] :: [Nat]) -> t Source #
Convert a scalar back to an ordinary type
scalar :: t -> DataFrame t ('[] :: [Nat]) Source #
Convert any type to a scalar wrapper
fromScalar :: PrimArray t (DataFrame t ds) => Scalar t -> DataFrame t (ds :: [Nat]) 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 #