Modification

int32_t danceq::internal::Vector::set_index(uint64_t index, T value)

Sets a single number.

Warning

The performance is bad if multiple values should be modified, use get_data_ptr(…) instead.

Parameters:
  • index – Index to be set

  • value – Value to be set

Returns:

error_code

int32_t danceq::internal::Vector::make_random(uint32_t seed = -1)

Generates a random and normalized vector.

A random seed is generated if it is -1. Values are Gaussian random numbers with mean 0 and standard deviation 1. The vector is normalized.

Parameters:

seed – Seed for random generator

Returns:

error_code

int32_t danceq::internal::Vector::conj(void)

Conjugates the vector.

Returns:

error_code