No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Makefile
README.md
main.cpp

README.md

gen-instance-from-dist-mat

generate instance of 3D points from distance matrix

Usage

make
./a.out

Example

target
0.000 1.071 0.446 2.208 3.457 0.379 6.299 3.833 4.223 4.172
1.071 0.000 1.285 1.750 2.296 1.763 3.513 3.136 5.852 2.580
0.446 1.285 0.000 1.264 2.547 0.478 4.371 3.729 3.473 3.622
2.208 1.750 1.264 0.000 0.254 1.341 1.586 1.165 1.842 0.814
3.457 2.296 2.547 0.254 0.000 2.361 1.249 0.614 2.125 0.195
0.379 1.763 0.478 1.341 2.361 0.000 5.563 2.495 2.089 3.070
6.299 3.513 4.371 1.586 1.249 5.563 0.000 3.408 5.867 1.736 
3.833 3.136 3.729 1.165 0.614 2.495 3.408 0.000 1.731 0.319
4.223 5.852 3.473 1.842 2.125 2.089 5.867 1.731 0.000 2.690
4.172 2.580 3.622 0.814 0.195 3.070 1.736 0.319 2.690 0.000
instance
0.000 1.071 0.446 2.208 3.457 0.379 6.299 3.834 4.223 4.172
1.071 0.000 1.285 1.750 2.296 1.763 3.513 3.137 5.852 2.580
0.446 1.285 0.000 1.264 2.547 0.478 4.371 3.729 3.473 3.622
2.208 1.750 1.264 0.000 0.254 1.341 1.586 1.165 1.842 0.814
3.457 2.296 2.547 0.254 0.000 2.360 1.249 0.614 2.125 0.195
0.379 1.763 0.478 1.341 2.360 0.000 5.562 2.495 2.089 3.070
6.299 3.513 4.371 1.586 1.249 5.562 0.000 3.407 5.867 1.736
3.834 3.137 3.729 1.165 0.614 2.495 3.407 0.000 1.730 0.319
4.223 5.852 3.473 1.842 2.125 2.089 5.867 1.730 0.000 2.690
4.172 2.580 3.622 0.814 0.195 3.070 1.736 0.319 2.690 0.000
qs[0] = (0.000, 0.000, 0.000)
qs[1] = (0.571, -0.540, -0.673)
qs[2] = (0.544, -0.104, 0.373)
qs[3] = (1.445, 0.309, -0.158)
qs[4] = (1.715, 0.446, -0.561)
qs[5] = (0.337, 0.503, 0.114)
qs[6] = (2.430, -0.409, -0.476)
qs[7] = (1.364, 1.015, -0.971)
qs[8] = (1.267, 1.605, 0.201)
qs[9] = (1.698, 0.560, -0.988)