Template Function librapid::shapesMatch(const Shape<T1, N1>&, const Shape<T2, N2>&, const Shape<Tn, Nn>&…)#

Function Documentation#

template<typename T1, size_t N1, typename T2, size_t N2, typename ...Tn, size_t... Nn>
bool librapid::shapesMatch(const Shape<T1, N1> &first, const Shape<T2, N2> &second, const Shape<Tn, Nn>&... 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