tsvd.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018-2021, NVIDIA CORPORATION.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #pragma once
18 
19 #include "params.hpp"
20 
21 namespace raft {
22 class handle_t;
23 }
24 
25 namespace ML {
26 
27 void tsvdFit(raft::handle_t& handle,
28  float* input,
29  float* components,
30  float* singular_vals,
31  const paramsTSVD& prms);
32 void tsvdFit(raft::handle_t& handle,
33  double* input,
34  double* components,
35  double* singular_vals,
36  const paramsTSVD& prms);
37 void tsvdInverseTransform(raft::handle_t& handle,
38  float* trans_input,
39  float* components,
40  float* input,
41  const paramsTSVD& prms);
42 void tsvdInverseTransform(raft::handle_t& handle,
43  double* trans_input,
44  double* components,
45  double* input,
46  const paramsTSVD& prms);
47 void tsvdTransform(raft::handle_t& handle,
48  float* input,
49  float* components,
50  float* trans_input,
51  const paramsTSVD& prms);
52 void tsvdTransform(raft::handle_t& handle,
53  double* input,
54  double* components,
55  double* trans_input,
56  const paramsTSVD& prms);
57 void tsvdFitTransform(raft::handle_t& handle,
58  float* input,
59  float* trans_input,
60  float* components,
61  float* explained_var,
62  float* explained_var_ratio,
63  float* singular_vals,
64  const paramsTSVD& prms);
65 void tsvdFitTransform(raft::handle_t& handle,
66  double* input,
67  double* trans_input,
68  double* components,
69  double* explained_var,
70  double* explained_var_ratio,
71  double* singular_vals,
72  const paramsTSVD& prms);
73 
74 } // namespace ML
Definition: params.hpp:50
Definition: dbscan.hpp:30
void tsvdTransform(raft::handle_t &handle, float *input, float *components, float *trans_input, const paramsTSVD &prms)
void tsvdFit(raft::handle_t &handle, float *input, float *components, float *singular_vals, const paramsTSVD &prms)
void tsvdInverseTransform(raft::handle_t &handle, float *trans_input, float *components, float *input, const paramsTSVD &prms)
void tsvdFitTransform(raft::handle_t &handle, float *input, float *trans_input, float *components, float *explained_var, float *explained_var_ratio, float *singular_vals, const paramsTSVD &prms)
Definition: dbscan.hpp:26