Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pcg
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
Model registry
Operate
Environments
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
Bouillaguet Charles
pcg
Commits
d8486acd
Commit
d8486acd
authored
5 years ago
by
Julia Sauvage
Browse files
Options
Downloads
Patches
Plain Diff
Version vraiment propre parce que la dernière y avait encore des trucs bizarres pas propres
parent
0c674d7e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Cunknown/FindDS.sage
+4
-4
4 additions, 4 deletions
Cunknown/FindDS.sage
with
4 additions
and
4 deletions
Cunknown/FindDS.sage
+
4
−
4
View file @
d8486acd
...
...
@@ -41,7 +41,7 @@ def getGreduite(n,mod):
Greduite1 = getGreduite(nbiter - 1, 2^k)
Greduite2 = getGreduite
lll
(nboutput - 1, 2^(2 * k - known_low))
Greduite2 = getGreduite(nboutput - 1, 2^(2 * k - known_low))
def sortiesGenerateur():#OK !
...
...
@@ -90,12 +90,12 @@ def getDY(Y, WC, W0): #OK ! avec erreurs de retenues ~64bits (polC polW)
return DY
######FINDDS######
def FindDS64(uX, rot, W0,WC, Greduite
, G, invG
): #rajouter rot dans la version non test ? #OK! ~64bits
def FindDS64(uX, rot, W0,WC, Greduite): #rajouter rot dans la version non test ? #OK! ~64bits
#polW = getPolW(W0)
Y = getY(W0, WC, rot, uX)
DY = getDY(Y, WC, W0) #OK avec erreurs de retenues!
tmp = vector([y * 1<<(k - known_up - known_low) for y in DY])#on rajoute les zéros, recentrage impossible à cause des erreurs de retenues
DS64 = CVP.closest_vector(Greduite,tuple(tmp))
DS64 =
f.
CVP.closest_vector(Greduite,tuple(tmp))
return DS64, Y[0]
######FINDROTI######
...
...
@@ -161,7 +161,7 @@ for blabla in range(n):
rot.append(S[i] >> (2 * k - 6))
uX = unrotateX(X,rot)
DS64, Y0 = FindDS64(uX, rot, W0,WC, Greduite1
, G1, invG1
)#OK!
DS64, Y0 = FindDS64(uX, rot, W0,WC, Greduite1)#OK!
tabrot = FindRot(DS64[0],X, Y0, W0, WC)#a l'air OK!
test = 0
if(len(tabrot) == 0):
...
...
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