imate
C++/CUDA Reference
Loading...
Searching...
No Matches
c_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 _C_LINEAR_OPERATOR_C_DENSE_AFFINE_MATRIX_FUNCTION_H_
13#define _C_LINEAR_OPERATOR_C_DENSE_AFFINE_MATRIX_FUNCTION_H_
14
15
16// =======
17// Headers
18// =======
19
20#include "../_definitions/types.h" // LongIndexType, FlagType
21#include "./c_affine_matrix_function.h" // cAffineMatrixFunction
22#include "./c_dense_matrix.h" // cDenseMatrix
23
24
25// ==============================
26// c 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
58 const DataType* A_,
59 const LongIndexType num_rows_,
60 const LongIndexType num_columns_,
61 const FlagType A_is_row_major_,
62 const FlagType A_is_symmetric_,
63 const DataType* B_,
64 const FlagType B_is_row_major_,
65 const FlagType B_is_symmetric_);
66
68
69 virtual void set_symmetry(const FlagType symmetric);
70
71 virtual void dot(
72 const DataType* vector,
73 DataType* product);
74
75 virtual void transpose_dot(
76 const DataType* vector,
77 DataType* product);
78
79 protected:
80
81 // Member data
84};
85
86#endif // _C_LINEAR_OPERATOR_C_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 transpose_dot(const DataType *vector, DataType *product)
Matrix vector product written in place.
virtual void set_symmetry(const FlagType symmetric)
Specify whether the matrices are symmetic or non-symmetric.
Container for dense matrices.
int LongIndexType
Definition types.h:60
int FlagType
Definition types.h:68