easytensor-2.1.0.0: Pure, type-indexed haskell vector, matrix, and tensor library.

Safe HaskellNone
LanguageHaskell2010

Numeric.Scalar

Description

Scalar is an alias to zero-dimensional DataFrame

Synopsis

Documentation

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