MCPcopy Create free account
hub / github.com/andeya/algorithm / Reshape

Function Reshape

matrix/matrix.go:140–157  ·  view source on GitHub ↗

Change matrix shape if number of elements match to rows*cols. Optional 3rd arguments is the new row stride of data. Row stride is not changed unless given or if current row stride is equal to number of rows in matrix. On the second case new row stride is set equal to new row count.

(m Matrix, rows, cols int, steps ...int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

SetSizeMethod · 0.80
LeadingIndexMethod · 0.65
RowsMethod · 0.65
NumElementsMethod · 0.65

Tested by

no test coverage detected