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
Martin Reinecke
ducc
Commits
1f9aec3b
Commit
1f9aec3b
authored
May 04, 2020
by
Martin Reinecke
Browse files
fix
parent
3b01452f
Pipeline
#74285
passed with stages
in 8 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/mr_util/infra/mav.h
View file @
1f9aec3b
...
...
@@ -123,9 +123,9 @@ class fmav_info
return
res
;
}
template
<
typename
...
Ns
>
ptrdiff_t
getIdx
(
size_t
dim
,
size_t
n
,
Ns
...
ns
)
const
{
return
str
[
dim
]
*
n
+
getIdx
(
dim
+
1
,
ns
...);
}
{
return
str
[
dim
]
*
ptrdiff_t
(
n
)
+
getIdx
(
dim
+
1
,
ns
...);
}
ptrdiff_t
getIdx
(
size_t
dim
,
size_t
n
)
const
{
return
str
[
dim
]
*
n
;
}
{
return
str
[
dim
]
*
ptrdiff_t
(
n
)
;
}
public:
fmav_info
(
const
shape_t
&
shape_
,
const
stride_t
&
stride_
)
...
...
@@ -234,7 +234,6 @@ template<typename T> class fmav: public fmav_info, public membuf<T>
{
protected:
using
membuf
<
T
>::
d
;
using
membuf
<
T
>::
vraw
;
void
subdata
(
const
shape_t
&
i0
,
const
shape_t
&
extent
,
shape_t
&
nshp
,
stride_t
&
nstr
,
ptrdiff_t
&
nofs
)
const
...
...
@@ -262,6 +261,7 @@ template<typename T> class fmav: public fmav_info, public membuf<T>
public:
using
membuf
<
T
>::
operator
[],
membuf
<
T
>::
vdata
,
membuf
<
T
>::
data
;
using
membuf
<
T
>::
vraw
;
fmav
(
const
T
*
d_
,
const
shape_t
&
shp_
,
const
stride_t
&
str_
)
:
fmav_info
(
shp_
,
str_
),
membuf
<
T
>
(
d_
)
{}
fmav
(
const
T
*
d_
,
const
shape_t
&
shp_
)
...
...
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