function iset( idx, v ) {
	if ( this._flags.READONLY ) {
		throw new Error( 'invalid invocation. Cannot write to a read-only array.' );
	}
	if ( this._ndims > 0 ) {
		if ( !isInteger( idx ) ) {
			throw new TypeError( format( 'invalid argument. Index must be an integer. Value: `%s`.', idx ) );
		}
		idx = getIndex( idx, this._length-1, this._mode );
		base.call( this, idx, v );
	} else {
		base.call( this, idx );
	}
	return this;
}
Sets an array element located at a specified linear index.

## Notes

-   For zero-dimensional arrays, the first, and only, argument should be the value to set.

@private
@param {integer} [idx] - linear view index
@param {*} v - value to set
@throws {Error} cannot write to a read-only array
@throws {TypeError} index must be an integer
@throws {RangeError} index exceeds array dimensions
@returns {ndarray} ndarray instance