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
0fd0b229
Commit
0fd0b229
authored
5 years ago
by
Joel Cavat
Browse files
Options
Downloads
Patches
Plain Diff
Add Matrix
parent
09976060
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/ch/hepia/numeric/Matrix.java
+127
-0
127 additions, 0 deletions
src/main/java/ch/hepia/numeric/Matrix.java
with
127 additions
and
0 deletions
src/main/java/ch/hepia/numeric/Matrix.java
0 → 100644
+
127
−
0
View file @
0fd0b229
package
ch.hepia.numeric
;
import
java.util.function.BiFunction
;
import
java.util.function.DoubleFunction
;
public
class
Matrix
{
public
int
nbRows
()
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
int
nbCols
()
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
List
<
Vector
>
cols
()
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
List
<
Transposed
>
rows
()
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
Transposed
getRow
(
int
i
)
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
Vector
getCol
(
int
i
)
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
double
get
(
int
i
,
int
j
)
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
void
set
(
int
row
,
int
col
,
double
value
)
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
Matrix
map
(
DoubleFunction
<
Double
>
f
)
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
Matrix
add
(
Matrix
that
)
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
Matrix
mul
(
double
d
)
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
Matrix
mul
(
Matrix
that
)
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
Matrix
sub
(
Matrix
that
)
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
boolean
isSquare
()
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
Matrix
t
()
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
Matrix
rowRemoved
(
int
i
){
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
Matrix
colRemoved
(
int
i
){
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
Matrix
removed
(
int
i
,
int
j
)
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
Matrix
adjugate
()
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
Matrix
inv
()
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
double
det
()
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
Matrix
copy
()
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
@Override
public
String
toString
()
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
@Override
public
boolean
equals
(
Object
obj
)
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
static
Matrix
of
(
List
<
Transposed
>
ts
)
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
static
Matrix
of
(
Transposed
...
ts
)
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
static
Matrix
empty
()
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
static
Matrix
fill
(
int
rows
,
int
cols
,
double
value
)
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
static
Matrix
zeros
(
int
rows
,
int
cols
)
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
static
Matrix
ones
(
int
rows
,
int
cols
)
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
static
Matrix
tabulate
(
int
rows
,
int
cols
,
BiFunction
<
Integer
,
Integer
,
Double
>
f
)
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
static
Matrix
diag
(
double
...
ds
)
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
static
Matrix
identity
(
int
nb
)
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
public
static
Vector
solve
(
Matrix
m
,
Vector
b
)
{
throw
new
UnsupportedOperationException
(
"This feature isn't implemented yet"
);
}
}
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