Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Karsa Zoltán István
/
politopok
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b2a76014
authored
Jan 19, 2023
by
Zoltan Karsa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix p
parent
aaf31c54
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
genax.py
+4
-4
No files found.
genax.py
View file @
b2a76014
...
@@ -24,7 +24,7 @@ def gen_angels_to_pick(n, plot = False):
...
@@ -24,7 +24,7 @@ def gen_angels_to_pick(n, plot = False):
parosit
=
cp
.
RawKernel
(
r'''
parosit
=
cp
.
RawKernel
(
r'''
extern "C"
extern "C"
__global__
__global__
void parosit(const double* x1, const double* x2, double* a, double* b, const int m, const
float
PI) {
void parosit(const double* x1, const double* x2, double* a, double* b, const int m, const
double
PI) {
int tid = blockDim.x * blockIdx.x + threadIdx.x;
int tid = blockDim.x * blockIdx.x + threadIdx.x;
float alpha = x1[tid];
float alpha = x1[tid];
for (int i = 0; i < m; i++) {
for (int i = 0; i < m; i++) {
...
@@ -43,7 +43,7 @@ void parosit(const double* x1, const double* x2, double* a, double* b, const int
...
@@ -43,7 +43,7 @@ void parosit(const double* x1, const double* x2, double* a, double* b, const int
parosit2
=
cp
.
RawKernel
(
r'''
parosit2
=
cp
.
RawKernel
(
r'''
extern "C"
extern "C"
__global__
__global__
void parosit2(const double* x1, const double* x2, double* a, double* b, const int m, const
float
PI) {
void parosit2(const double* x1, const double* x2, double* a, double* b, const int m, const
double
PI) {
int tid = blockDim.x * blockIdx.x + threadIdx.x;
int tid = blockDim.x * blockIdx.x + threadIdx.x;
float alpha = x1[tid];
float alpha = x1[tid];
for (int i = 0; i < m; i++) {
for (int i = 0; i < m; i++) {
...
@@ -78,9 +78,9 @@ def angles_alap(anglestopick, plot = False):
...
@@ -78,9 +78,9 @@ def angles_alap(anglestopick, plot = False):
tgtA
=
cp
.
tan
(
tompa_alpha_arr
)
tgtA
=
cp
.
tan
(
tompa_alpha_arr
)
# hegyes
# hegyes
sztgh
=
tghB
*
tghA
sztgh
=
tghB
*
tghA
otgh
=
tghA
+
tghB
otgh
=
tghA
+
tghB
hCy
=
sztgh
/
otgh
hCy
=
sztgh
/
otgh
hCx
=
hCy
/
tghA
hCx
=
hCy
/
tghA
# tompa
# tompa
...
...
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