Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spasm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ALMASTY
Spasm
Commits
e62e6519
Commit
e62e6519
authored
10 years ago
by
Charles Bouillaguet
Browse files
Options
Downloads
Patches
Plain Diff
suppressed some compilation warnings
parent
4b045d74
Branches
Branches containing commit
Tags
v0.2
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/spasm_lu.c
+1
-2
1 addition, 2 deletions
src/spasm_lu.c
src/spasm_solutions.c
+1
-1
1 addition, 1 deletion
src/spasm_solutions.c
test/pluq.c
+1
-7
1 addition, 7 deletions
test/pluq.c
with
3 additions
and
10 deletions
src/spasm_lu.c
+
1
−
2
View file @
e62e6519
...
...
@@ -3,7 +3,7 @@
#include
"spasm.h"
spasm_lu
*
spasm_PLUQ
(
const
spasm
*
A
)
{
int
n
,
m
,
i
,
j
,
r
,
px
,
k
;
int
m
,
i
,
j
,
r
,
px
,
k
;
int
*
Up
,
*
Uj
,
*
qinv
;
spasm
*
U
,
*
L
,
*
LL
;
spasm_lu
*
N
;
...
...
@@ -15,7 +15,6 @@ spasm_lu * spasm_PLUQ(const spasm *A) {
Up
=
U
->
p
;
Uj
=
U
->
j
;
qinv
=
N
->
qinv
;
n
=
A
->
n
;
m
=
A
->
m
;
k
=
1
;
...
...
This diff is collapsed.
Click to expand it.
src/spasm_solutions.c
+
1
−
1
View file @
e62e6519
...
...
@@ -11,7 +11,7 @@ int spasm_PLUQ_solve(const spasm *A, const spasm_GFp *b, spasm_GFp *x) {
spasm_GFp
*
y
;
spasm_lu
*
PLUQ
;
spasm
*
L
,
*
U
;
int
i
,
n
,
m
,
r
,
ok
;
int
n
,
m
,
r
,
ok
;
/* check inputs */
assert
(
A
!=
NULL
);
...
...
This diff is collapsed.
Click to expand it.
test/pluq.c
+
1
−
7
View file @
e62e6519
...
...
@@ -6,9 +6,8 @@ int main(int argc, char **argv) {
spasm_triplet
*
T
;
spasm
*
A
,
*
U
,
*
L
;
spasm_lu
*
PLUQ
;
spasm_GFp
*
x
,
*
y
,
*
u
,
*
v
,
*
w
,
*
z
,
*
Lx
;
spasm_GFp
*
x
,
*
y
,
*
u
,
*
v
,
*
w
,
*
z
;
int
n
,
m
,
r
,
test
,
i
,
j
;
int
*
Up
,
*
Uj
,
*
Lp
,
*
Lj
;
assert
(
argc
>
1
);
test
=
atoi
(
argv
[
1
]);
...
...
@@ -22,12 +21,7 @@ int main(int argc, char **argv) {
PLUQ
=
spasm_PLUQ
(
A
);
U
=
PLUQ
->
U
;
Up
=
U
->
p
;
Uj
=
U
->
j
;
L
=
PLUQ
->
L
;
Lp
=
L
->
p
;
Lj
=
L
->
j
;
Lx
=
L
->
x
;
r
=
U
->
n
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment