|
|
|||
|
|
| Built-in Mathematica Symbol | See Also »|More About » |
DiamondMatrix |
| DiamondMatrix[r] gives a matrix whose elements are 1 in a diamond-shaped region that extends r index positions to each side, and are 0 otherwise. |
| DiamondMatrix[r, w] gives a w×w matrix containing a diamond-shaped region of 1s. |
| DiamondMatrix[{r1, r2, ...}, ...] yields an array whose elements are 1 in a diamond-shaped region that extends ri index positions in the i |
|