einsums::blas::scal#

Note

Generated from the C++ headers by apiary --emit-cpp-docs-json.

Defined in header Einsums/BLAS.hpp.

template<typename T>
void scal(int_t n, const T alpha, T *vec, int_t inc)#

Scales a vector by a value.

Added in version 1.0.0.

Template Parameters:

T – The type this function handles.

Parameters:
  • n – The number of elements to scale the vector by.

  • alpha – The scale factor.

  • vec – The vector to scale.

  • inc – The spacing between elements of the vector.

template<Complex T>
void scal(int_t n, const RemoveComplexT<T> alpha, T *vec, int_t inc)#

Scales a complex vector by a real value.

Added in version 1.0.0.

Parameters:
  • n – The number of elements to scale the vector by.

  • alpha – The scale factor.

  • vec – The vector to scale.

  • inc – The spacing between elements of the vector.