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

Function FloatDiagonal

matrix/dense.go:266–279  ·  view source on GitHub ↗

Make a square matrix with diagonal set to values. If len(values) is one then all entries on diagonal is set to values[0]. If len(values) is greater than one then diagonals are set from the list values starting from (0,0) until the diagonal is full or values are exhausted. *DEPRECEATED*

(rows int, values ...float64)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

TestBigVectorFunction · 0.85
TestTimesBigFunction · 0.85
FloatIdentityFunction · 0.85

Calls 2

FloatZerosFunction · 0.85
LeadingIndexMethod · 0.65

Tested by 2

TestBigVectorFunction · 0.68
TestTimesBigFunction · 0.68