@@ -192,21 +192,6 @@ InstallMethod( CompatibleVectorFilter, ["IsPlistMatrixRep"],
192192# ###########################################################################
193193
194194
195- # ###########################################################################
196- # The basic attributes:
197- # ###########################################################################
198-
199- InstallMethod( BaseDomain, " for a plist vector" , [ IsPlistVectorRep ] ,
200- function ( v )
201- return v![ BDPOS] ;
202- end );
203-
204- InstallMethod( Length, " for a plist vector" , [ IsPlistVectorRep ] ,
205- function ( v )
206- return Length(v![ ELSPOS] );
207- end );
208-
209-
210195# ###########################################################################
211196# Representation preserving constructors:
212197# ###########################################################################
@@ -225,6 +210,7 @@ InstallMethod( ZeroVector, "for an integer and a plist matrix",
225210 [ IsInt, IsPlistMatrixRep ] ,
226211 function ( l, m )
227212 local v;
213+ # TODO: minimize number of places invoking `Objectify`
228214 v := Objectify(TypeObj(m![ EMPOS] ),
229215 [ m![ BDPOS] ,ListWithIdenticalEntries(l,Zero(m![ BDPOS] ))] );
230216 if not IsMutable(v) then SetFilterObj(v,IsMutable); fi ;
@@ -323,26 +309,6 @@ InstallMethod( Unpack, "for a plist vector",
323309 end );
324310
325311
326- # ###########################################################################
327- # Standard operations for all objects:
328- # ###########################################################################
329-
330- InstallMethod( ShallowCopy, " for a plist vector" , [ IsPlistVectorRep ] ,
331- function ( v )
332- local res;
333- res := Objectify(TypeObj(v),[ v![ BDPOS] ,ShallowCopy(v![ ELSPOS] )] );
334- if not IsMutable(v) then SetFilterObj(res,IsMutable); fi ;
335- return res;
336- end );
337-
338- # StructuralCopy works automatically
339-
340- InstallMethod( PostMakeImmutable, " for a plist vector" , [ IsPlistVectorRep ] ,
341- function ( v )
342- MakeImmutable( v![ ELSPOS] );
343- end );
344-
345-
346312# ###########################################################################
347313# Arithmetical operations:
348314# ###########################################################################
@@ -562,36 +528,6 @@ InstallMethod( CopySubVector, "for two plist vectors and two lists",
562528# ###########################################################################
563529# ###########################################################################
564530
565-
566- # ###########################################################################
567- # The basic attributes:
568- # ###########################################################################
569-
570- InstallMethod( BaseDomain, " for a plist matrix" ,
571- [ IsPlistMatrixRep ] ,
572- function ( m )
573- return m![ BDPOS] ;
574- end );
575-
576- InstallMethod( NumberRows, " for a plist matrix" ,
577- [ IsPlistMatrixRep ] ,
578- function ( m )
579- return Length(m![ ROWSPOS] );
580- end );
581-
582- InstallMethod( NumberColumns, " for a plist matrix" ,
583- [ IsPlistMatrixRep ] ,
584- function ( m )
585- return m![ RLPOS] ;
586- end );
587-
588- InstallMethod( DimensionsMat, " for a plist matrix" ,
589- [ IsPlistMatrixRep ] ,
590- function ( m )
591- return [ Length(m![ ROWSPOS] ),m![ RLPOS]] ;
592- end );
593-
594-
595531# ###########################################################################
596532# Representation preserving constructors:
597533# ###########################################################################
@@ -738,26 +674,6 @@ InstallMethod( Append, "for two plist matrices",
738674 Append(m![ ROWSPOS] ,n![ ROWSPOS] );
739675 end );
740676
741- InstallMethod( ShallowCopy, " for a plist matrix" ,
742- [ IsPlistMatrixRep ] ,
743- function ( m )
744- local res;
745- res := Objectify(TypeObj(m),[ m![ BDPOS] ,m![ EMPOS] ,m![ RLPOS] ,
746- ShallowCopy(m![ ROWSPOS] )] );
747- if not IsMutable(m) then
748- SetFilterObj(res,IsMutable);
749- fi ;
750- # T 'ShallowCopy' MUST return a mutable object
751- # T if such an object exists at all!
752- return res;
753- end );
754-
755- InstallMethod( PostMakeImmutable, " for a plist matrix" ,
756- [ IsPlistMatrixRep ] ,
757- function ( m )
758- MakeImmutable( m![ ROWSPOS] );
759- end );
760-
761677InstallMethod( ListOp, " for a plist matrix" ,
762678 [ IsPlistMatrixRep ] ,
763679 function ( m )
0 commit comments