MCPcopy Create free account
hub / github.com/ciphermodelabs/ciphercore / ones_like

Function ones_like

ciphercore-base/src/ops/utils.rs:120–122  ·  view source on GitHub ↗
(x: Node)

Source from the content-addressed store, hash-verified

118}
119
120pub fn ones_like(x: Node) -> Result<Node> {
121 x.get_graph().ones(x.get_type()?)
122}
123
124// Adds several zero rows to the end or beginning of the array
125pub fn extend_with_zeros(g: &Graph, x: Node, num_zero_rows: u64, in_front: bool) -> Result<Node> {

Callers 1

Calls 3

onesMethod · 0.80
get_graphMethod · 0.45
get_typeMethod · 0.45

Tested by

no test coverage detected