Define 1D Python list as 1d Vector in Math formulation

71 Views Asked by At

In Python I believe a list is considered as a 1 dimensional vector.

how do I define a list A = [1, 2, 100, 300] for example whose elements is of set B provided that the element is more than zero:

B ={-1, -2, 1, 2, -300, 100, -100, 300}

would this definition below be correct ? :

$$A = [h]_{\forall h\in B: h>0}$$

Thanks !