The cartesian product of two sets is taken using cross as shown below:
for two sets of same sizes
for two sets of different sizes
Notice that show() does not just return the mask of desired size with all-to-all connections. Rather it returns all-to-all connections of desired size in the infinite (default) mask.
Python 2.7 with
pip install csa
The cartesian product of two sets is taken using
cross
as shown below:for two sets of same sizes![screenshot from 2018-11-28 14-25-36](https://user-images.githubusercontent.com/12233689/49154751-9091b400-f319-11e8-8163-fe2b19adbaba.png)
for two sets of different sizes![screenshot from 2018-11-28 14-25-54](https://user-images.githubusercontent.com/12233689/49154774-9be4df80-f319-11e8-8df9-2dfca5a3c89f.png)
Notice that
show()
does not just return the mask of desired size with all-to-all connections. Rather it returns all-to-all connections of desired size in the infinite (default) mask.PS: This issue is persistent also for python 3.7