Matrix and Vector Entry Selection - Maple Programming Help

Home : Support : Online Help : Mathematics : Linear Algebra : LinearAlgebra Package : Entry Operations : LinearAlgebra/General/MVselect

Matrix and Vector Entry Selection

 In the LinearAlgebra package, many functions that operate on Matrices and Vectors include an "element, row or column selection" parameter L in their calling sequence. The parameter L can be one of an integer, a range of integers, or a list of integers and/or ranges of integers.
 By using one of these types for L, you can select one row  (column), a range of rows (columns), or a list of rows (columns) from a Matrix, respectively. Similarly, you can select one element, a range of elements, or a list of elements from a Vector.
 In the following sections, V is a Vector and A is a Matrix.

Valid Values of L

 Permissible Integer Values
 If L is an integer, it must be non-zero since the indices of Matrices and Vectors always start from 1, and |L| must be between 1 and the corresponding dimension value, inclusive.
 If L is a negative integer, the selection proceeds as follows: -1 selects the last row (column) or element, -2 selects the second last row (column) or element, -3 selects the third last row (column) or element, etc.
 Errors and the Degenerate Case for Ranges
 If L includes the range i..j with i = j+1 and 1 <= i <=  dim + 1, where dim is the corresponding dimension value, then the result is degenerate in the corresponding dimension (the dimension value in that component is 0). This is not an error. Otherwise, if  L includes either an empty set of indices or indices outside the appropriate dimension range, it is an error.

Vector Entry Selection

 If a LinearAlgebra function operates on a Vector and includes L in its calling sequence, the entries specified by L are returned in the following manner.
 • If L is a positive integer, the Lth element of the Vector is selected.
 • If L is a negative integer, the element selected is as described in the Valid Values of L section above.
 • If L is a range i..j of integers that is not degenerate, the elements V[i] through V[j] of the Vector are selected.
 • If L is a list of integers and/or non-degenerate ranges with valid integer endpoints, the elements corresponding to the integer values in L are selected.

Matrix Entries

 If a LinearAlgebra function operates on a Matrix and includes L in its calling sequence, the entries specified by L are returned in the following manner.
 • If L is a positive integer, the Lth row (column) of the Matrix is selected.
 • If L is a negative integer, the row (column) selected is as described in the Valid Values of L section above.
 • If L is a range i..j of integers that is not degenerate, the rows (columns) i through j of the Matrix are selected.
 • If L is a list of integers and/or non-degenerate ranges with valid integer endpoints, the rows (columns) corresponding to the integer values in L are selected.
{"ft_lang_label":"__label__en","ft_lang_prob":0.83757854,"math_prob":0.95769566,"size":2923,"snap":"2020-45-2020-50","text_gpt3_token_len":667,"char_repetition_ratio":0.15758821,"word_repetition_ratio":0.28599605,"special_character_ratio":0.21690044,"punctuation_ratio":0.104631215,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9918096,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-12-04T04:49:57Z\",\"WARC-Record-ID\":\"<urn:uuid:e17b2764-6e4a-4c16-b2c5-c56b9ae3e788>\",\"Content-Length\":\"161219\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:e91dd699-1422-4943-a546-853fb74d7c4e>\",\"WARC-Concurrent-To\":\"<urn:uuid:44508e3e-5e79-45e3-8f96-46eb1013ae89>\",\"WARC-IP-Address\":\"199.71.183.28\",\"WARC-Target-URI\":\"https://de.maplesoft.com/support/help/maple/view.aspx?path=LinearAlgebra%2FGeneral%2FMVselect\",\"WARC-Payload-Digest\":\"sha1:4SK7XLJMNL7MNT3IVCWSUU736SKLXNH5\",\"WARC-Block-Digest\":\"sha1:ELYUJJ37ZWDLOX7C46JZHRJVUAFNOZA7\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-50/CC-MAIN-2020-50_segments_1606141733122.72_warc_CC-MAIN-20201204040803-20201204070803-00154.warc.gz\"}"}