Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Common
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
Skyward
Matlab dependencies
Common
Commits
e4a12ea2
Commit
e4a12ea2
authored
1 year ago
by
giuliaghirardini
Browse files
Options
Downloads
Patches
Plain Diff
[benchmark][speed] Updated functions
parent
a8c6d8e4
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/operations/assignmentSpeed.m
+0
-2
0 additions, 2 deletions
tests/operations/assignmentSpeed.m
tests/operations/eigenSpeed.m
+4
-4
4 additions, 4 deletions
tests/operations/eigenSpeed.m
with
4 additions
and
6 deletions
tests/operations/assignmentSpeed.m
+
0
−
2
View file @
e4a12ea2
function assignmentTime = assignmentSpeed(len)
function assignmentTime = assignmentSpeed(len)
% ms = Mission(true);
% cl = Motor(ms);
cl = Test(1,2,3,4, len, len);
cl = Test(1,2,3,4, len, len);
st = struct(cl); % converting class to a struct. calling of a warning
st = struct(cl); % converting class to a struct. calling of a warning
...
...
This diff is collapsed.
Click to expand it.
tests/operations/eigenSpeed.m
+
4
−
4
View file @
e4a12ea2
function
eigen
=
eigenSpeed
(
dim
)
function
eigen
Time
=
eigenSpeed
(
len
)
%========EIGENVALUES PROBLEM======== (MATRICES)
%========EIGENVALUES PROBLEM======== (MATRICES)
A
=
randn
(
dim
,
dim
);
A
=
randn
(
len
,
len
);
testClass
.
a
=
A
;
testStruct
.
a
=
A
;
testClass
.
a
=
A
;
testStruct
.
a
=
A
;
tic
tic
eigStruct
=
eig
(
testStruct
.
a
);
eigStruct
=
eig
(
testStruct
.
a
);
eigen
.
struct
=
toc
;
eigen
Time
.
struct
=
toc
;
tic
tic
eigClass
=
eig
(
testClass
.
a
);
eigClass
=
eig
(
testClass
.
a
);
eigen
.
class
=
toc
;
eigen
Time
.
class
=
toc
;
end
end
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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