Description Usage Arguments Value
Again copying the Numpy zeros_like and ones_like interface
| 1 2 3 4 5 | constants_like(x, c)
ones_like(x)
zeros_like(x)
 | 
| x | Object to imitiate | 
| c | Value to fill imitation with | 
Object of same shape and type as x filled with value c
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.