Template Function librapid::shapesMatch(const std::tuple<First, Second, Rest…>&)#

Function Documentation#

template<typename First, typename Second, typename ...Rest>
bool librapid::shapesMatch(const std::tuple<First, Second, Rest...> &shapes)#

Returns true if all inputs have the same shape

Template Parameters
  • T1 – Type of the first input

  • N1 – Number of dimensions of the first input

  • T2 – Type of the second input

  • N2 – Number of dimensions of the second input

  • Tn – Type of the remaining (optional) inputs

  • Nn – Number of dimensions of the remaining (optional) inputs

Parameters
  • first – First input

  • second – Second input

  • shapes – Remaining (optional) inputs

Returns

True if all inputs have the same shape, false otherwise