MCPcopy Create free account
hub / github.com/apache/arrow / Make

Method Make

cpp/src/arrow/sparse_tensor.cc:219–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217} // namespace
218
219Result<std::shared_ptr<SparseCOOIndex>> SparseCOOIndex::Make(
220 const std::shared_ptr<Tensor>& coords, bool is_canonical) {
221 RETURN_NOT_OK(
222 CheckSparseCOOIndexValidity(coords->type(), coords->shape(), coords->strides()));
223 return std::make_shared<SparseCOOIndex>(coords, is_canonical);
224}
225
226Result<std::shared_ptr<SparseCOOIndex>> SparseCOOIndex::Make(
227 const std::shared_ptr<Tensor>& coords) {

Callers

nothing calls this directly

Calls 14

stridesMethod · 0.80
is_integerFunction · 0.70
TypeErrorFunction · 0.70
MakeFunction · 0.70
typeMethod · 0.45
shapeMethod · 0.45
sizeMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected