Skip to content

Ctiely/Cartesian-product

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cartesian-product

C++ implement cartesian product

此种实现方式需要先计算出全部笛卡尔积,然后才可以像python生成器一样进行使用,速度较生成器慢很多。

运行结果如下:

/Users/clytie/Documents/cython/product/cmake-build-debug/product
13 10 5 
13 10 2 
13 10 1 
13 10 0 
13 6 5 
13 6 2 
13 6 1 
13 6 0 
13 7 5 
13 7 2 
13 7 1 
13 7 0 
3 10 5 
3 10 2 
3 10 1 
3 10 0 
3 6 5 
3 6 2 
3 6 1 
3 6 0 
3 7 5 
3 7 2 
3 7 1 
3 7 0 

Process finished with exit code 0

About

C++ implement cartesian product

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages