I want to create a vector in TensorFlow.js, which has the following structure:
where a is a non-complex scalar, n is the length of the vector, and i is the i-th entry of the vector, starting to count at zero.
Is there a fast way of doing this or do I need to loop?