Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/qpa/lib/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 4.0.2024 mit Größe 635 B image not shown  

Quelle  util.gi   Sprache: unbekannt

 
Spracherkennung für: .gi vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

# GAP Implementation
# $Id: util.gi,v 1.1 2011/04/28 09:36:47 oysteini Exp $


InstallMethod( PositionsNonzero,
        "for a list",
        [ IsList ],
        function( list )
    return PositionsProperty(
                   list,
                   function( x ) return not IsZero( x ); end );
end );


#InstallMethod( Square,
#        "for a rational number",
#        [ IsRat ],
#        function( x ) return x * x; end);
        
        
InstallMethod( NullList,
        "for a positive integer and a field",
        [ IsPosInt, IsField ],
        function( length, field )
    return NullMat( 1, length, field )[ 1 ];
end );


[ Dauer der Verarbeitung: 0.28 Sekunden  ]