imate
C++/CUDA Reference
Loading...
Searching...
No Matches
cu_dense_affine_matrix_function.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: Copyright 2021, Siavash Ameli <sameli@berkeley.edu>
3 * SPDX-License-Identifier: BSD-3-Clause
4 * SPDX-FileType: SOURCE
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the license found in the LICENSE.txt file in the root
8 * directory of this source tree.
9 */
10
11
12#ifndef _CU_LINEAR_OPERATOR_CU_DENSE_AFFINE_MATRIX_FUNCTION_H_
13#define _CU_LINEAR_OPERATOR_CU_DENSE_AFFINE_MATRIX_FUNCTION_H_
14
15
16// =======
17// Headers
18// =======
19
20#include "../_definitions/types.h" // LongIndexType, FlagType,
21#include "./cu_affine_matrix_function.h" // cuAffineMatrixFunction
22#include "./cu_dense_matrix.h" // cuDenseMatrix
23
24
25// ===============================
26// cu Dense Affine Matrix Function
27// ===============================
28
43
44template <typename DataType>
46{
47 public:
48
49 // Member methods
51 const DataType* A_,
52 const LongIndexType num_rows_,
53 const LongIndexType num_columns_,
54 const FlagType A_is_row_major_,
55 const FlagType A_is_symmetric_,
56 const int num_gpu_devices_);
57
59 const DataType* A_,
60 const LongIndexType num_rows_,
61 const LongIndexType num_columns_,
62 const FlagType A_is_row_major_,
63 const FlagType A_is_symmetric_,
64 const DataType* B_,
65 const FlagType B_is_row_major_,
66 const FlagType B_is_symmetric_,
67 const int num_gpu_devices_);
68
70
71 virtual void set_symmetry(const FlagType symmetric);
72
73 virtual void dot(
74 const DataType* vector,
75 DataType* product);
76
77 virtual void transpose_dot(
78 const DataType* vector,
79 DataType* product);
80
81 protected:
82
83 // Member data
86};
87
88#endif // _CU_LINEAR_OPERATOR_CU_DENSE_AFFINE_MATRIX_FUNCTION_H_
Base class for affine matrix functions of one parameter.
Container for dense affine matrix functions of one parameter.
virtual void dot(const DataType *vector, DataType *product)
Matrix vector product.
virtual void set_symmetry(const FlagType symmetric)
Specify whether the matrices are symmetic or non-symmetric.
virtual void transpose_dot(const DataType *vector, DataType *product)
Matrix vector product written in place.
Container for dense matrices.
int LongIndexType
Definition types.h:60
int FlagType
Definition types.h:68