CUV
0.9.201304091348
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
src
cuv
libs
kmeans
kmeans.hpp
1
#ifndef __KMEANS__HPP__
2
#define __KMEANS__HPP__
3
4
#include <
cuv/basics/tensor.hpp
>
5
namespace
cuv{
6
namespace
libs{
8
namespace
kmeans{
26
template
<
class
__data_value_type,
class
__memory_space_type,
class
__memory_layout_type>
27
void
compute_clusters
(
cuv::tensor<__data_value_type, __memory_space_type, __memory_layout_type>
& clusters,
28
const
cuv::tensor<__data_value_type, __memory_space_type, __memory_layout_type>
& data,
29
const
cuv::tensor
<
typename
cuv::tensor<__data_value_type, __memory_space_type, __memory_layout_type>::index_type
,__memory_space_type>& indices);
30
37
template
<
class
__data_value_type,
class
__memory_space_type,
class
__memory_layout_type>
38
void
sort_by_index
(
cuv::tensor<__data_value_type, __memory_space_type, __memory_layout_type>
& res,
39
cuv::tensor
<
typename
cuv::tensor<__data_value_type, __memory_space_type, __memory_layout_type>::index_type
,__memory_space_type>& indices,
40
const
cuv::tensor<__data_value_type, __memory_space_type, __memory_layout_type>
& data);
45
} } }
46
#endif
/* __KMEANS__HPP__ */
Generated on Tue Apr 9 2013 13:48:56 for CUV by
1.8.1.2