« Math.NET Numerics » : différence entre les versions
Apparence
Aucun résumé des modifications |
|||
Ligne 1 : | Ligne 1 : | ||
=Généralités= | [[Category:.NET Application]] | ||
= Généralités = | |||
Bibliothèque de classes pour le calcul numérique.<br/> | Bibliothèque de classes pour le calcul numérique.<br/> | ||
[http://numerics.mathdotnet.com Site web] | [http://numerics.mathdotnet.com Site web] | ||
= Matrices = | = Matrices = | ||
<kode lang="csharp"> | <kode lang="csharp"> |
Dernière version du 12 mars 2023 à 09:34
Généralités
Bibliothèque de classes pour le calcul numérique.
Site web
Matrices
using MathNet.Numerics.LinearAlgebra.Single;
// matrice de float
var matrix = new SparseMatrix(new float[5, 5] {
{ -1.0f, 0.0f, -1.0f, 0.0f, 0.0f },
{ 0.0f, 0.0f, 0.0f, 0.0f, 0.0f },
{ 0.0f, 0.0f, 0.0f, 0.0f, 0.0f },
{ 0.0f, 0.0f, -1.0f, 0.0f, 0.0f },
{ 0.0f, 0.0f, 0.0f, 0.0f, -1.0f }
});
var inverse = matrix.Inverse();
var transpose = matrix.Transpose();
|