Implemented some form of LM optimization, but it's proper fucked somehow.
This commit is contained in:
@@ -59,17 +59,7 @@ instance Num a => Semigroup (Seidel a) where
|
||||
instance Num a => Monoid (Seidel a) where
|
||||
mempty = Seidel { sphr=0, coma=0, asti=0, fcur=0, dist=0
|
||||
-- , c1 = mempty, c2 = mempty
|
||||
}
|
||||
mappend Seidel{sphr, coma, asti, fcur, dist} Seidel{sphr=sphr', coma=coma', asti=asti', fcur=fcur', dist=dist'} =
|
||||
Seidel { sphr = sphr + sphr'
|
||||
, coma = coma + coma'
|
||||
, asti = asti + asti'
|
||||
, fcur = fcur + fcur'
|
||||
, dist = dist + dist'
|
||||
--, c1 = c1 + c1'
|
||||
--, c2 = c2 + c2'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
-- | Initial matrix is [ h_ h; u_ u ]
|
||||
|
||||
Reference in New Issue
Block a user