CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

| Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

Views: 418346
#############################################################################
##
##  ConvexObject.gd               Convex package       Sebastian Gutsche
##
##  Copyright 2011-2012 Lehrstuhl B für Mathematik, RWTH Aachen
##
##  The Main Object to be viewed, is almost everything that has a number ;).
##
#############################################################################

##  <#GAPDoc Label="IsConvexObject">
##  <ManSection>
##    <Filt Type="Category" Arg="M" Name="IsConvexObject"/>
##    <Returns><C>true</C> or <C>false</C></Returns>
##    <Description>
##      The &GAP; category of convex objects, the main category of this package.
##    </Description>
##  </ManSection>
##  <#/GAPDoc>
##
DeclareCategory( "IsConvexObject", 
                 IsObject );


DeclareRepresentation( "IsExternalConvexObjectRep",
                      IsConvexObject and IsAttributeStoringRep,
                      [ ]
                     );

DeclareRepresentation( "IsInternalConvexObjectRep",
                      IsConvexObject and IsAttributeStoringRep,
                      [ ]
                     );


################################
##
## Attributes
##
################################

##  <#GAPDoc Label="ExternalObject">
##  <ManSection>
##    <Attr Arg="conv" Name="ExternalObject"/>
##    <Returns>an external object</Returns>
##    <Description>
##      Returns the external object contained in the combinatorical object <A>conv</A>,
##      if there is one.
##    </Description>
##  </ManSection>
##  <#/GAPDoc>
##
DeclareAttribute( "ExternalObject",
                  IsConvexObject );

##  <#GAPDoc Label="Dimension">
##  <ManSection>
##    <Attr Arg="conv" Name="Dimension"/>
##    <Returns>an integer</Returns>
##    <Description>
##      Returns the combinatorial dimension of the convex object <A>conv</A>. This is the
##      dimension of the smallest space i which <A>conv</A> can be embedded.
##    </Description>
##  </ManSection>
##  <#/GAPDoc>
##
DeclareAttribute( "Dimension",
                  IsConvexObject );

##  <#GAPDoc Label="AmbientSpaceDimension">
##  <ManSection>
##    <Attr Arg="conv" Name="AmbientSpaceDimension"/>
##    <Returns>an integer</Returns>
##    <Description>
##      Returns the dimension of the ambient space of the object <A>conv</A>.
##    </Description>
##  </ManSection>
##  <#/GAPDoc>
##
DeclareAttribute( "AmbientSpaceDimension",
                  IsConvexObject );

##  <#GAPDoc Label="ContainingGrid">
##  <ManSection>
##    <Attr Arg="conv" Name="ContainingGrid"/>
##    <Returns>a homalg module</Returns>
##    <Description>
##      Returns the ambient space of the object <A>conv</A> as a homalg module.
##    </Description>
##  </ManSection>
##  <#/GAPDoc>
##
DeclareAttribute( "ContainingGrid",
                  IsConvexObject );

################################
##
## Properties
##
################################

##  <#GAPDoc Label="IsFullDimensional">
##  <ManSection>
##    <Prop Arg="conv" Name="IsFullDimensional"/>
##    <Returns><C>true</C> or <C>false</C></Returns>
##    <Description>
##      Checks if the combinatorial dimension of the convex object <A>conv</A> is the same
##      as the dimension of the ambient space.
##    </Description>
##  </ManSection>
##  <#/GAPDoc>
##
DeclareProperty( "IsFullDimensional",
                 IsConvexObject );

################################
##
## Methods
##
################################

##  <#GAPDoc Label="DrawObject">
##  <ManSection>
##    <Oper Arg="conv" Name="DrawObject"/>
##    <Returns>0</Returns>
##    <Description>
##      Draws a nice picture of the object <A>conv</A>, if your computer supports Java.
##      As a side effect, you might not be able to exit &GAP; anymore.
##    </Description>
##  </ManSection>
##  <#/GAPDoc>
##
DeclareOperation( "DrawObject",
                  [ IsConvexObject ] );

################################
##
## Basics
##
################################

##  <#GAPDoc Label="WeakPointerToExternalObject">
##  <ManSection>
##    <Oper Arg="conv" Name="WeakPointerToExternalObject"/>
##    <Returns>a pointer</Returns>
##    <Description>
##      Returns a pointer to an external object which is the basis of <A>conv</A>.
##      This method is not used any more.
##    </Description>
##  </ManSection>
##  <#/GAPDoc>
##
DeclareOperation( "WeakPointerToExternalObject",
        [ IsExternalConvexObjectRep ] );