You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We initially added the DeepCopy name-value pair to the numeric array class constructors for testing purposes. When DeepCopy=true, the proxy classes copy the data from the MATLAB array when creating the underlying std::shared_ptr<arrow::NumericArray<CType>>. By default, we don't make a copy and instead store the original array as property named MatlabArray.
Component(s)
MATLAB
The text was updated successfully, but these errors were encountered:
…ray.<Numeric>Array` constructors (#36561)
### Rationale for this change
We initially added the `DeepCopy` name-value pair to the numeric array class constructors for testing purposes. When `DeepCopy=true`, the proxy classes copy the data from the MATLAB array when creating the underlying `std::shared_ptr<arrow::NumericArray<CType>>`. By default, we don't make a copy and instead store the original array as a property named `MatlabArray`. Doing so keeps the backing memory of the arrow array alive and avoids a copy.
### What changes are included in this PR?
`DeepCopy` is no longer accepted as a name-value pair by the constructors of the numeric array classes.
### Are these changes tested?
No tests were needed.
### Are there any user-facing changes?
This is technically a user facing change, but the MATLAB interface is still experimental and under active development. We don't expect anyone to be affected by this change.
* Closes: #36560
Authored-by: Sarah Gilmore <sgilmore@mathworks.com>
Signed-off-by: Kevin Gurney <kgurney@mathworks.com>
Describe the enhancement requested
We initially added the
DeepCopy
name-value pair to the numeric array class constructors for testing purposes. WhenDeepCopy=true
, the proxy classes copy the data from the MATLAB array when creating the underlyingstd::shared_ptr<arrow::NumericArray<CType>>
. By default, we don't make a copy and instead store the original array as property namedMatlabArray
.Component(s)
MATLAB
The text was updated successfully, but these errors were encountered: