Skip to content

Commit

Permalink
Apply review suggestion
Browse files Browse the repository at this point in the history
Move multi_variable_gaussian_decomposition_method to a new
random_types.hpp header file.
  • Loading branch information
mhoemmen committed Oct 5, 2022
1 parent 02af526 commit b28b93a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
3 changes: 1 addition & 2 deletions cpp/include/raft/random/detail/multi_variable_gaussian.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#pragma once
#include "curand_wrappers.hpp"
#include "random_types.hpp"
#include <cmath>
#include <memory>
#include <optional>
Expand Down Expand Up @@ -291,8 +292,6 @@ class multi_variable_gaussian_impl {
~multi_variable_gaussian_impl() { deinit(); }
}; // end of multi_variable_gaussian_impl

enum class multi_variable_gaussian_decomposition_method { CHOLESKY, JACOBI, QR };

template <typename ValueType>
class multi_variable_gaussian_setup_token;

Expand Down
23 changes: 23 additions & 0 deletions cpp/include/raft/random/detail/random_types.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Copyright (c) 2018-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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#pragma once

namespace raft::random::detail {

enum class multi_variable_gaussian_decomposition_method { CHOLESKY, JACOBI, QR };

}; // end of namespace raft::random::detail

0 comments on commit b28b93a

Please sign in to comment.