Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NumCSE
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
Joost Opschoor
NumCSE
Commits
3f47a2b2
Commit
3f47a2b2
authored
Sep 16, 2019
by
Tandri Gauksson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes before uploading to CodeExpert
parent
d5a7b6ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
Assignments/Codes/Introduction/MatrixClass/CodeExpert/solution/MatrixClass.hpp
...roduction/MatrixClass/CodeExpert/solution/MatrixClass.hpp
+1
-4
Assignments/Codes/Introduction/MatrixClass/CodeExpert/solution/main.cpp
...des/Introduction/MatrixClass/CodeExpert/solution/main.cpp
+1
-1
No files found.
Assignments/Codes/Introduction/MatrixClass/CodeExpert/solution/MatrixClass.hpp
View file @
3f47a2b2
...
...
@@ -11,7 +11,7 @@
// END
/* SAM_LISTING_BEGIN_0 */
Eigen
::
Matrix
2d
smallTriangular
(
double
a
,
double
b
,
double
c
)
{
Eigen
::
Matrix
<
double
,
2
,
2
>
smallTriangular
(
double
a
,
double
b
,
double
c
)
{
/*
* This functions returns a 2 by 2 triangular matrix of doubles a, b, c.
*/
...
...
@@ -142,7 +142,6 @@ Eigen::VectorXcd arithmetics(int n) {
B
(
k
,
l
)
=
tmp
/
std
::
conj
(
tmp
);
}
}
std
::
cout
<<
B
<<
std
::
endl
;
// END
// We can perform arithmetics on matrices: +, -, *
...
...
@@ -164,8 +163,6 @@ Eigen::VectorXcd arithmetics(int n) {
v
=
C
*
u
;
// END
// std::cout<<v<<std::endl;
return
v
;
}
/* SAM_LISTING_END_3 */
...
...
Assignments/Codes/Introduction/MatrixClass/CodeExpert/solution/main.cpp
View file @
3f47a2b2
...
...
@@ -10,7 +10,7 @@ int main(){
std
::
cout
<<
"
\n
Test of casting():
\n
"
;
std
::
cout
<<
casting
()
<<
std
::
endl
;
std
::
cout
<<
"
\n
Test of arithmetics():
\n
"
;
std
::
cout
<<
arithmetics
(
5
)
<<
std
::
endl
;
std
::
cout
<<
arithmetics
(
4
)
<<
std
::
endl
;
return
0
;
}
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