NewShape returns a new shape with given sizes and optional dimension names. RowMajor ordering is used by default.
(sizes []int, names ...string)
| 29 | // NewShape returns a new shape with given sizes and optional dimension names. |
| 30 | // RowMajor ordering is used by default. |
| 31 | func NewShape(sizes []int, names ...string) *Shape { |
| 32 | sh := &Shape{} |
| 33 | sh.SetShape(sizes, names...) |
| 34 | return sh |
| 35 | } |
| 36 | |
| 37 | // SetShape sets the shape size and optional names |
| 38 | // RowMajor ordering is used by default. |
no test coverage detected