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

Function MakeComplex128

cpp/src/arrow/testing/gtest_util.cc:1022–1029  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1020std::shared_ptr<DataType> complex128() { return std::make_shared<Complex128Type>(); }
1021
1022std::shared_ptr<Array> MakeComplex128(const std::shared_ptr<Array>& real,
1023 const std::shared_ptr<Array>& imag) {
1024 auto type = complex128();
1025 std::shared_ptr<Array> storage(
1026 new StructArray(checked_cast<const ExtensionType&>(*type).storage_type(),
1027 real->length(), {real, imag}));
1028 return ExtensionType::WrapArray(type, storage);
1029}
1030
1031std::shared_ptr<Array> ExampleUuid() {
1032 auto arr = arrow::ArrayFromJSON(

Callers

nothing calls this directly

Calls 3

complex128Function · 0.85
storage_typeMethod · 0.80
lengthMethod · 0.45

Tested by

no test coverage detected