Rev | Line | |
---|
[213] | 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 | */
|
---|
| 24 | class Matrix_impl {
|
---|
| 25 | public:
|
---|
| 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,
|
---|
[318] | 29 | const flair::core::MatrixDescriptor *descriptor,
|
---|
[213] | 30 | flair::core::ScalarType const &elementDataType, int n);
|
---|
| 31 | ~Matrix_impl();
|
---|
| 32 |
|
---|
| 33 | flair::core::ScalarType const &elementDataType;
|
---|
[318] | 34 | flair::core::MatrixDescriptor *descriptor;
|
---|
[214] | 35 | void *datas;
|
---|
| 36 | void SetValueNoMutex(uint32_t row, uint32_t col, float value);
|
---|
| 37 | float ValueNoMutex(uint32_t row, uint32_t col) const;
|
---|
[213] | 38 |
|
---|
| 39 | private:
|
---|
| 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.