linalg(deprecated)/subvector - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : linalg(deprecated)/subvector

linalg(deprecated)

  

subvector

  

extract a specified vector from a matrix

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

subvector(A, r, c)

Parameters

A

-

matrix

r, c

-

list, range, or integer

Description

• 

Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[SubVector], instead.

  

- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.

• 

The function subvector(A, r, c) returns the vector of A selected by the single index in either the row or column entry and the range or list in the other entry.

• 

Note that either the row or column entry must be a single index specifying the desired row or column.

• 

The command with(linalg,subvector) allows the use of the abbreviated form of this command.

Examples

Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[SubVector], instead.

withlinalg:

Aarray1,2,3,4,x,6

A1234x6

(1)

subvectorA,1..2,2

2x

(2)

subvectorA,2,2,1

x4

(3)

See Also

linalg(deprecated)[submatrix]

LinearAlgebra