template<typename Index_, typename Float_>
class umappp::Status< Index_, Float_ >
Status of the UMAP optimization iterations.
- Template Parameters
-
Index_ | Integer type of the neighbor indices. |
Float_ | Floating-point type for the distances. |
Instances of this class should not be constructed directly, but instead returned by initialize()
.
- Parameters
-
ptr | Pointer to an array as described in embedding() . |
copy | Whether the contents of the previous array should be copied into ptr . |
By default, the Status
object will operate on embeddings in an array specified at its own construction time. This method will change the embedding array for an existing Status
object, which can be helpful in some situations, e.g., to clone a Status
object and to store its embeddings in a different array than the object.
The contents of the new array in ptr
should be the same as the array that it replaces, as run()
will continue the iteration from the coordinates inside the array. This is enforced by default when copy = true
, but if the supplied ptr
already contains a copy, the caller may set copy = false
to avoid extra work