source: flair-src/trunk/lib/FlairCore/src/unexported/Matrix_impl.h

Last change on this file was 318, checked in by Sanahuja Guillaume, 2 years ago
File size: 1.1 KB
Line 
1// %flair:license{
2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
4// %flair:license}
5/*!
6 * \file Matrix_impl.h
7 * \brief Classe définissant une matrice
8 * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
9 * \date 2018/01/30
10 * \version 4.0
11 */
12
13#ifndef MATRIX_IMPL_H
14#define MATRIX_IMPL_H
15
16#include <io_data.h>
17#include <Matrix.h>
18
19
20/*! \class Matrix_impl
21* \brief Classe définissant une matrice
22*
23*/
24class Matrix_impl {
25public:
26  Matrix_impl(flair::core::Matrix *self, int rows, int cols,
27                flair::core::ScalarType const &elementDataType, int n);
28  Matrix_impl(flair::core::Matrix *self,
29                const flair::core::MatrixDescriptor *descriptor,
30                flair::core::ScalarType const &elementDataType, int n);
31  ~Matrix_impl();
32
33  flair::core::ScalarType const &elementDataType;
34  flair::core::MatrixDescriptor *descriptor;
35  void *datas;
36  void SetValueNoMutex(uint32_t row, uint32_t col, float value);
37  float ValueNoMutex(uint32_t row, uint32_t col) const;
38
39private:
40  flair::core::Matrix *self;
41  void Init(flair::core::Matrix *self, int n);
42};
43
44#endif // MATRIX_IMPL_H
Note: See TracBrowser for help on using the repository browser.