case umap_ ## UMAP: \
{ \
if (m_matrix.ndims () > 1) \
{ \
p(i) = i; \
p(0) = 1; \
p(1) = 0; \
} \
std::size_t output_length = in_m.
numel (); \
const uint8_t *in =
reinterpret_cast<const uint8_t *
> (in_m.
data ()); \
uint8_t *buf =
reinterpret_cast<uint8_t *
> (ch_array.
rwdata ()); \
U8_FCN (in, m_matrix.numel (), nullptr, buf, &output_length); \
if (output_length != static_cast<std::size_t> (m_matrix.numel ())) \
{ \
warning_with_id ("Octave:multi_byte_char_length", \
"UMAP: Possible multi-byte error."); \
} \
: ch_array); \
}
N Dimensional Array with copy-on-write semantics.
const dim_vector & dims() const
Return a const-reference so that dims ()(i) works efficiently.
Array< T, Alloc > permute(const Array< octave_idx_type > &vec, bool inv=false) const
Size of the specified dimension.
const T * data() const
Size of the specified dimension.
T * rwdata()
Size of the specified dimension.
octave_idx_type numel() const
Number of elements in the array.
Vector representing the dimensions (size) of an Array.