Skip to content

Instantly share code, notes, and snippets.

@thesz
thesz / SLA.hs
Created June 12, 2022 17:12
Simple linear algebra routines, including Fisher's linear discriminant
{-# LANGUAGE BangPatterns #-}
module SLA where
import qualified Data.List as List
import qualified Data.Vector.Unboxed as UV
type Vec = [Double]
type Mat = [Vec] -- column of rows.
@thesz
thesz / ZDD.hs
Created August 14, 2021 12:10
ZDD operations implementation
-- |ZDD.hs
--
-- Naive ZDD implementation.
--
-- Node must have IDs that point to nodes with smaller variables.
--
-- Copyright (C) 2021 Serguey Zefirov
module ZDD where
import Control.Monad