Horje
numpy create array with infinities Code Example
numpy create array with infinities
>>> sample = np.matrix(np.ones((50,50)) * np.inf)
>>> sample
matrix([[ inf,  inf,  inf, ...,  inf,  inf,  inf],
    [ inf,  inf,  inf, ...,  inf,  inf,  inf],
    [ inf,  inf,  inf, ...,  inf,  inf,  inf],
    ..., 
    [ inf,  inf,  inf, ...,  inf,  inf,  inf],
    [ inf,  inf,  inf, ...,  inf,  inf,  inf],
    [ inf,  inf,  inf, ...,  inf,  inf,  inf]])




Python

Related
discord rich presence python Code Example discord rich presence python Code Example
Python List count() Code Example Python List count() Code Example
find & replace in csv file Code Example find & replace in csv file Code Example
if statement in python with sets Code Example if statement in python with sets Code Example
python loop through array step size 2 Code Example python loop through array step size 2 Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7