Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
acf49286
Commit
acf49286
authored
Mar 14, 2016
by
BLANCHARD Pierre
Browse files
Access partitions in kcluster partitioner.
parent
ebba3102
Changes
1
Hide whitespace changes
Inline
Side-by-side
Addons/HMat/Src/Clustering/FCCLKCluster.hpp
View file @
acf49286
...
...
@@ -207,6 +207,18 @@ public:
}
void
getCentroidsIdx
(
const
int
inNbElements
,
int
inCentroidsIdx
[])
const
{
/// Map partitions to 0.. nbElements
FAssertLF
(
inNbElements
==
nbElements
);
// Copy partitions into in/output array
for
(
int
idx
=
0
;
idx
<
nbElements
;
++
idx
){
inCentroidsIdx
[
idx
]
=
partitions
[
idx
];
}
}
};
#endif // FCCLKCLUSTER_HPP
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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