Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MRIBuilder.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michiel Cottaar
MRIBuilder.jl
Commits
0abc71ab
Verified
Commit
0abc71ab
authored
11 months ago
by
Michiel Cottaar
Browse files
Options
Downloads
Patches
Plain Diff
Call LinearPart for any number
parent
955ccb5f
No related branches found
No related tags found
No related merge requests found
Pipeline
#23483
passed
11 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/containers/linearise.jl
+1
-1
1 addition, 1 deletion
src/containers/linearise.jl
with
1 addition
and
1 deletion
src/containers/linearise.jl
+
1
−
1
View file @
0abc71ab
...
...
@@ -14,7 +14,7 @@ end
Base
.
iszero
(
lp
::
LinearPart
)
=
iszero
(
lp
.
start_value
)
&&
iszero
(
lp
.
end_value
)
Base
.
iszero
(
lp
::
LinearPart
{
<:
AbstractVector
})
=
all
(
iszero
.
(
lp
.
start_value
))
&&
all
(
iszero
.
(
lp
.
end_value
))
(
lp
::
LinearPart
)(
time
::
Float64
)
=
@.
(
1
-
time
)
*
lp
.
start_value
+
time
*
lp
.
end_value
(
lp
::
LinearPart
)(
time
::
Number
)
=
@.
(
1
-
time
)
*
lp
.
start_value
+
time
*
lp
.
end_value
"""
SequencePart(sequence, time1, time2)
...
...
This diff is collapsed.
Click to expand it.
Michiel Cottaar
@ndcn0236
mentioned in commit
bec77a9f
·
11 months ago
mentioned in commit
bec77a9f
mentioned in commit bec77a9fca58c248e29c638d35ee0877380f8f3c
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment