Home
libcuml
cucim
cudf-java
cudf
cugraph
cuml
cuproj
cuspatial
cuvs
cuxfilter
dask-cuda
dask-cudf
kvikio
libcudf
libcuml
libcuproj
libcuspatial
libkvikio
librapidsmpf
librmm
libucxx
raft
rapids-cmake
rapidsmpf
rmm
ucxx
nightly (26.02)
nightly (26.02)
stable (25.12)
legacy (25.10)
src
glm
qn
simple_mat
base.hpp
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: Copyright (c) 2018-2022, NVIDIA CORPORATION.
3
* SPDX-License-Identifier: Apache-2.0
4
*/
5
#pragma once
6
7
#include <raft/core/handle.hpp>
8
#include <raft/core/interruptible.hpp>
9
#include <raft/util/cuda_utils.cuh>
10
11
namespace
ML
{
12
13
template
<
typename
T>
14
struct
SimpleDenseMat;
15
16
template
<
typename
T>
17
struct
SimpleMat
{
18
int
m
,
n
;
19
20
SimpleMat
(
int
m
,
int
n
) :
m
(
m
),
n
(
n
) {}
21
22
void
operator=
(
const
SimpleMat<T>
& other) =
delete
;
23
24
virtual
void
print
(std::ostream& oss)
const
= 0;
25
33
virtual
void
gemmb
(
const
raft::handle_t& handle,
34
const
T alpha,
35
const
SimpleDenseMat<T>
& A,
36
const
bool
transA,
37
const
bool
transB,
38
const
T beta,
39
SimpleDenseMat<T>
& C,
40
cudaStream_t stream)
const
= 0;
41
};
42
43
};
// namespace ML
ML
Definition:
dbscan.hpp:18
ML::SimpleDenseMat
Definition:
dense.hpp:30
ML::SimpleMat
Definition:
base.hpp:17
ML::SimpleMat::m
int m
Definition:
base.hpp:18
ML::SimpleMat::n
int n
Definition:
base.hpp:18
ML::SimpleMat::print
virtual void print(std::ostream &oss) const =0
ML::SimpleMat::operator=
void operator=(const SimpleMat< T > &other)=delete
ML::SimpleMat::gemmb
virtual void gemmb(const raft::handle_t &handle, const T alpha, const SimpleDenseMat< T > &A, const bool transA, const bool transB, const T beta, SimpleDenseMat< T > &C, cudaStream_t stream) const =0
ML::SimpleMat::SimpleMat
SimpleMat(int m, int n)
Definition:
base.hpp:20
Generated by
1.9.1