Math :: MatrixReal :: Aug

math :: matrixreal :: Aug-Perl-Modul enthält zusätzliche Methoden für Math :: MatrixReal.
Jetzt downloaden

Math :: MatrixReal :: Aug Ranking & Zusammenfassung

Anzeige

  • Rating:
  • Lizenz:
  • Perl Artistic License
  • Preis:
  • FREE
  • Name des Herausgebers:
  • Jacob C. Kesinger
  • Website des Verlags:
  • http://search.cpan.org/~kesinger/Math-MatrixReal-Aug-0.02/Aug.pm

Math :: MatrixReal :: Aug Stichworte


Math :: MatrixReal :: Aug Beschreibung

Math :: MatrixReal :: Aug-Perl-Modul enthält zusätzliche Methoden für Matrix :: MatrixReal. Synopsis verwenden Math :: MatrixReal; Verwenden Sie MATH :: Matrixreal :: Aug; Dies sind bestimmte zusätzliche Methoden für Math :: MatrixReal, in der Tradition der Mathematik :: MatrixReal :: ext1; $ matrix1-> augmentright ($ matrix2); Erstellt eine neue Matrix des Formulars . $ matrix1 und $ matrix2 müssen die gleiche Anzahl von Reihen haben. Example: $ a = math :: matrixreal-> new_from_cols (]); $ B = Math :: MatrixReal-> NEW_FROM_COLS (, ]); $ C = $ A / $ B Print $ c; $ matrix1-> AugmentBelow ($ matrix2); Erstellt eine neue Matrix des Formulars . $ matrix1 und $ matrix2 müssen die gleiche Anzahl von Spalten haben.Example: $ a = math :: matrixreal-> new_from_cols (, ]); $ B = Math :: MatrixReal-> NEW_FROM_COLS (, ]); $ C = $ A / $ B Print $ c; $ matrix-> anwendenFunction ($ colleeref) gilt $ CodeRef zu jedem Element von $ MATRIX und gibt das Ergebnis zurück. $ codeeref sollte ein Verweis auf eine Subroutine sein, die vier Parameter dauert: ($ Matrix, $ Matrix-> Element ($ i, $ j), $ i, $ j), wo $ i und $ j die Zeilen- und Spaltenindizes von sind Das aktuelle Element Rückgabe $ Element + 1; } $ A = math :: matrixreal-> new_from_cols (, ]); $ E = $ A-> AnwendenFunction (Inkrement); $ e drucken; $ matrix-> largeexponential ($ exponent) findet $ matrix ^ $ exponent mit der quadrat-and-multiplizet-Methode. $ Matrix muss quadratisch sein und $ Exponent muss eine positive Ganzzahl sein. Viel effizienter für große $ exponent als $ matrix -> $ exponentiell ($ exponent) dabei sind ungefähr log2 ($ exponent) Multiplikationen anstelle von ungefähr $ exponent erforderlich. $ Matrix-> füllen ($ const); Setzt alle Elemente von $ Matrix, die gleich $ const.example: $ a = new math :: matrixreal (3,3); $ A-> füllen (4); drucken $ a; $ new_matrix = $ ti_matrix-> new fill ($ Zeilen, $ Spalten, $ const); $ new_matrix = math :: matrixreal-> new fill ($ Zeilen, $ Spalten, $ const); Erzeugt eine neue Matrix der angegebenen Größe, von denen alle Elemente $ const.Example sind: $ a = math :: matrixreal-> new fill (3,3,4); drucken $ a; Anforderungen: · Perl Anforderungen: · Perl.


Math :: MatrixReal :: Aug Zugehörige Software