static rowVector(newData) {
                var vector = new this(1, newData.length);
                for (var i = 0; i < newData.length; i++) {
                    vector.set(0, i, newData[i]);
                }
                return vector;
            }
Creates a row vector, a matrix with only one row.
@param {Array} newData - A 1D array containing data for the vector
@return {Matrix} - The new matrix