imate
C++/CUDA Reference
Loading...
Searching...
No Matches
c_csc_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_CSC_AFFINE_MATRIX_FUNCTION_H_
13#define _C_LINEAR_OPERATOR_C_CSC_AFFINE_MATRIX_FUNCTION_H_
14
15
16// =======
17// Headers
18// =======
19
20#include "../_definitions/types.h" // LongIndexType
21#include "./c_affine_matrix_function.h" // cAffineMatrixFunction
22#include "./c_csc_matrix.h" // cCSCMatrix
23
24
25// ============================
26// c CSC Affine Matrix Function
27// ============================
28
43
44template <typename DataType>
46{
47 public:
48
49 // Member methods
51 const DataType* A_data_,
52 const LongIndexType* A_indices_,
53 const LongIndexType* A_index_pointer_,
54 const LongIndexType num_rows_,
55 const LongIndexType num_columns_,
56 const FlagType A_is_symmetric_);
57
59 const DataType* A_data_,
60 const LongIndexType* A_indices_,
61 const LongIndexType* A_index_pointer_,
62 const LongIndexType num_rows_,
63 const LongIndexType num_columns_,
64 const FlagType A_is_symmetric_,
65 const DataType* B_data_,
66 const LongIndexType* B_indices_,
67 const LongIndexType* B_index_pointer_,
68 const FlagType B_is_symmetric_);
69
71
72 virtual void set_symmetry(const FlagType symmetric);
73
74 virtual void dot(
75 const DataType* vector,
76 DataType* product);
77
78 virtual void transpose_dot(
79 const DataType* vector,
80 DataType* product);
81
82 protected:
83
84 // Member data
87};
88
89#endif // _C_LINEAR_OPERATOR_C_CSC_AFFINE_MATRIX_FUNCTION_H_
Base class for affine matrix functions of one parameter.
Container for CSC affine matrix functions of one parameter.
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.
virtual void dot(const DataType *vector, DataType *product)
Matrix vector product.
Container for CSC matrices.
int LongIndexType
Definition types.h:60
int FlagType
Definition types.h:68