Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/simpcomp/lib/   (GAP Algebra Version 4.15.1©)  Datei vom 18.2.2022 mit Größe 1 kB image not shown  

Quelle  pkghom.gi   Sprache: Shell

 

################################################################################
##
##  simpcomp / pkghom.gi
##
##  Loaded when `homology' package is available
##
##  $Id$
##
################################################################################


#setup homology package settings
SetHomologyAlgorithm(EliminateGMPAlgorithm);
SetHomologyGroupFormat(GapFormat);
HomologyInfo(0);

InstallGlobalFunction(SCHomologyClassic,
function(complex)

 local hom,facets;

 if(not SCIsSimplicialComplex(complex)) then
  Info(InfoSimpcomp,1,"SCHomologyClassic: first argument must be of type SCSimplicialComplex.");
  return fail;
 fi;

 if HasSCHomology(complex) then
  return SCHomology(complex);
 fi;
 
 if not IsBoundGlobal("SimplicialHomology") then
  return SCHomologyInternal(complex);
 fi;
 
 facets:=SCFacetsEx(complex);
 if facets=fail then
  return fail;
 fi;
 
 SetHomologyAlgorithm(EliminateGMPAlgorithm);
 SetHomologyGroupFormat(GapFormat);
 HomologyInfo(0);
 hom:=SimplicialHomology(facets);
 
 if(hom=fail) then
  Info(InfoSimpcomp,1,"SCHomologyClassic: computing homology failed.");
  return fail;
 fi;
 
 if IsBound(hom[1]) and hom[1]=[0,[]] then
  SetSCIsConnected(complex,true);
 else
  SetSCIsConnected(complex,false);
 fi;

 SetSCHomology(complex,hom);
 return hom;
end);


Messung
CHZG
9010010096

¤ Dauer der Verarbeitung: 0.2 Sekunden  (vorverarbeitet am  2026-11-04) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover


Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.