Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
See what's new at GitLab
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
M
modgalrep
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Peter Bruin
modgalrep
Commits
3da06ab8
Commit
3da06ab8
authored
Jul 27, 2020
by
Peter Bruin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new function matsmall_complement
parent
7b338f81
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
algebra/matsmall.c
algebra/matsmall.c
+13
-0
algebra/matsmall.h
algebra/matsmall.h
+1
-0
No files found.
algebra/matsmall.c
View file @
3da06ab8
...
...
@@ -175,6 +175,19 @@ matsmall_coker (GEN A, unsigned long p, GEN T) {
return
gerepilecopy
(
av
,
shallowtrans
(
FlxqM_ker
(
shallowtrans
(
A
),
T
,
p
)));
}
/* Complement of a linear subspace in another subspace. */
GEN
matsmall_complement
(
GEN
V
,
GEN
W
,
unsigned
long
p
,
GEN
T
)
{
pari_sp
av
=
avma
;
long
n
=
lg
(
V
)
-
1
,
d
=
lg
(
V
)
-
lg
(
W
),
r
;
GEN
Z
;
do
{
Z
=
matsmall_random_subspace
(
V
,
d
,
0
,
p
,
T
);
r
=
matsmall_rank
(
shallowconcat
(
W
,
Z
),
p
,
T
);
}
while
(
r
<
n
);
return
gerepileupto
(
av
,
Z
);
}
/*
Quotient of two linear subspaces W \subseteq V
of some ambient vector space.
...
...
algebra/matsmall.h
View file @
3da06ab8
...
...
@@ -11,6 +11,7 @@ GEN matsmall_coker (GEN V, unsigned long p, GEN T);
GEN
matsmall_solve
(
GEN
A
,
GEN
B
,
unsigned
long
p
,
GEN
T
);
GEN
matsmall_solve_left
(
GEN
A
,
GEN
B
,
unsigned
long
p
,
GEN
T
);
GEN
matsmall_inverse_image
(
GEN
A
,
GEN
V
,
unsigned
long
p
,
GEN
T
);
GEN
matsmall_complement
(
GEN
V
,
GEN
W
,
unsigned
long
p
,
GEN
T
);
GEN
matsmall_quotient
(
GEN
V
,
GEN
W
,
unsigned
long
p
,
GEN
T
);
GEN
matsmall_random
(
unsigned
long
rows
,
unsigned
long
cols
,
unsigned
long
p
,
GEN
T
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment