function broadcastParameters( shape, params ) {
	var ord;
	var p;
	var i;

	ord = resolveOrder( params );
	for ( i = 0; i < params.length; i++ ) {
		p = params[ i ];
		if ( p.scalar ) {
			p.scalar = false;
			p.value = broadcastScalar( p.value, p.dtype, shape, ord );
			p.order = ord;
		} else {
			p.value = broadcast( p.value, shape ); // delegate to `broadcast` to ensure broadcast compatibility
		}
		p.ndims = shape.length;
	}
	return params;
}
Broadcasts parameter values to an ndarray having a specified shape.

## Notes

-   The function **mutates** the input array.

@private
@param {NonNegativeIntegerArray} shape - array shape
@param {Array<Object>} params - list of parameter objects
@returns {Array<Object>} updated list