Skip to content

Commit 6ba65a0

Browse files
authored
Merge pull request #19 from McMasterU/monad_expression
Monad expression
2 parents fc428d6 + c4ef1dc commit 6ba65a0

33 files changed

+601
-6545
lines changed

ChangeLog.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1-
# Changelog for HashedExpression
1+
# Changelog for HashedExpression & Symphony
2+
3+
## 0.0.2
4+
- Several fixes and improvement
5+
- Symphony:
6+
- Automatically download all files needed for solving problem (solver & adapters & Makefile), no need to copy problem.c somewhere else.
7+
8+
## 0.0.1
9+
- First release
10+
211

3-
## Unreleased changes

HashedExpression.cabal

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ cabal-version: 1.12
44
--
55
-- see: https://github.com/sol/hpack
66
--
7-
-- hash: 8cd28a087f508490f3891da8fc8a23620f27f29dc9d0598d42e970b328291f71
7+
-- hash: eaf4ab3bfac7ad56c9aef8bc27945e2ecd82eb46c34a86d17423d7b0aea60d07
88

99
name: HashedExpression
10-
version: 0.1.0.0
10+
version: 0.0.2
1111
description: Please see the README on GitHub at <https://github.com/githubuser/HashedExpression#readme>
12-
homepage: https://github.com/githubuser/HashedExpression#readme
13-
bug-reports: https://github.com/githubuser/HashedExpression/issues
14-
author: McMaster Start Coding
15-
maintainer: example@example.com
16-
copyright: 2019 McMaster Start Coding
12+
homepage: https://github.com/McMasterU/HashedExpression#readme
13+
bug-reports: https://github.com/McMasterU/HashedExpression/issues
14+
author: OCA & McMaster Start Coding
15+
maintainer: anandc@mcmaster.ca
16+
copyright: 2019 OCA
1717
license: BSD3
1818
license-file: LICENSE
1919
build-type: Simple
@@ -30,7 +30,7 @@ extra-source-files:
3030

3131
source-repository head
3232
type: git
33-
location: https://github.com/githubuser/HashedExpression
33+
location: https://github.com/McMasterU/HashedExpression
3434

3535
library
3636
exposed-modules:
@@ -46,13 +46,15 @@ library
4646
HashedExpression.Embed
4747
HashedExpression.Internal
4848
HashedExpression.Internal.Collision
49+
HashedExpression.Internal.Context
4950
HashedExpression.Internal.Expression
5051
HashedExpression.Internal.Hash
5152
HashedExpression.Internal.Node
5253
HashedExpression.Internal.Normalize
5354
HashedExpression.Internal.OperationSpec
5455
HashedExpression.Internal.Pattern
5556
HashedExpression.Internal.Plot
57+
HashedExpression.Internal.Rewrite
5658
HashedExpression.Internal.Structure
5759
HashedExpression.Internal.Utils
5860
HashedExpression.Interp

examples/Brain/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Created by .ignore support plugin (hsz.mobi)
22
!*.h5
33
data.py
4-
genmask.py
4+
genmask.py
5+
brain

examples/Brain/Makefile

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,5 @@
1-
CC = gcc
2-
3-
CFLAGS = -Wall -std=c11 -I./lib
4-
5-
FAST_FLAGS = -Wall -std=c11 -Ofast -I./lib
6-
7-
LINK_LIBRARY = -lm -lfftw3 -lhdf5
8-
9-
LBFGSB = lib/lbfgsb.c lib/linesearch.c lib/subalgorithms.c lib/print.c
10-
11-
LINPACK = lib/linpack.c
12-
13-
BLAS = lib/miniCBLAS.c
14-
15-
TIMER = lib/timer.c
16-
17-
SRC = $(LBFGSB) $(LINPACK) $(BLAS) $(TIMER)
18-
19-
all: lbfgs-b.c problem.c $(SRC)
20-
$(CC) -o lbfgs-b $(CFLAGS) lbfgs-b.c $(SRC) $(LINK_LIBRARY)
21-
22-
fast: lbfgs-b.c problem.c $(SRC)
23-
$(CC) -o lbfgs-b $(FAST_FLAGS) lbfgs-b.c $(SRC) $(LINK_LIBRARY)
24-
25-
clean:
26-
git clean -dfX
27-
1+
all:
2+
mkdir -p brain
3+
symphony brain.sp -o brain
4+
cp *.h5 brain
5+
cd brain; make fast; ./lbfgs-b; python3 plot.py x

examples/Brain/Readme.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

examples/Brain/brain.sp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ constraints:
1616
x >= xLowerBound, x <= xUpperBound
1717

1818
let:
19-
smootherX = rotate (0, 1) x + rotate (0, -1) x - 2 *. x
20-
smootherY = rotate (1, 0) x + rotate (-1, 0) x - 2 *. x
19+
smootherX = rotate (0, 1) x - x
20+
smootherY = rotate (1, 0) x - x
2121
regularization = norm2square smootherX + norm2square smootherY
2222

2323

examples/Brain/lbfgs-b.c

Lines changed: 0 additions & 181 deletions
This file was deleted.

examples/Brain/lib/Makefile

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)