|
create a structure with a single element
|
|
scale :: e -> c e -> c e | Source |
|
|
scaleRecip :: e -> c e -> c e | Source |
|
scale the element by element reciprocal of the object:
scaleRecip 2 (fromList [5,i]) == 2 |> [0.4 :+ 0.0,0.0 :+ (-2.0)] |
|
addConstant :: e -> c e -> c e | Source |
|
|
add :: c e -> c e -> c e | Source |
|
|
sub :: c e -> c e -> c e | Source |
|
|
mul :: c e -> c e -> c e | Source |
|
element by element multiplication
|
|
divide :: c e -> c e -> c e | Source |
|
element by element division
|
|
|