Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
poo2019numeric
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
Model registry
Operate
Environments
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
steven.liatti
poo2019numeric
Merge requests
!1
David
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
David
david.carballo/poo2019numeric:David
into
master
Overview
0
Commits
30
Pipelines
0
Changes
5
Open
david.carballo
requested to merge
david.carballo/poo2019numeric:David
into
master
5 years ago
Overview
0
Commits
30
Pipelines
0
Changes
2
Expand
merge de david vers master
0
0
Merge request reports
Compare
version 1
version 3
1319b616
5 years ago
version 2
9a1b1519
5 years ago
version 1
abbc94b6
5 years ago
master (base)
and
version 2
latest version
7d576dc9
30 commits,
5 years ago
version 3
1319b616
29 commits,
5 years ago
version 2
9a1b1519
11 commits,
5 years ago
version 1
abbc94b6
10 commits,
5 years ago
Show latest version
2 files
+
22
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
src/main/java/ch/hepia/numeric/Vector.java
+
14
−
1
Options
@@ -78,7 +78,18 @@ final public class Vector {
}
public
double
norm
()
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
//throw new UnsupportedOperationException("This feature isn't implemented yet");
double
norme
=
0
;
double
power
=
0
;
for
(
int
i
=
0
;
i
<
this
.
lstVector
.
size
();
i
++)
//a ameliorer avec for(e:element)
{
power
=
power
+(
this
.
lstVector
.
get
(
i
)*
this
.
lstVector
.
get
(
i
));
}
norme
=
Math
.
sqrt
(
power
);
return
norme
;
}
public
Vector
sliceFrom
(
int
i
)
{
@@ -159,11 +170,13 @@ final public class Vector {
}
public
static
Vector
sum
(
List
<
Vector
>
vs
)
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
static
double
norms
(
List
<
Vector
>
vs
)
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
Loading