massiv-0.5.2.0: Massiv (Массив) is an Array Library.

Copyright(c) Alexey Kuleshevich 2018-2019
LicenseBSD3
MaintainerAlexey Kuleshevich <lehins@yandex.ru>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Data.Massiv.Core.Operations

Description

 

Documentation

class Num e => Numeric r e where Source #

Minimal complete definition

unsafeLiftArray, unsafeLiftArray2

Methods

plusScalar :: Index ix => Array r ix e -> e -> Array r ix e Source #

minusScalar :: Index ix => Array r ix e -> e -> Array r ix e Source #

multiplyScalar :: Index ix => Array r ix e -> e -> Array r ix e Source #

absPointwise :: Index ix => Array r ix e -> Array r ix e Source #

additionPointwise :: Index ix => Array r ix e -> Array r ix e -> Array r ix e Source #

subtractionPointwise :: Index ix => Array r ix e -> Array r ix e -> Array r ix e Source #

multiplicationPointwise :: Index ix => Array r ix e -> Array r ix e -> Array r ix e Source #

powerPointwise :: Index ix => Array r ix e -> Int -> Array r ix e Source #

Raise each element of the array to the power

unsafeLiftArray :: Index ix => (a -> e) -> Array r ix a -> Array r ix e Source #

unsafeLiftArray2 :: Index ix => (a -> b -> e) -> Array r ix a -> Array r ix b -> Array r ix e Source #

Instances
Num e => Numeric D e Source # 
Instance details

Defined in Data.Massiv.Array.Delayed.Pull

Methods

plusScalar :: Index ix => Array D ix e -> e -> Array D ix e Source #

minusScalar :: Index ix => Array D ix e -> e -> Array D ix e Source #

multiplyScalar :: Index ix => Array D ix e -> e -> Array D ix e Source #

absPointwise :: Index ix => Array D ix e -> Array D ix e Source #

additionPointwise :: Index ix => Array D ix e -> Array D ix e -> Array D ix e Source #

subtractionPointwise :: Index ix => Array D ix e -> Array D ix e -> Array D ix e Source #

multiplicationPointwise :: Index ix => Array D ix e -> Array D ix e -> Array D ix e Source #

powerPointwise :: Index ix => Array D ix e -> Int -> Array D ix e Source #

unsafeLiftArray :: Index ix => (a -> e) -> Array D ix a -> Array D ix e Source #

unsafeLiftArray2 :: Index ix => (a -> b -> e) -> Array D ix a -> Array D ix b -> Array D ix e Source #

class (Numeric r e, Floating e) => NumericFloat r e where Source #

Minimal complete definition

Nothing

Methods

divideScalar :: Index ix => Array r ix e -> e -> Array r ix e Source #

divisionPointwise :: Index ix => Array r ix e -> Array r ix e -> Array r ix e Source #

recipPointwise :: Index ix => Array r ix e -> Array r ix e Source #

sqrtPointwise :: Index ix => Array r ix e -> Array r ix e Source #

Instances
Floating e => NumericFloat D e Source # 
Instance details

Defined in Data.Massiv.Array.Delayed.Pull

Methods

divideScalar :: Index ix => Array D ix e -> e -> Array D ix e Source #

divisionPointwise :: Index ix => Array D ix e -> Array D ix e -> Array D ix e Source #

recipPointwise :: Index ix => Array D ix e -> Array D ix e Source #

sqrtPointwise :: Index ix => Array D ix e -> Array D ix e Source #