NumCpp  2.17.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
Loading...
Searching...
No Matches
nc::detail Namespace Reference

Functions

template<typename dtype, typename Iterator>
NdArray< dtype > column_stack (Iterator begin, Iterator end)
template<typename dtype, typename Iterator>
NdArray< dtype > concatenate (Iterator begin, Iterator end, Axis inAxis=Axis::NONE)
template<typename dtype, typename Indices, type_traits::ndarray_int_concept< Indices > = 0>
NdArray< dtype > deleteColumnIndices (const NdArray< dtype > &inArray, Indices inIndices)
template<typename dtype, typename Indices, type_traits::ndarray_int_concept< Indices > = 0>
NdArray< dtype > deleteFlatIndices (const NdArray< dtype > &inArray, Indices inIndices)
template<typename dtype, typename Indices, type_traits::ndarray_int_concept< Indices > = 0>
NdArray< dtype > deleteRowIndices (const NdArray< dtype > &inArray, Indices inIndices)
template<typename dtype, typename Iterator>
NdArray< dtype > row_stack (Iterator begin, Iterator end)
template<typename dtype, typename Iterator>
NdArray< dtype > stack (Iterator begin, Iterator end, Axis inAxis)

Function Documentation

◆ column_stack()

template<typename dtype, typename Iterator>
NdArray< dtype > nc::detail::column_stack ( Iterator begin,
Iterator end )

Stack 1-D arrays as columns into a 2-D array.

NumPy Reference: https://www.numpy.org/devdocs/reference/generated/numpy.column_stack.html

Parameters
beginiterator to the beginning of the span
enditerator to one past the end of the span
Returns
NdArray

◆ concatenate()

template<typename dtype, typename Iterator>
NdArray< dtype > nc::detail::concatenate ( Iterator begin,
Iterator end,
Axis inAxis = Axis::NONE )

Join a sequence of arrays along an existing axis.

NumPy Reference: https://www.numpy.org/devdocs/reference/generated/numpy.concatenate.html

Parameters
beginthe begin iterator
endthe end iterator
inAxis(Optional, default NONE)
Returns
NdArray

◆ deleteColumnIndices()

template<typename dtype, typename Indices, type_traits::ndarray_int_concept< Indices > = 0>
NdArray< dtype > nc::detail::deleteColumnIndices ( const NdArray< dtype > & inArray,
Indices inIndices )

Return a new array with sub-arrays along the col axis deleted.

Parameters
inArray
inIndices
Returns
NdArray

◆ deleteFlatIndices()

template<typename dtype, typename Indices, type_traits::ndarray_int_concept< Indices > = 0>
NdArray< dtype > nc::detail::deleteFlatIndices ( const NdArray< dtype > & inArray,
Indices inIndices )

Return a new array with sub-arrays deleted.

Parameters
inArray
inIndices
Returns
NdArray

◆ deleteRowIndices()

template<typename dtype, typename Indices, type_traits::ndarray_int_concept< Indices > = 0>
NdArray< dtype > nc::detail::deleteRowIndices ( const NdArray< dtype > & inArray,
Indices inIndices )

Return a new array with sub-arrays along the row axis deleted.

Parameters
inArray
inIndices
Returns
NdArray

◆ row_stack()

template<typename dtype, typename Iterator>
NdArray< dtype > nc::detail::row_stack ( Iterator begin,
Iterator end )

Stack arrays in sequence vertically (row wise).

Parameters
beginiterator to the beginning of the span
enditerator to one past the end of the span
Returns
NdArray

◆ stack()

template<typename dtype, typename Iterator>
NdArray< dtype > nc::detail::stack ( Iterator begin,
Iterator end,
Axis inAxis )

Compute the variance along the specified axis.

NumPy Reference: https://www.numpy.org/devdocs/reference/generated/numpy.stack.html

Parameters
beginiterator to the beginning of the span
enditerator to one past the end of the span
inAxisthe axis to stack
Returns
NdArray