Petite matrice de taille fixe contenant RowSize lignes et ColumnSize colonnes. Plus de détails...
#include <arccore/base/NumMatrix.h>
Types publics | |
| using | VectorType = NumVector<T, ColumnSize> |
| using | ThatClass = NumMatrix<T, RowSize, ColumnSize> |
| using | DataType = T |
Fonctions membres publiques | |
| constexpr | NumMatrix () |
| Construit une matrice avec chaque coefficient initialisé avec le constructeur par défaut de T. | |
| constexpr | NumMatrix (NoInitTag) |
| Construit la matrice SANS initialiser ses coefficients. | |
| constexpr __host__ __device__ | NumMatrix (const VectorType &ax) |
| Construit la matrice avec la ligne (ax). | |
| constexpr __host__ __device__ | NumMatrix (const VectorType &ax, const VectorType &ay) |
| Construit la matrice avec les lignes (ax, ay). | |
| constexpr __host__ __device__ | NumMatrix (const VectorType &ax, const VectorType &ay, const VectorType &az) |
| Construit la matrice avec les lignes (ax, ay, az). | |
| constexpr __host__ __device__ | NumMatrix (const VectorType &a1, const VectorType &a2, const VectorType &a3, const VectorType &a4) |
| Construit la matrice avec les lignes (a1, a2, a3, a4). | |
| constexpr __host__ __device__ | NumMatrix (const VectorType &a1, const VectorType &a2, const VectorType &a3, const VectorType &a4, const VectorType &a5) |
| Construit la matrice avec les lignes (a1, a2, a3, a4, a5). | |
| constexpr __host__ __device__ | NumMatrix (const VectorType &a1, const VectorType &a2, const VectorType &a3, const VectorType &a4, const VectorType &a5, const VectorType &a6) |
| Construit la matrice avec les lignes (a1, a2, a3, a4, a5, a6). | |
| constexpr __host__ __device__ | NumMatrix (const T &v) |
| Construit l'instance avec le triplet (v, v, v). | |
| constexpr __host__ __device__ | NumMatrix (const Real2x2 &v) |
| constexpr __host__ __device__ | NumMatrix (const Real3x3 &v) |
| constexpr __host__ __device__ ThatClass & | operator= (const DataType &v) |
| Assigne le triplet (v, v, v) à l'instance. | |
| constexpr __host__ __device__ ThatClass & | operator= (const Real2x2 &v) |
| constexpr __host__ __device__ ThatClass & | operator= (const Real3x3 &v) |
| operator Real2x2 () const | |
| Conversion en Real2x2. | |
| constexpr | operator Real3x3 () const |
| Conversion en Real3x3. | |
| constexpr __host__ __device__ ThatClass | operator- () const |
| Crée un tenseur opposé au tenseur actuel. | |
| constexpr __host__ __device__ VectorType | row (Int32 i) const |
| constexpr __host__ __device__ DataType & | operator() (Int32 i, Int32 j) |
| constexpr __host__ __device__ DataType | operator() (Int32 i, Int32 j) const |
| constexpr __host__ __device__ void | setRow (Int32 i, const VectorType &v) |
| Définit la valeur de la i-ème ligne à v. | |
| constexpr __host__ __device__ void | fill (const DataType &v) |
| Remplit la matrice avec la valeur v. | |
| constexpr __host__ __device__ ArrayView< DataType > | view () |
| Retourne une vue mutable des éléments de la matrice. | |
| constexpr __host__ __device__ ConstArrayView< DataType > | constView () const |
| Retourne une vue en lecture seule des éléments de la matrice. | |
| constexpr __host__ __device__ SmallSpan< DataType, NbElement > | span () |
| Retourne une vue mutable des éléments de la matrice. | |
| constexpr __host__ __device__ SmallSpan< const DataType, NbElement > | constSpan () const |
| Retourne une vue en lecture seule des éléments de la matrice. | |
| constexpr const VectorType | vx () const |
| constexpr const VectorType | vy () const |
| constexpr const VectorType | vz () const |
Fonctions membres publiques statiques | |
| constexpr __host__ static __device__ ThatClass | zero () |
| Construit la matrice nulle. | |
| constexpr __host__ static __device__ ThatClass | fromColumns (T ax, T ay, T az, T bx, T by, T bz, T cx, T cy, T cz) |
| Construit la matrice ((ax,bx,cx), (ay,by,cy), (az,bz,cz)). | |
| constexpr __host__ static __device__ ThatClass | fromLines (T ax, T bx, T cx, T ay, T by, T cy, T az, T bz, T cz) |
| Construit la matrice ((ax,bx,cx), (ay,by,cy), (az,bz,cz)). | |
Amis | |
| constexpr __host__ __device__ ThatClass & | operator+= (ThatClass &a, const ThatClass &b) |
| Ajoute b à a et retourne a. | |
| constexpr __host__ __device__ ThatClass & | operator-= (ThatClass &a, const ThatClass &b) |
| Soustrait b de a et retourne a. | |
| constexpr __host__ __device__ ThatClass & | operator*= (ThatClass &a, T b) |
| Multiplie chaque composante de la matrice a par le nombre réel b et retourne a. | |
| constexpr __host__ __device__ ThatClass & | operator/= (ThatClass &a, T b) |
| Divise chaque composante de la matrice par le nombre réel b. | |
| constexpr __host__ __device__ ThatClass | operator+ (const ThatClass &a, const ThatClass &b) |
| Crée un triplet qui est égal à ce triplet ajouté à b. | |
| constexpr __host__ __device__ ThatClass | operator- (const ThatClass &a, const ThatClass &b) |
| Crée un triplet qui est égal à a soustrait de ce triplet. | |
| constexpr __host__ __device__ ThatClass | operator* (DataType a, const ThatClass &mat) |
| Multiplication par un scalaire. | |
| constexpr __host__ __device__ ThatClass | operator* (const ThatClass &mat, DataType b) |
| Multiplication par un scalaire. | |
| constexpr __host__ __device__ ThatClass | operator/ (const ThatClass &mat, DataType b) |
| Division par un scalaire. | |
| constexpr __host__ __device__ bool | operator== (const ThatClass &a, const ThatClass &b) |
| Compare l'instance actuelle composante par composante à b. | |
| constexpr __host__ __device__ bool | operator!= (const ThatClass &a, const ThatClass &b) |
| Compare deux triplets. | |
| std::ostream & | operator<< (std::ostream &o, const NumMatrix &t) |
Petite matrice de taille fixe contenant RowSize lignes et ColumnSize colonnes.
Il est possible d'accéder à chaque ligne en utilisant la méthode 'row()' ou via les méthodes vx(), vy(), vz() si la dimension est suffisante (par exemple, vz() n'est accessible que si Size>=3.
Définition à la ligne 37 du fichier arccore/src/base/arccore/base/NumMatrix.h.
| using Arcane::NumMatrix< T, RowSize, ColumnSize >::DataType = T |
Définition à la ligne 52 du fichier arccore/src/base/arccore/base/NumMatrix.h.
| using Arcane::NumMatrix< T, RowSize, ColumnSize >::ThatClass = NumMatrix<T, RowSize, ColumnSize> |
Définition à la ligne 51 du fichier arccore/src/base/arccore/base/NumMatrix.h.
| using Arcane::NumMatrix< T, RowSize, ColumnSize >::VectorType = NumVector<T, ColumnSize> |
Définition à la ligne 50 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlineconstexpr |
Construit une matrice avec chaque coefficient initialisé avec le constructeur par défaut de T.
Définition à la ligne 57 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlineexplicitconstexpr |
Construit la matrice SANS initialiser ses coefficients.
Définition à la ligne 64 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlineconstexpr |
Construit la matrice avec la ligne (ax).
Définition à la ligne 67 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlineconstexpr |
Construit la matrice avec les lignes (ax, ay).
Définition à la ligne 74 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlineconstexpr |
Construit la matrice avec les lignes (ax, ay, az).
Définition à la ligne 82 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlineconstexpr |
Construit la matrice avec les lignes (a1, a2, a3, a4).
Définition à la ligne 91 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlineconstexpr |
Construit la matrice avec les lignes (a1, a2, a3, a4, a5).
Définition à la ligne 102 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlineconstexpr |
Construit la matrice avec les lignes (a1, a2, a3, a4, a5, a6).
Définition à la ligne 115 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlineexplicitconstexpr |
Construit l'instance avec le triplet (v, v, v).
Définition à la ligne 129 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlineexplicitconstexpr |
Définition à la ligne 135 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlineexplicitconstexpr |
Définition à la ligne 140 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlineconstexpr |
Retourne une vue en lecture seule des éléments de la matrice.
Définition à la ligne 367 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlineconstexpr |
Retourne une vue en lecture seule des éléments de la matrice.
Définition à la ligne 355 du fichier arccore/src/base/arccore/base/NumMatrix.h.
Référencé par Arcane::NumMatrix< DataType, Row, Column >::operator Real3x3().
|
inlineconstexpr |
Remplit la matrice avec la valeur v.
Définition à la ligne 341 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlinestaticconstexpr |
Construit la matrice ((ax,bx,cx), (ay,by,cy), (az,bz,cz)).
Définition à la ligne 188 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlinestaticconstexpr |
Construit la matrice ((ax,bx,cx), (ay,by,cy), (az,bz,cz)).
Définition à la ligne 195 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inline |
Conversion en Real2x2.
Définition à la ligne 168 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlineconstexpr |
Conversion en Real3x3.
Définition à la ligne 174 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlineconstexpr |
Définition à la ligne 316 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlineconstexpr |
Définition à la ligne 324 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlineconstexpr |
Crée un tenseur opposé au tenseur actuel.
Définition à la ligne 248 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlineconstexpr |
Assigne le triplet (v, v, v) à l'instance.
Définition à la ligne 146 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlineconstexpr |
Définition à la ligne 153 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlineconstexpr |
Définition à la ligne 160 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlineconstexpr |
Définition à la ligne 309 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlineconstexpr |
Définit la valeur de la i-ème ligne à v.
Définition à la ligne 332 du fichier arccore/src/base/arccore/base/NumMatrix.h.
Référencé par Arcane::NumMatrix< DataType, Row, Column >::NumMatrix(), Arcane::NumMatrix< DataType, Row, Column >::NumMatrix(), Arcane::NumMatrix< DataType, Row, Column >::NumMatrix(), Arcane::NumMatrix< DataType, Row, Column >::NumMatrix(), Arcane::NumMatrix< DataType, Row, Column >::NumMatrix(), et Arcane::NumMatrix< DataType, Row, Column >::NumMatrix().
|
inlineconstexpr |
Retourne une vue mutable des éléments de la matrice.
Définition à la ligne 361 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlineconstexpr |
Retourne une vue mutable des éléments de la matrice.
Définition à la ligne 349 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlineconstexpr |
Définition à la ligne 380 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlineconstexpr |
Définition à la ligne 385 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlineconstexpr |
Définition à la ligne 390 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
inlinestaticconstexpr |
Construit la matrice nulle.
Définition à la ligne 182 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
friend |
Compare deux triplets.
Pour la notion d'égalité, voir operator==()
| true | si les deux triplets sont différents, |
| false | sinon. |
Définition à la ligne 302 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
friend |
Multiplication par un scalaire.
Définition à la ligne 265 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
friend |
Multiplication par un scalaire.
Définition à la ligne 257 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
friend |
Multiplie chaque composante de la matrice a par le nombre réel b et retourne a.
Définition à la ligne 218 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
friend |
Crée un triplet qui est égal à ce triplet ajouté à b.
Définition à la ligne 232 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
friend |
Ajoute b à a et retourne a.
Définition à la ligne 204 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
friend |
Crée un triplet qui est égal à a soustrait de ce triplet.
Définition à la ligne 240 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
friend |
Soustrait b de a et retourne a.
Définition à la ligne 211 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
friend |
Division par un scalaire.
Définition à la ligne 273 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
friend |
Divise chaque composante de la matrice par le nombre réel b.
Définition à la ligne 225 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
friend |
Définition à la ligne 372 du fichier arccore/src/base/arccore/base/NumMatrix.h.
|
friend |
Compare l'instance actuelle composante par composante à b.
| true | si this.x==b.x et this.y==b.y et this.z==b.z. |
| false | sinon. |
Définition à la ligne 287 du fichier arccore/src/base/arccore/base/NumMatrix.h.