| 124 | } |
| 125 | |
| 126 | void Array::isEqual(libmexclass::proxy::method::Context& context) { |
| 127 | namespace mda = ::matlab::data; |
| 128 | |
| 129 | const mda::TypedArray<uint64_t> array_proxy_ids = context.inputs[0]; |
| 130 | |
| 131 | bool is_equal = true; |
| 132 | const auto equals_options = arrow::EqualOptions::Defaults(); |
| 133 | for (const auto& array_proxy_id : array_proxy_ids) { |
| 134 | // Retrieve the Array proxy from the ProxyManager |
| 135 | auto proxy = libmexclass::proxy::ProxyManager::getProxy(array_proxy_id); |
| 136 | auto array_proxy = std::static_pointer_cast<proxy::Array>(proxy); |
| 137 | auto array_to_compare = array_proxy->unwrap(); |
| 138 | |
| 139 | if (!array->Equals(array_to_compare, equals_options)) { |
| 140 | is_equal = false; |
| 141 | break; |
| 142 | } |
| 143 | } |
| 144 | mda::ArrayFactory factory; |
| 145 | context.outputs[0] = factory.createScalar(is_equal); |
| 146 | } |
| 147 | |
| 148 | void Array::slice(libmexclass::proxy::method::Context& context) { |
| 149 | namespace mda = ::matlab::data; |