Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/hap/lib/Sparse/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 19.6.2025 mit Größe 1 kB image not shown  

Quelle  sparse.gd   Sprache: unbekannt

 
#(C) Graham Ellis, 2005-2006


#####################################################################
#####################################################################
DeclareCategory("IsHapSparseMat",IsObject);

DeclareRepresentation( "IsHapSparseMatRep",
   IsComponentObjectRep,
   ["rows",
    "cols",
     "characteristic",
     "mat",
   ]);

HapSparseMatFamily:=NewFamily( "HapSparseMatFamily",
    IsHapSparseMat,
    IsHapSparseMat);

HapSparseMat:=NewType(HapSparseMatFamily,IsHapSparseMatRep);

InstallMethod( ViewObj,
"for HapSparseMat",
 [IsHapSparseMat],
 function(M)
 Print("Sparse matrix with ", M!.rows, " rows and ", M!.cols, " columns in characteristic ", M!.characteristic,"\n");
 end);

InstallMethod( PrintObj,
"for HapSparseMat",
 [IsHapSparseMat],
 function(M)
 Print("Sparse matrix with ", M!.rows, " rows and ", M!.cols, " columns in characteristic ", M!.characteristic,"\n");
 end);

#####################################################################
#####################################################################



[ Dauer der Verarbeitung: 0.18 Sekunden  (vorverarbeitet)  ]