Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gast
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
clean-and-itasks
gast
Commits
d842d681
Verified
Commit
d842d681
authored
Nov 23, 2018
by
Mart Lubbers
Committed by
Camil Staps
Nov 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add special real values to the gen function
parent
4143ae87
Pipeline
#16653
passed with stage
in 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Libraries/Gast/Gen.icl
Libraries/Gast/Gen.icl
+2
-1
No files found.
Libraries/Gast/Gen.icl
View file @
d842d681
...
...
@@ -118,7 +118,8 @@ ggen{|Real|} s
=
takeWhile
(\
r
->
abs
r
<=
toReal
(
s
.
maxDepth
-
s
.
depth
))
l
=
l
where
l
=
[
0.0
// -nan nan inf -inf
l
=
[
0.0
,
0.0
/
0.0
,~(
0.0
/
0.0
),
1.0
/
0.0
,
-1.0
/
0.0
:
interleave
[
r
\\
x
<-
diag
[
1
:
prims
]
[
1
:
prims
]
(\
n
d
.
toReal
n
/
toReal
d
),
r
<-
[
x
,~
x
]]
(
interleave
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment