function zeros( M, N, X, strideX1, strideX2, offsetX ) { // TODO: consider moving to a separate package
	var dx0;
	var dx1;
	var S0;
	var S1;
	var i0;
	var i1;
	var ix;

	if ( isRowMajor( [ strideX1, strideX2 ] ) ) {
		// For row-major matrices, the last dimension has the fastest changing index...
		S0 = N;
		S1 = M;
		dx0 = strideX2;                   // offset increment for innermost loop
		dx1 = strideX1 - ( S0*strideX2 ); // offset increment for outermost loop
	} else { // column-major
		// For column-major matrices, the first dimension has the fastest changing index...
		S0 = M;
		S1 = N;
		dx0 = strideX1;                   // offset increment for innermost loop
		dx1 = strideX2 - ( S0*strideX1 ); // offset increment for outermost loop
	}
	ix = offsetX;
	for ( i1 = 0; i1 < S1; i1++ ) {
		for ( i0 = 0; i0 < S0; i0++ ) {
			X[ ix ] = 0.0;
			ix += dx0;
		}
		ix += dx1;
	}
	return X;
}
Fills a matrix with zeros.

@private
@param {NonNegativeInteger} M - number of rows
@param {NonNegativeInteger} N - number of columns
@param {Float64Array} X - matrix to fill
@param {integer} strideX1 - stride of the first dimension of `X`
@param {integer} strideX2 - stride of the second dimension of `X`
@param {NonNegativeInteger} offsetX - starting index for `X`
@returns {Float64Array} input matrix

@example
var Float64Array = require( '@stdlib/array/float64' );

var X = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );

zeros( 2, 3, X, 3, 1, 0 );
// X => <Float64Array>[ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]

@example
var Float64Array = require( '@stdlib/array/float64' );

var X = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );

zeros( 2, 3, X, 1, 2, 0 );
// X => <Float64Array>[ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]