diff --git a/cpp/src/community/legacy/spectral_clustering.cu b/cpp/src/community/legacy/spectral_clustering.cu index 631348f3826..e6d026ad22a 100644 --- a/cpp/src/community/legacy/spectral_clustering.cu +++ b/cpp/src/community/legacy/spectral_clustering.cu @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020-2021, NVIDIA CORPORATION. + * Copyright (c) 2020-2022, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -92,15 +92,15 @@ void balancedCutClustering_impl(legacy::GraphCSRView using index_type = vertex_t; using value_type = weight_t; - raft::matrix::sparse_matrix_t const r_csr_m{handle, graph}; + raft::spectral::matrix::sparse_matrix_t const r_csr_m{handle, graph}; - raft::eigen_solver_config_t eig_cfg{ + raft::spectral::eigen_solver_config_t eig_cfg{ n_eig_vects, evs_max_it, restartIter_lanczos, evs_tol, reorthog, seed}; - raft::lanczos_solver_t eig_solver{eig_cfg}; + raft::spectral::lanczos_solver_t eig_solver{eig_cfg}; - raft::cluster_solver_config_t clust_cfg{ + raft::spectral::cluster_solver_config_t clust_cfg{ n_clusters, kmean_max_it, kmean_tol, seed}; - raft::kmeans_solver_t cluster_solver{clust_cfg}; + raft::spectral::kmeans_solver_t cluster_solver{clust_cfg}; raft::spectral::partition( handle, r_csr_m, eig_solver, cluster_solver, clustering, eig_vals, eig_vects); @@ -160,15 +160,15 @@ void spectralModularityMaximization_impl( using index_type = vertex_t; using value_type = weight_t; - raft::matrix::sparse_matrix_t const r_csr_m{handle, graph}; + raft::spectral::matrix::sparse_matrix_t const r_csr_m{handle, graph}; - raft::eigen_solver_config_t eig_cfg{ + raft::spectral::eigen_solver_config_t eig_cfg{ n_eig_vects, evs_max_it, restartIter_lanczos, evs_tol, reorthog, seed}; - raft::lanczos_solver_t eig_solver{eig_cfg}; + raft::spectral::lanczos_solver_t eig_solver{eig_cfg}; - raft::cluster_solver_config_t clust_cfg{ + raft::spectral::cluster_solver_config_t clust_cfg{ n_clusters, kmean_max_it, kmean_tol, seed}; - raft::kmeans_solver_t cluster_solver{clust_cfg}; + raft::spectral::kmeans_solver_t cluster_solver{clust_cfg}; // not returned... // auto result = @@ -192,7 +192,7 @@ void analyzeModularityClustering_impl(legacy::GraphCSRView const r_csr_m{handle, graph}; + raft::spectral::matrix::sparse_matrix_t const r_csr_m{handle, graph}; weight_t mod; raft::spectral::analyzeModularity(handle, r_csr_m, n_clusters, clustering, mod); @@ -218,7 +218,7 @@ void analyzeBalancedCut_impl(legacy::GraphCSRView co using index_type = vertex_t; using value_type = weight_t; - raft::matrix::sparse_matrix_t const r_csr_m{handle, graph}; + raft::spectral::matrix::sparse_matrix_t const r_csr_m{handle, graph}; raft::spectral::analyzePartition(handle, r_csr_m, n_clusters, clustering, edge_cut, cost); diff --git a/cpp/src/linear_assignment/hungarian.cu b/cpp/src/linear_assignment/hungarian.cu index 27e3e230920..dc7c3bdc38c 100644 --- a/cpp/src/linear_assignment/hungarian.cu +++ b/cpp/src/linear_assignment/hungarian.cu @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020-2021, NVIDIA CORPORATION. + * Copyright (c) 2020-2022, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ #include #include -#include +#include #include #include diff --git a/cpp/src/utilities/spmv_1D.cu b/cpp/src/utilities/spmv_1D.cu index 5506d32f965..3ea7b3f256d 100644 --- a/cpp/src/utilities/spmv_1D.cu +++ b/cpp/src/utilities/spmv_1D.cu @@ -51,7 +51,7 @@ MGcsrmv::~MGcsrmv() template void MGcsrmv::run(weight_t* x) { - using namespace raft::matrix; + using namespace raft::spectral::matrix; weight_t h_one = 1.0; weight_t h_zero = 0.0; @@ -64,11 +64,11 @@ void MGcsrmv::run(weight_t* x) static_cast(v_glob_), // n_cols static_cast(e_loc_)}; // nnz - mat.mv(h_one, // alpha - x, // x - h_zero, // beta - y_loc_.data().get(), // y - sparse_mv_alg_t::SPARSE_MV_ALG2); // SpMV algorithm + mat.mv(h_one, // alpha + x, // x + h_zero, // beta + y_loc_.data().get(), // y + raft::spectral::matrix::sparse_mv_alg_t::SPARSE_MV_ALG2); // SpMV algorithm auto stream = handle_.get_stream();