Représentation d'une matrice, le type des éléments et les dimensions de la matrice sont en template. Plus de détails...
Graphe de collaboration de Castor::Matrix< T, Rows, Columns >:Types publics | |
| typedef __value_type | value_type |
| Typedef sur le type de données. | |
| typedef __column | col_type |
| Typedef sur le type de colonne. | |
| typedef __row | row_type |
| Typedef sur le type de ligne. | |
| typedef __transpose | transpose_type |
| Typedef sur le type de matrice transposée. | |
| typedef __policy | policy |
| Typedef sur la politique. | |
| typedef Matrix< value_type, Rows, Columns > | my_type |
| Typedef sur le type de cette matrice. | |
Fonctions membres publiques | |
| Matrix () | |
| Constructeur. | |
| Matrix (Matrix< T, Columns, Rows > const &p_matrix) | |
| Constructeur par copie. | |
| Matrix (Matrix< T, Columns, Rows > &&p_matrix) | |
| Constructeur par déplacement. | |
| Matrix (T const &p_tValue) | |
| Constructeur. | |
| template<typename Type > | |
| Matrix (Type const *p_pMatrix) | |
| Constructeur. | |
| template<typename Type > | |
| Matrix (Matrix< Type, Columns, Rows > const &p_matrix) | |
| Constructeur par copie convertie. | |
| virtual | ~Matrix () |
| Destructeur. | |
| void | set_row (std::size_t p_uiRow, value_type const *p_row) |
| Définit les valeurs d'une ligne donnée. | |
| void | set_row (std::size_t p_uiRow, row_type const &p_row) |
| Définit les valeurs d'une ligne donnée. | |
| row_type | get_row (std::size_t p_uiRow) const |
| Récupère une ligne. | |
| void | get_row (std::size_t p_uiRow, row_type &p_mResult) const |
| Récupère une ligne. | |
| void | set_column (std::size_t p_uiColumn, value_type const *p_col) |
| Définit les valeurs d'une colonne donnée. | |
| void | set_column (std::size_t p_uiColumn, col_type const &p_col) |
| Définit les valeurs d'une colonne donnée. | |
| col_type | get_column (std::size_t p_uiColumn) const |
| Récupère une colonne. | |
| void | get_column (std::size_t p_uiColumn, col_type &p_mResult) const |
| Récupère une colonne. | |
| value_type | value_at (std::size_t p_uiRow, std::size_t p_uiColumn) |
| Récupère la valeur à la position donnée. | |
| col_type const & | operator[] (std::size_t i) const |
| Récupère la colonne à l'index donné. | |
| col_type & | operator[] (std::size_t i) |
| Récupère la colonne à l'index donné. | |
| value_type * | ptr () |
| Récupère le pointeur sur les données. | |
| value_type const * | const_ptr () const |
| Récupère le pointeur sur les données constantes. | |
| void | link (void *p_pCoords) |
| Lie les données de cette matrice à celles données en paramètre. | |
| void | initialise (value_type const &p_value=policy::zero()) |
| Initialise la matrice comme une matrice de Jordan, avec la valeur donnée. | |
| transpose_type | get_transposed () const |
| Calcule et renvoie la transposée de cette matrice. | |
| void | get_transposed (transpose_type &p_mResult) const |
| Calcule la transposée de cette matrice. | |
| my_type | get_triangle () const |
| Calcule et renvoie la triangulaire de cette matrice. | |
| my_type | get_jordan (value_type p_tLambda) const |
| Calcule et renvoie une matrice de Jordan. | |
| my_type | get_identity () const |
| Calcule et renvoie une matrice identité. | |
| value_type | get_trace () const |
| Récupère la trace de cette matrice. | |
| void | set_triangle () |
| Définit cette matrice comme sa triangulaire. | |
| void | set_jordan (value_type p_tLambda) |
| Définit cette matrice à une matrice de Jordan. | |
| void | set_identity () |
| Définit cette matrice à l'identité. | |
| Matrix< T, Rows, Columns > & | operator= (Matrix< T, Rows, Columns > const &p_matrix) |
| Opérateur d'affectation par copie. | |
| Matrix< T, Rows, Columns > & | operator= (Matrix< T, Rows, Columns > &&p_matrix) |
| Opérateur d'affectation par déplacement. | |
| template<typename Type > | |
| Matrix< T, Rows, Columns > & | operator= (Matrix< Type, Rows, Columns > const &p_matrix) |
| Opérateur d'affectation par copie convertie. | |
| template<typename Type > | |
| Matrix< T, Rows, Columns > & | operator+= (Matrix< Type, Rows, Columns > const &p_matrix) |
| Opérateur d'affectation par addition. | |
| template<typename Type > | |
| Matrix< T, Rows, Columns > & | operator-= (Matrix< Type, Rows, Columns > const &p_matrix) |
| Opérateur d'affectation par soustraction. | |
| template<typename Type > | |
| Matrix< T, Rows, Columns > & | operator= (Type const *p_pMatrix) |
| Opérateur d'affectation par copie convertie. | |
| template<typename Type > | |
| Matrix< T, Rows, Columns > & | operator+= (Type const *p_pMatrix) |
| Opérateur d'affectation par addition. | |
| template<typename Type > | |
| Matrix< T, Rows, Columns > & | operator-= (Type const *p_pMatrix) |
| Opérateur d'affectation par soustraction. | |
| Matrix< T, Rows, Columns > & | operator+= (T const &p_tValue) |
| Opérateur d'affectation par addition. | |
| Matrix< T, Rows, Columns > & | operator-= (T const &p_tValue) |
| Opérateur d'affectation par soustraction. | |
| Matrix< T, Rows, Columns > & | operator*= (T const &p_tValue) |
| Opérateur d'affectation par multiplication. | |
| Matrix< T, Rows, Columns > & | operator/= (T const &p_tValue) |
| Opérateur d'affectation par division. | |
Types protégés | |
| typedef T | __value_type |
| typedef Matrix< __value_type, Rows, Columns > | __type |
| typedef Matrix< __value_type, Columns, Rows > | __transpose |
| typedef Point< __value_type, Columns > | __row |
| typedef Point< __value_type, Rows > | __column |
| typedef Castor::Policy < __value_type > | __policy |
Fonctions membres protégées | |
| my_type | rec_get_minor (std::size_t x, std::size_t y, std::size_t p_uiRows, std::size_t p_uiCols) const |
Attributs protégés | |
| bool | m_bOwnCoords |
| col_type | m_matrix [Columns] |
| value_type * | m_pPointer |
Représentation d'une matrice, le type des éléments et les dimensions de la matrice sont en template.
typedef Point<__value_type, Rows> Castor::Matrix< T, Rows, Columns >::__column [protected] |
typedef Castor::Policy<__value_type> Castor::Matrix< T, Rows, Columns >::__policy [protected] |
typedef Point<__value_type, Columns> Castor::Matrix< T, Rows, Columns >::__row [protected] |
typedef Matrix<__value_type, Columns, Rows> Castor::Matrix< T, Rows, Columns >::__transpose [protected] |
typedef Matrix<__value_type, Rows, Columns> Castor::Matrix< T, Rows, Columns >::__type [protected] |
typedef T Castor::Matrix< T, Rows, Columns >::__value_type [protected] |
| typedef __column Castor::Matrix< T, Rows, Columns >::col_type |
Typedef sur le type de colonne.
Réimplémentée dans Castor::SquareMatrix< T, Rows >.
| typedef Matrix< value_type, Rows, Columns > Castor::Matrix< T, Rows, Columns >::my_type |
Typedef sur le type de cette matrice.
| typedef __policy Castor::Matrix< T, Rows, Columns >::policy |
Typedef sur la politique.
Réimplémentée dans Castor::SquareMatrix< T, Rows >.
| typedef __row Castor::Matrix< T, Rows, Columns >::row_type |
Typedef sur le type de ligne.
Réimplémentée dans Castor::SquareMatrix< T, Rows >.
| typedef __transpose Castor::Matrix< T, Rows, Columns >::transpose_type |
Typedef sur le type de matrice transposée.
Réimplémentée dans Castor::SquareMatrix< T, Rows >.
| typedef __value_type Castor::Matrix< T, Rows, Columns >::value_type |
Typedef sur le type de données.
Réimplémentée dans Castor::SquareMatrix< T, Rows >.
| Castor::Matrix< T, Rows, Columns >::Matrix | ( | ) |
Constructeur.
| Castor::Matrix< T, Rows, Columns >::Matrix | ( | Matrix< T, Columns, Rows > const & | p_matrix | ) |
Constructeur par copie.
| [in] | p_matrix | L'objet Matrix à copier |
| Castor::Matrix< T, Rows, Columns >::Matrix | ( | Matrix< T, Columns, Rows > && | p_matrix | ) |
Constructeur par déplacement.
| [in] | p_matrix | L'objet Matrix à déplacer |
| Castor::Matrix< T, Rows, Columns >::Matrix | ( | T const & | p_tValue | ) |
Constructeur.
| [in] | p_tValue | La matrice est initialisée comme une Jordan avec cette valeur |
| Castor::Matrix< T, Rows, Columns >::Matrix | ( | Type const * | p_pMatrix | ) |
Constructeur.
| [in] | p_pMatrix | Buffer de données à copier dans la matrice |
| Castor::Matrix< T, Rows, Columns >::Matrix | ( | Matrix< Type, Columns, Rows > const & | p_matrix | ) |
Constructeur par copie convertie.
| [in] | p_matrix | L'objet Matrix à copier |
| virtual Castor::Matrix< T, Rows, Columns >::~Matrix | ( | ) | [virtual] |
Destructeur.
| value_type const* Castor::Matrix< T, Rows, Columns >::const_ptr | ( | ) | const [inline] |
Récupère le pointeur sur les données constantes.
Voici le graphe d'appel pour cette fonction :| void Castor::Matrix< T, Rows, Columns >::get_column | ( | std::size_t | p_uiColumn, | |
| col_type & | p_mResult | |||
| ) | const |
Récupère une colonne.
| [in] | p_uiColumn | L'index de la colonne |
| [out] | p_mResult | Reçoit les valeurs de la colonne |
| col_type Castor::Matrix< T, Rows, Columns >::get_column | ( | std::size_t | p_uiColumn | ) | const |
Récupère une colonne.
| [in] | p_uiColumn | L'index de la colonne |
| my_type Castor::Matrix< T, Rows, Columns >::get_identity | ( | ) | const |
Calcule et renvoie une matrice identité.
| my_type Castor::Matrix< T, Rows, Columns >::get_jordan | ( | value_type | p_tLambda | ) | const |
Calcule et renvoie une matrice de Jordan.
| [in] | p_tLambda | La valeur de Jordan |
| void Castor::Matrix< T, Rows, Columns >::get_row | ( | std::size_t | p_uiRow, | |
| row_type & | p_mResult | |||
| ) | const |
Récupère une ligne.
| [in] | p_uiRow | L'index de la ligne |
| [out] | p_mResult | Reçoit les valeurs de la ligne |
| row_type Castor::Matrix< T, Rows, Columns >::get_row | ( | std::size_t | p_uiRow | ) | const |
Récupère une ligne.
| [in] | p_uiRow | L'index de la ligne |
| value_type Castor::Matrix< T, Rows, Columns >::get_trace | ( | ) | const |
Récupère la trace de cette matrice.
| transpose_type Castor::Matrix< T, Rows, Columns >::get_transposed | ( | ) | const |
Calcule et renvoie la transposée de cette matrice.
| void Castor::Matrix< T, Rows, Columns >::get_transposed | ( | transpose_type & | p_mResult | ) | const |
Calcule la transposée de cette matrice.
| [in] | p_mResult | Reçoit la transposée |
| my_type Castor::Matrix< T, Rows, Columns >::get_triangle | ( | ) | const |
Calcule et renvoie la triangulaire de cette matrice.
| void Castor::Matrix< T, Rows, Columns >::initialise | ( | value_type const & | p_value = policy::zero() |
) |
Initialise la matrice comme une matrice de Jordan, avec la valeur donnée.
| [in] | p_value | La valeur |
| void Castor::Matrix< T, Rows, Columns >::link | ( | void * | p_pCoords | ) |
Lie les données de cette matrice à celles données en paramètre.
| Matrix<T, Rows, Columns>& Castor::Matrix< T, Rows, Columns >::operator*= | ( | T const & | p_tValue | ) |
Opérateur d'affectation par multiplication.
| [in] | p_tValue | La valeur à multiplier |
Réimplémentée dans Castor::SquareMatrix< T, Rows >.
| Matrix<T, Rows, Columns>& Castor::Matrix< T, Rows, Columns >::operator+= | ( | T const & | p_tValue | ) |
Opérateur d'affectation par addition.
| [in] | p_tValue | La valeur à additionner |
Réimplémentée dans Castor::SquareMatrix< T, Rows >.
| Matrix<T, Rows, Columns>& Castor::Matrix< T, Rows, Columns >::operator+= | ( | Matrix< Type, Rows, Columns > const & | p_matrix | ) |
| Matrix<T, Rows, Columns>& Castor::Matrix< T, Rows, Columns >::operator+= | ( | Type const * | p_pMatrix | ) |
Opérateur d'affectation par addition.
| [in] | p_pMatrix | Le pointeur sur les données à ajouter |
Réimplémentée dans Castor::SquareMatrix< T, Rows >.
| Matrix<T, Rows, Columns>& Castor::Matrix< T, Rows, Columns >::operator-= | ( | T const & | p_tValue | ) |
Opérateur d'affectation par soustraction.
| [in] | p_tValue | La valeur à soustraire |
Réimplémentée dans Castor::SquareMatrix< T, Rows >.
| Matrix<T, Rows, Columns>& Castor::Matrix< T, Rows, Columns >::operator-= | ( | Matrix< Type, Rows, Columns > const & | p_matrix | ) |
| Matrix<T, Rows, Columns>& Castor::Matrix< T, Rows, Columns >::operator-= | ( | Type const * | p_pMatrix | ) |
Opérateur d'affectation par soustraction.
| [in] | p_pMatrix | Le pointeur sur les données à soustraire |
Réimplémentée dans Castor::SquareMatrix< T, Rows >.
| Matrix<T, Rows, Columns>& Castor::Matrix< T, Rows, Columns >::operator/= | ( | T const & | p_tValue | ) |
Opérateur d'affectation par division.
| [in] | p_tValue | La valeur à diviser |
Réimplémentée dans Castor::SquareMatrix< T, Rows >.
| Matrix<T, Rows, Columns>& Castor::Matrix< T, Rows, Columns >::operator= | ( | Type const * | p_pMatrix | ) |
Opérateur d'affectation par copie convertie.
| [in] | p_pMatrix | Le pointeur sur les données à copier |
Réimplémentée dans Castor::SquareMatrix< T, Rows >.
| Matrix<T, Rows, Columns>& Castor::Matrix< T, Rows, Columns >::operator= | ( | Matrix< T, Rows, Columns > const & | p_matrix | ) |
| Matrix<T, Rows, Columns>& Castor::Matrix< T, Rows, Columns >::operator= | ( | Matrix< T, Rows, Columns > && | p_matrix | ) |
| Matrix<T, Rows, Columns>& Castor::Matrix< T, Rows, Columns >::operator= | ( | Matrix< Type, Rows, Columns > const & | p_matrix | ) |
| col_type const& Castor::Matrix< T, Rows, Columns >::operator[] | ( | std::size_t | i | ) | const |
Récupère la colonne à l'index donné.
| [in] | i | L'index |
| col_type& Castor::Matrix< T, Rows, Columns >::operator[] | ( | std::size_t | i | ) |
Récupère la colonne à l'index donné.
| [in] | i | L'index |
| value_type* Castor::Matrix< T, Rows, Columns >::ptr | ( | ) | [inline] |
Récupère le pointeur sur les données.
Voici le graphe d'appel pour cette fonction :| my_type Castor::Matrix< T, Rows, Columns >::rec_get_minor | ( | std::size_t | x, | |
| std::size_t | y, | |||
| std::size_t | p_uiRows, | |||
| std::size_t | p_uiCols | |||
| ) | const [protected] |
| void Castor::Matrix< T, Rows, Columns >::set_column | ( | std::size_t | p_uiColumn, | |
| col_type const & | p_col | |||
| ) |
Définit les valeurs d'une colonne donnée.
| [in] | p_uiColumn | La colonne à affecter |
| [in] | p_col | Les valeurs |
| void Castor::Matrix< T, Rows, Columns >::set_column | ( | std::size_t | p_uiColumn, | |
| value_type const * | p_col | |||
| ) |
Définit les valeurs d'une colonne donnée.
| [in] | p_uiColumn | La colonne à affecter |
| [in] | p_col | Les valeurs |
| void Castor::Matrix< T, Rows, Columns >::set_identity | ( | ) |
Définit cette matrice à l'identité.
| void Castor::Matrix< T, Rows, Columns >::set_jordan | ( | value_type | p_tLambda | ) |
Définit cette matrice à une matrice de Jordan.
| [in] | p_tLambda | La valeur de Jordan |
| void Castor::Matrix< T, Rows, Columns >::set_row | ( | std::size_t | p_uiRow, | |
| value_type const * | p_row | |||
| ) |
Définit les valeurs d'une ligne donnée.
| [in] | p_uiRow | La ligne à affecter |
| [in] | p_row | Les valeurs |
| void Castor::Matrix< T, Rows, Columns >::set_row | ( | std::size_t | p_uiRow, | |
| row_type const & | p_row | |||
| ) |
Définit les valeurs d'une ligne donnée.
| [in] | p_uiRow | La ligne à affecter |
| [in] | p_row | Les valeurs |
| void Castor::Matrix< T, Rows, Columns >::set_triangle | ( | ) |
Définit cette matrice comme sa triangulaire.
| value_type Castor::Matrix< T, Rows, Columns >::value_at | ( | std::size_t | p_uiRow, | |
| std::size_t | p_uiColumn | |||
| ) |
Récupère la valeur à la position donnée.
| [in] | p_uiRow,p_uiColumn | La position |
bool Castor::Matrix< T, Rows, Columns >::m_bOwnCoords [protected] |
col_type Castor::Matrix< T, Rows, Columns >::m_matrix[Columns] [protected] |
value_type* Castor::Matrix< T, Rows, Columns >::m_pPointer [protected] |
1.7.1