Skip to content
Snippets Groups Projects
Commit 5c36eafe authored by Kenneth Moreland's avatar Kenneth Moreland
Browse files

Add ArrayCopyShallowIfPossible

Often times you have an array of an unknown type (likely from a data set),
and you need it to be of a particular type (or can make a reasonable but
uncertain assumption about it being a particular type). You really just
want a shallow copy (a reference in a concrete `ArrayHandle`) if that is
possible.

`ArrayCopyShallowIfPossible` pulls an array of a specific type from an
`UnknownArrayHandle`. If the type is compatible, it will perform a shallow
copy. If it is not possible, a deep copy is performed to get it to the
correct type.

Fixes #572.
parent 6c7a062b
Branches
Tags
2 merge requests!2615Draft: DONTMERGE ME: TEST FOR 1.7.0-rc1 is our 9th official release of VTK-m.,!2529Add ArrayCopyShallowIfPossible
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment