glm_api.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019-2024, 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 #pragma once
17 
18 #include <cuml/cuml_api.h>
19 #include <cuml/linear_model/qn.h>
20 
21 #include <stdbool.h>
22 
23 #ifdef __cplusplus
24 namespace ML::GLM {
25 extern "C" {
26 #endif
27 
29  const qn_params* pams,
30  float* X,
31  float* y,
32  int N,
33  int D,
34  int C,
35  float* w0,
36  float* f,
37  int* num_iters,
38  bool X_col_major);
39 
41  const qn_params* pams,
42  double* X,
43  double* y,
44  int N,
45  int D,
46  int C,
47  double* w0,
48  double* f,
49  int* num_iters,
50  bool X_col_major);
51 
52 #ifdef __cplusplus
53 }
54 }
55 #endif
int cumlHandle_t
Definition: cuml_api.h:37
cumlError_t
Definition: cuml_api.h:39
Definition: glm.hpp:23
cumlError_t cumlDpQnFit(cumlHandle_t cuml_handle, const qn_params *pams, double *X, double *y, int N, int D, int C, double *w0, double *f, int *num_iters, bool X_col_major)
Definition: glm_api.cpp:59
cumlError_t cumlSpQnFit(cumlHandle_t cuml_handle, const qn_params *pams, float *X, float *y, int N, int D, int C, float *w0, float *f, int *num_iters, bool X_col_major)
Definition: glm_api.cpp:27
Definition: qn.h:67