Template Function CPPLib::MultiplyByScalar

Function Documentation

template<typename T>
std::vector<T> CPPLib::MultiplyByScalar(std::vector<T> &vec, T scalar)

Multiplies a generic array by a scalar.

Return

std::vector<T>

Template Parameters
  • T:

Parameters
  • vec:

  • scalar: