/** * Determines if the matrix is a vector * (only one row or one column) * * @return {boolean} */ isVector() : boolean { return (this.rows === 1) || (this.cols === 1); }