Skip to content

Commit 8ea9103

Browse files
ssicchafingolfin
authored andcommitted
Rename MultRowVector to MultVector
Performs the following sed commands in the directories `lib/`, `src/`, `hpcgap/`. Then undo the changes in the `obsolete.{gd,gi}` files. sed -i 's/MULT_ROW_VECTOR/MULT_VECTOR/g' `find . -type f` sed -i 's/MULT_ROWVECTOR/MULT_VECTOR/g' `find . -type f` sed -i 's/MultRowVector/MultVector/g' `find . -type f` git checkout -- obsolete.{gd,gi} Also perform: sed -i 's/MultRowVector/MultVector/g' doc/ref/vector.xml
1 parent fc5739d commit 8ea9103

26 files changed

Lines changed: 124 additions & 124 deletions

doc/ref/vector.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ than the <Q>natural</Q> field of the problem.
190190
<#Include Label="[1]{listcoef}">
191191
<#Include Label="AddRowVector">
192192
<#Include Label="AddCoeffs">
193-
<#Include Label="MultRowVector">
193+
<#Include Label="MultVector">
194194
<#Include Label="CoeffsMod">
195195

196196
</Section>

hpcgap/lib/ffeconway.gi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ InstallMethod(InverseOp,
955955
s := t;
956956
od;
957957
Assert(1,Length(a) = 1);
958-
MultRowVector(r,Inverse(a[1]));
958+
MultVector(r,Inverse(a[1]));
959959
if AssertionLevel() >= 2 then
960960
t := ProductCoeffs(x![1],r);
961961
fam!.ConwayFldEltReducers[d](t);

hpcgap/lib/polyrat.gi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ local fam,gcd, u, v, w, val, r, s;
563563
od;
564564
#gcd := u * (a/u[Length(u)]);
565565
gcd:=u;
566-
MultRowVector(gcd,a/u[Length(u)]);
566+
MultVector(gcd,a/u[Length(u)]);
567567
ReduceCoeffsMod(gcd,p);
568568

569569
# and return the polynomial
@@ -943,19 +943,19 @@ BindGlobal("RPGcdRepresentationModPrime",function(f,g,p)
943943
# convert <s> and <x> back into polynomials
944944
if 0 = Length(g) then
945945
#sx := q * sx;
946-
MultRowVector(sx,q);
946+
MultVector(sx,q);
947947
ReduceCoeffsMod(sx,p);
948948
return [ LaurentPolynomialByCoefficients(brci[1],sx,0,brci[2]),
949949
Zero(brci[1]) ];
950950
else
951951
#hx := q * sx;
952952
hx:=ShallowCopy(sx);
953-
MultRowVector(hx,q);
953+
MultVector(hx,q);
954954
ReduceCoeffsMod(hx,p);
955955
hx := LaurentPolynomialByCoefficients(brci[1],hx,0,brci[2]);
956956
AddCoeffs(s,ProductCoeffs(sx,f),-1);
957957
#s := q * s;
958-
MultRowVector(s,q);
958+
MultVector(s,q);
959959
ReduceCoeffsMod(s,p);
960960
s := LaurentPolynomialByCoefficients(brci[1],s,0,brci[2]);
961961
g := LaurentPolynomialByCoefficients(brci[1],g,0,brci[2]);

hpcgap/lib/vec8bit.gi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -583,15 +583,15 @@ InstallOtherMethod( AddRowVector, "For 2 8 bit vectors",
583583

584584
#############################################################################
585585
##
586-
#M MultRowVector( <vec>, <ffe> )
586+
#M MultVector( <vec>, <ffe> )
587587
##
588588
## multiply <vec> by <ffe> in place
589589
##
590590

591-
InstallOtherMethod( MultRowVector, "For an 8 bit vector and an ffe",
591+
InstallOtherMethod( MultVector, "For an 8 bit vector and an ffe",
592592
IsCollsElms, [ IsRowVector and Is8BitVectorRep,
593593
IsFFE and IsInternalRep], 0,
594-
MULT_ROWVECTOR_VEC8BITS);
594+
MULT_VECTOR_VEC8BITS);
595595

596596
#############################################################################
597597
##

hpcgap/lib/vecmat.gi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1809,13 +1809,13 @@ end);
18091809

18101810
#############################################################################
18111811
##
1812-
#M MultRowVector( <vl>, <mul>)
1812+
#M MultVector( <vl>, <mul>)
18131813
##
18141814

1815-
InstallOtherMethod( MultRowVector, "for GF(2) vector and char 2 scalar",
1815+
InstallOtherMethod( MultVector, "for GF(2) vector and char 2 scalar",
18161816
IsCollsElms, [IsGF2VectorRep and IsRowVector and IsMutable,
18171817
IsFFE], 0,
1818-
MULT_ROW_VECTOR_GF2VECS_2);
1818+
MULT_VECTOR_GF2VECS_2);
18191819

18201820
#############################################################################
18211821
##
@@ -2361,7 +2361,7 @@ InstallMethod( Randomize, "for a mutable gf2 vector",
23612361
[ IsGF2VectorRep and IsMutable ],
23622362
function( v )
23632363
local i;
2364-
MultRowVector(v,0);
2364+
MultVector(v,0);
23652365
for i in [1..Length(v)] do
23662366
if Random(0,1) = 1 then v[i] := Z(2); fi;
23672367
od;
@@ -2371,7 +2371,7 @@ InstallMethod( Randomize, "for a mutable gf2 vector and a random source",
23712371
[ IsGF2VectorRep and IsMutable, IsRandomSource ],
23722372
function( v, rs )
23732373
local i;
2374-
MultRowVector(v,0);
2374+
MultVector(v,0);
23752375
for i in [1..Length(v)] do
23762376
if Random(rs,0,1) = 1 then v[i] := Z(2); fi;
23772377
od;

lib/claspcgs.gi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ local classes, # classes to be constructed, the result
208208
if IsIdenticalObj( FamilyObj( U ), FamilyObj( cl.candidates ) ) then
209209
for c in cl.candidates do
210210
exp:=ExponentsOfPcElement( N, LeftQuotient( h, c ) );
211-
MultRowVector( exp, One( field ) );
211+
MultVector( exp, One( field ) );
212212
w:=exp * N!.subspace.projection;
213213
exp{ N!.subspace.baseComplement }:=
214214
exp{ N!.subspace.baseComplement }-w;

lib/ffeconway.gi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ InstallMethod(InverseOp,
925925
s := t;
926926
od;
927927
Assert(1,Length(a) = 1);
928-
MultRowVector(r,Inverse(a[1]));
928+
MultVector(r,Inverse(a[1]));
929929
if AssertionLevel() >= 2 then
930930
t := ProductCoeffs(x![1],r);
931931
fam!.ConwayFldEltReducers[d](t);

lib/grpffmat.gi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ function(rs, G)
507507
local m;
508508
m:= RandomInvertibleMat( rs, DimensionOfMatrixGroup( G ),
509509
FieldOfMatrixGroup( G ) );
510-
MultRowVector(m[1], DeterminantMat(m)^-1);
510+
MultVector(m[1], DeterminantMat(m)^-1);
511511
return ImmutableMatrix(FieldOfMatrixGroup(G), m, true);
512512
end);
513513

lib/listcoef.gd

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -97,29 +97,29 @@ DeclareOperation(
9797

9898
#############################################################################
9999
##
100-
#O MultRowVectorLeft( <list>, <mul> )
100+
#O MultVectorLeft( <list>, <mul> )
101101
##
102-
## <#GAPDoc Label="MultRowVector">
102+
## <#GAPDoc Label="MultVector">
103103
## <ManSection>
104-
## <Oper Name="MultRowVector" Arg='list1, mul'/>
105-
## <Oper Name="MultRowVectorLeft" Arg='list1, mul'/>
104+
## <Oper Name="MultVector" Arg='list1, mul'/>
105+
## <Oper Name="MultVectorLeft" Arg='list1, mul'/>
106106
## <Returns>nothing</Returns>
107107
##
108108
## <Description>
109109
## This operation calculates <A>mul</A>*<A>list1</A> in-place.
110110
## <P/>
111-
## Note that <C>MultRowVector</C> is just a synonym for
112-
## <C>MultRowVectorLeft</C>.
111+
## Note that <C>MultVector</C> is just a synonym for
112+
## <C>MultVectorLeft</C>.
113113
## </Description>
114114
## </ManSection>
115115
## <#/GAPDoc>
116116
##
117117
DeclareOperation(
118-
"MultRowVectorLeft",
118+
"MultVectorLeft",
119119
[ IsMutable and IsList,
120120
IsObject ] );
121-
# For VectorObj objects there also exists a MultRowVectorRight operation
122-
DeclareSynonym( "MultRowVector", MultRowVectorLeft );
121+
# For VectorObj objects there also exists a MultVectorRight operation
122+
DeclareSynonym( "MultVector", MultVectorLeft );
123123

124124
#############################################################################
125125
##

lib/listcoef.gi

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,9 @@ end );
262262

263263
#############################################################################
264264
##
265-
#M MultRowVectorLeft( <list>, <mul> )
265+
#M MultVectorLeft( <list>, <mul> )
266266
##
267-
InstallMethod( MultRowVectorLeft,
267+
InstallMethod( MultVectorLeft,
268268
"for a mutable dense list, and an object",
269269
[ IsDenseList and IsMutable,
270270
IsObject ],
@@ -274,32 +274,32 @@ function( l, m )
274274
l[i] := m * l[i];
275275
od;
276276
end );
277-
InstallOtherMethod( MultRowVectorLeft, "error if immutable",
277+
InstallOtherMethod( MultVectorLeft, "error if immutable",
278278
[ IsList, IsObject ],
279279
L1_IMMUTABLE_ERROR);
280280

281-
InstallMethod( MultRowVectorLeft,
281+
InstallMethod( MultVectorLeft,
282282
"kernel method for a mutable dense small list, and an object",
283283
IsCollsElms,
284284
[ IsSmallList and IsDenseList and IsMutable,
285285
IsObject ],
286-
MULT_ROW_VECTOR_LEFT_2
286+
MULT_VECTOR_LEFT_2
287287
);
288-
InstallMethod( MultRowVectorLeft,
288+
InstallMethod( MultVectorLeft,
289289
"kernel method for a mutable dense plain list of \
290290
cyclotomics, and a cyclotomic",
291291
IsCollsElms,
292292
[ IsDenseList and IsMutable and IsPlistRep and IsCyclotomicCollection,
293293
IsCyclotomic ],
294-
MULT_ROW_VECTOR_2_FAST
294+
MULT_VECTOR_2_FAST
295295
);
296-
InstallMethod( MultRowVectorLeft,
296+
InstallMethod( MultVectorLeft,
297297
"kernel method for a mutable row vector of ffes in \
298298
plain list rep, and an ffe",
299299
IsCollsElms,
300300
[ IsRowVector and IsMutable and IsPlistRep and IsFFECollection,
301301
IsFFE],0,
302-
MULT_ROWVECTOR_VECFFES );
302+
MULT_VECTOR_VECFFES );
303303

304304

305305
#############################################################################

0 commit comments

Comments
 (0)