Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thomas Zeitlhofer
ESE_Zeitlhofer_Bajer
Commits
f3c4388c
Commit
f3c4388c
authored
Mar 19, 2020
by
Mario Bajer
Browse files
random commit message
parent
fa9415d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
matrix1.h
0 → 100644
View file @
f3c4388c
#ifndef MATRIX_H
#define MATRIX_H
#include
<vector>
using
namespace
std
;
class
matrix
{
public:
matrix
(
int
dim
,
bool
random
,
bool
strassen
);
inline
int
dim
()
{
return
dim_
;
}
inline
int
&
operator
()(
unsigned
row
,
unsigned
col
)
{
return
data_
[
dim_
*
row
+
col
];
}
inline
int
operator
()(
unsigned
row
,
unsigned
col
)
const
{
return
data_
[
dim_
*
row
+
col
];
}
void
print
();
matrix
operator
+
(
matrix
b
);
matrix
operator
-
(
matrix
b
);
private:
int
dim_
;
int
*
data_
;
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment