Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ADerrors.jl
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Alberto Ramos
ADerrors.jl
Commits
25dfd2b2
Commit
25dfd2b2
authored
4 years ago
by
Alberto Ramos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small changes in I/O and data type management
parent
dc4806fc
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
src/ADerrorsIO.jl
src/ADerrorsIO.jl
+3
-0
src/ADerrorsTypes.jl
src/ADerrorsTypes.jl
+4
-0
No files found.
src/ADerrorsIO.jl
View file @
25dfd2b2
...
...
@@ -36,6 +36,9 @@ println("a has error: ", err(a))
```
"""
function
err
(
a
::
uwreal
)
if
(
length
(
a
.
prop
)
==
0
)
return
0.0
end
if
(
length
(
a
.
cfd
)
==
0
)
error
(
"No error available... maybe run uwerr"
)
end
...
...
This diff is collapsed.
Click to expand it.
src/ADerrorsTypes.jl
View file @
25dfd2b2
...
...
@@ -108,3 +108,7 @@ function Base.show(io::IO, a::uwreal)
print
(
io
,
a
.
mean
,
" (Error not available... maybe run uwerr)"
)
end
end
Base
.
zero
(
u
::
uwreal
)
=
uwreal
(
0.0
)
Base
.
one
(
u
::
uwreal
)
=
uwreal
(
1.0
)
Base
.
one
(
u
::
Type
{
uwreal
})
=
uwreal
(
1.0
)
This diff is collapsed.
Click to expand it.
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