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

Method FromArray

cpp/src/arrow/tensor.cc:518–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516} // namespace internal
517
518Result<std::shared_ptr<Tensor>> Tensor::FromArray(const std::shared_ptr<Array>& array,
519 bool allow_nulls) {
520 return array->ToTensor(allow_nulls);
521}
522
523/// Constructor with strides and dimension names
524Tensor::Tensor(const std::shared_ptr<DataType>& type, const std::shared_ptr<Buffer>& data,

Callers

nothing calls this directly

Calls 1

ToTensorMethod · 0.45

Tested by

no test coverage detected