set(value, ...locs) {
        if (locs.length === 0) locs = [
            0
        ];
        _util.assert(locs.length === this.rank, ()=>`The number of provided coordinates (${locs.length}) must ` + `match the rank (${this.rank})`);
        const index = this.locToIndex(locs);
        this.values[index] = value;
    }
Sets a value in the buffer at a given location.

@param value The value to set.
@param locs  The location indices.

@doc {heading: 'Tensors', subheading: 'Creation'}