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

Function MakeComplex128

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

Source from the content-addressed store, hash-verified

1051}
1052
1053std::shared_ptr<Array> MakeComplex128(const std::shared_ptr<Array>& real,
1054 const std::shared_ptr<Array>& imag) {
1055 auto type = complex128();
1056 std::shared_ptr<Array> storage(
1057 new StructArray(checked_cast<const ExtensionType&>(*type).storage_type(),
1058 real->length(), {real, imag}));
1059 return ExtensionType::WrapArray(type, storage);
1060}
1061
1062std::shared_ptr<Array> ExampleUuid() {
1063 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