Last active
January 20, 2019 23:43
-
-
Save bgamari/b4bef5d5ab2478116cd804d6313a25d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
quadrance_snhP | |
quadrance_snhP | |
= \ x_anez -> | |
foldlM' | |
$fMonadId | |
(plusDouble `cast` <Co:7>) | |
(D# 0.0##) | |
(stream | |
$fVectorVectorDouble | |
(case $WVector | |
(lower' x_anez) | |
(upper' x_anez) | |
(new | |
$fVectorVectorDouble | |
(unstream | |
$fVectorVectorDouble | |
(inplace | |
(\ @ m_adjm $dMonad_adjn eta_B1 -> | |
mapM | |
$dMonad_adjn | |
(let { | |
f1_adSO | |
f1_adSO = return $dMonad_adjn } in | |
\ x_adSP -> f1_adSO (timesDouble x_adSP x_adSP)) | |
eta_B1) | |
id | |
(stream $fVectorVectorDouble (vector' x_anez))))) | |
of | |
{ Vector ds_ddbs ds1_ddbt ds2_ddbu -> | |
ds2_ddbu | |
})) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
quadrance_snhP | |
quadrance_snhP | |
= \ x_anez -> | |
foldlM' | |
$fMonadId | |
(plusDouble `cast` <Co:7>) | |
(D# 0.0##) | |
(stream | |
$fVectorVectorDouble | |
(case $WVector | |
(lower' x_anez) | |
(upper' x_anez) | |
(new | |
$fVectorVectorDouble | |
(unstream | |
$fVectorVectorDouble | |
(inplace | |
(\ @ m_adjm $dMonad_adjn eta_B1 -> | |
mapM | |
$dMonad_adjn | |
(let { | |
f1_adSO | |
f1_adSO = return $dMonad_adjn } in | |
\ x_adSP -> f1_adSO (timesDouble x_adSP x_adSP)) | |
eta_B1) | |
id | |
(stream $fVectorVectorDouble (vector' x_anez))))) | |
of | |
{ Vector ds_ddbs ds1_ddbt ds2_ddbu -> | |
ds2_ddbu | |
})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment