Template Function librapid::pow(const GenericVector<Scalar, Dims>&, const GenericVector<Scalar, Dims>&)#

Function Documentation#

template<typename Scalar, int64_t Dims>
GenericVector<Scalar, Dims> librapid::pow(const GenericVector<Scalar, Dims> &vec, const GenericVector<Scalar, Dims> &exp)#

Raise each element of a vector to the power of another vector and return the result

Template Parameters
  • Scalar – The scalar type of the vector

  • Dims – The dimensionality of the vector

  • StorageType – The storage type of the vector

Parameters
  • vec – Base vector

  • exp – Vector of exponents

Returns

The result of raising each element of the vector to the power of the corresponding element of the exponent vector