static index(broadcastedIndices, originalShape) {
        // NOTE 1: we assume the parameter broadcastedIndices is valid. ie. it should have the same
        // length as the broadcasted shape, and for each dimension the index should
        // not be out of range.
        const originalIndices = new Array(originalShape.length);
        BroadcastUtil.fillIndex(broadcastedIndices, originalShape, originalIndices);
        return originalIndices;
    }
/**
     * Given the indices of a broadcasted tensor, calculate the original indices
     * @param broadcastedIndices The given indices of the broadcasted tensor.
     * @param originalShape The original shape of the tensor before broadcas
     * @returns The calculated indices that maps to the original tensor.
     */
Given the indices of a broadcasted tensor, calculate the original indices
@param broadcastedIndices The given indices of the broadcasted tensor.
@param originalShape The original shape of the tensor before broadcas
@returns The calculated indices that maps to the original tensor.
Given the indices of a broadcasted tensor calculate the original indices @param broadcastedIndices The given indices of the broadcasted tensor . @param originalShape The original shape of the tensor before broadcas @returns The calculated indices that maps to the original tensor .
static index(broadcastedIndices, originalShape) {
        const originalIndices = new Array(originalShape.length);
        BroadcastUtil.fillIndex(broadcastedIndices, originalShape, originalIndices);
        return originalIndices;
    }
static index ( broadcastedIndices , originalShape ) { const originalIndices = new Array ( originalShape . length ) ; BroadcastUtil . fillIndex ( broadcastedIndices , originalShape , originalIndices ) ; return originalIndices ; }
Given the indices of a broadcasted tensor, calculate the original indices
 @param broadcastedIndices The given indices of the broadcasted tensor.
Given the indices of a broadcasted tensor calculate the original indices @param broadcastedIndices The given indices of the broadcasted tensor .
// NOTE 1: we assume the parameter broadcastedIndices is valid. ie. it should have the same // length as the broadcasted shape, and for each dimension the index should // not be out of range.