Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding matrix multiplication. #439

Merged
merged 3 commits into from
Nov 20, 2022

Conversation

lepsa
Copy link
Contributor

@lepsa lepsa commented Nov 18, 2022

Adding matrix-matrix, vector-matrix, and matrix-vector support to * for the ExtOpenScad interface, and to mult for the haskell interface.

Adding tests based on matrix multiplication tutorials I found online and results from WolframAlpha.

This addresses #414

Adding matrix-matrix, vector-matrix, and matrix-vector support to `*`
for the ExtOpenScad interface, and to `mult` for the haskell interface.

Adding tests based on matrix multiplication tutorials I found online and
results from WolframAlpha.

This addresses Haskell-Things#414
It built locally without this type, so maybe we should look into what is
different between the local cabal file and what settings the build boxes
are using.
@@ -13,7 +13,8 @@
module Graphics.Implicit.ExtOpenScad.Default (defaultObjects) where

-- be explicit about where we pull things in from.
import Prelude (Bool(True, False), Maybe(Just, Nothing), ($), (<>), (<$>), fmap, pi, sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, abs, signum, fromInteger, (.), floor, ceiling, round, exp, log, sqrt, max, min, atan2, (**), flip, (<), (>), (<=), (>=), (==), (/=), (&&), (||), not, show, foldl, (*), (/), mod, (+), zipWith, (-), otherwise, id, foldMap, fromIntegral, IO, pure)
import Prelude (Bool(True, False), Maybe(Just, Nothing), ($), (<>), (<$>), fmap, pi, sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, abs, signum, fromInteger, (.), floor, ceiling, round, exp, log, sqrt, max, min, atan2, (**), flip, (<), (>), (<=), (>=), (==), (/=), (&&), (||), not, show, foldl, (*), (/), mod, (+), zipWith, (-), otherwise, id, foldMap, fromIntegral, IO, pure, Int)
import qualified Prelude as P
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all of prelude? i like knowing what i'm pulling in.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yep, fixed. I'm used to either unqualified imports with explicit lists, or qualified imports without lists and forgot that you could combine them.

@julialongtin julialongtin merged commit dd445de into Haskell-Things:master Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants