DiSMEC++
matrix_types.h
Go to the documentation of this file.
1 // Copyright (c) 2021, Aalto University, developed by Erik Schultheis
2 // All rights reserved.
3 //
4 // SPDX-License-Identifier: MIT
5 
6 #ifndef DISMEC_MATRIX_TYPES_H
7 #define DISMEC_MATRIX_TYPES_H
8 
13 #include <variant>
14 #include "config.h"
15 #include "utils/type_helpers.h"
16 
17 namespace dismec {
18  namespace types {
19  template<class T>
20  class GenericMatrixRef;
21 
22  template<class Dense, class Sparse>
23  class GenericMatrix;
24 
25  template<class T>
27 
28  template<class T>
29  class GenericVectorRef;
30  }
31 
36 
43 
51 
59 
61 
69 
76 
82 }
83 
84 #endif //DISMEC_MATRIX_TYPES_H
Defines configuration variables.
outer_const< T, sparse_row_major_h > SparseRowMajor
Definition: type_helpers.h:49
outer_const< T, dense_row_major_h > DenseRowMajor
Definition: type_helpers.h:43
outer_const< T, dense_vector_h > DenseVector
Definition: type_helpers.h:37
outer_const< T, sparse_vector_h > SparseVector
Definition: type_helpers.h:40
Main namespace in which all types, classes, and functions are defined.
Definition: app.h:15
types::DenseRowMajor< real_t > DenseFeatures
Dense Feature Matrix in Row Major format.
Definition: matrix_types.h:58
types::DenseRowMajor< long > IndexMatrix
Matrix used for indices in sparse predictions.
Definition: matrix_types.h:81
types::SparseVector< real_t > SparseRealVector
Definition: matrix_types.h:41
types::DenseVector< std::int8_t > BinaryLabelVector
Dense vector for storing binary labels.
Definition: matrix_types.h:68
types::DenseVector< real_t > DenseRealVector
Any dense, real values vector.
Definition: matrix_types.h:40
types::SparseRowMajor< real_t > SparseFeatures
Sparse Feature Matrix in Row Major format.
Definition: matrix_types.h:50
types::DenseRowMajor< real_t > PredictionMatrix
Dense matrix in Row Major format used for predictions.
Definition: matrix_types.h:75