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
Commits
200581fd
Commit
200581fd
authored
5 years ago
by
tanguy.dietrich
Browse files
Options
Downloads
Patches
Plain Diff
modified class Transposed
parent
b8af75a7
No related branches found
No related tags found
2 merge requests
!2
Tanguy
,
!1
David
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
TPS/.gitkeep
+0
-0
0 additions, 0 deletions
TPS/.gitkeep
src/main/java/ch/hepia/numeric/Transposed.java
+21
-0
21 additions, 0 deletions
src/main/java/ch/hepia/numeric/Transposed.java
src/main/java/ch/hepia/numeric/Vector.java
+2
-2
2 additions, 2 deletions
src/main/java/ch/hepia/numeric/Vector.java
with
23 additions
and
2 deletions
TPS/.gitkeep
deleted
100644 → 0
+
0
−
0
View file @
b8af75a7
This diff is collapsed.
Click to expand it.
src/main/java/ch/hepia/numeric/Transposed.java
0 → 100644
+
21
−
0
View file @
200581fd
package
ch.hepia.numeric
;
public
class
Transposed
{
final
private
Vector
v
;
Transposed
(
Vector
v
)
{
this
.
v
=
v
;
}
public
double
dot
(
Vector
vect
){
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
Transposed
sub
(
Transposed
t
){
return
new
Transposed
(
t
.
v
.
sub
(
v
));
}
public
Vector
t
(){
return
this
.
v
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/main/java/ch/hepia/numeric/Vector.java
+
2
−
2
View file @
200581fd
...
@@ -14,7 +14,7 @@ final public class Vector {
...
@@ -14,7 +14,7 @@ final public class Vector {
}
}
public
Transposed
t
()
{
public
Transposed
t
()
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
return
new
Transposed
(
this
);
}
}
public
int
len
()
{
public
int
len
()
{
...
...
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