This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // ellipse.cpp | |
| // EllipticalCylinder | |
| // | |
| // Created by Yi Hu on 4/6/18. | |
| // | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <math.h> | |
| #include <nlopt.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # python 2.7.11 on windows 10 x64. CPU-Intel i7-6700k | |
| import numpy as np | |
| import time | |
| N = 100 | |
| M = 100000 | |
| V = 10 | |
| coords = [[]]*N | |
| for i in range(N): |
NewerOlder