NumCpp  2.14.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< dtypecolumn_stack (Iterator begin, Iterator end)
 
template<typename dtype , typename Iterator >
NdArray< dtypeconcatenate (Iterator begin, Iterator end, Axis inAxis=Axis::NONE)
 
template<typename dtype , typename Indices , type_traits::ndarray_int_concept< Indices > = 0>
NdArray< dtypedeleteColumnIndices (const NdArray< dtype > &inArray, Indices inIndices)
 
template<typename dtype , typename Indices , type_traits::ndarray_int_concept< Indices > = 0>
NdArray< dtypedeleteFlatIndices (const NdArray< dtype > &inArray, Indices inIndices)
 
template<typename dtype , typename Indices , type_traits::ndarray_int_concept< Indices > = 0>
NdArray< dtypedeleteRowIndices (const NdArray< dtype > &inArray, Indices inIndices)
 
template<typename dtype , typename Iterator >
NdArray< dtyperow_stack (Iterator begin, Iterator end)
 
template<typename dtype , typename Iterator >
NdArray< dtypestack (Iterator begin, Iterator end, Axis inAxis)
 

Function Documentation

◆ column_stack()

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()

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()

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()

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()

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()

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()

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