Arrays Functions¶
- argmax(A)¶
- The index or indexes of the largest element in an array A.
- Parameters:
A (array) – An Array
- Return type:
float, array
- argmin(A)¶
- The index or indexes of the smallest element in an array A.
- Parameters:
A (array) – An Array
- Return type:
float, array
- cols(A)¶
- The number of columns of an array A.
- Parameters:
A (array) – An Array
- Return type:
integer
- csort(A, j)¶
- The rows of A in the increasing order of its column j
- Parameters:
A (array) – An Array of numbers
j (integer) – A number
- Return type:
array
- cumprod(A[, axis=0|1])¶
- cumulative products, of the same size, without units: of the elements of a vector, v₀, v₀·v₁…; of a matrix down its columns (axis 0, by default) or along its rows (axis 1)
- Parameters:
A (array) – An array of numbers
axix (integer) – An integer
- Return type:
array
- cumsum(A[, axis=0|1])¶
- Cumulative sums, of the same size: of the elements of a vector, v₀, v₀ + v₁…; of a matrix down its columns (axis 0, by default) or along its rows (axis 1)
- Parameters:
A (array) – An array of numbers
axix (integer) – An integer
- Return type:
array
- diag(A)¶
- Diagonal matrix of the vector A, or diagonal of the square matrix A
- Parameters:
A (array/integer) – An array of numbers or an integer
- Return type:
array
- identity(n)¶
- Creates identity matrix
- Parameters:
n (integer) – An integer
- Return type:
array
- last(v)¶
- Index of the last element of the vector v or of a list of texts, from ORIGIN
- Parameters:
A (array) – An array of numbers
- Return type:
integer
Tip
find the definition of ORIGIN here
- length(A)¶
- Number of elements of A, or of a list of texts
- Parameters:
A (array) – An array of numbers
- Return type:
integer
- lookup(z, A, B)¶
- Number of elements of A, or of a list of texts
- Parameters:
z (float) – A float value
A (array) – An array of numbers
B (array) – An array of numbers
- Return type:
integer
- match(z, A)¶
- Indices of the elements of the vector A, or of the list of texts, equal to z; of a matrix, a row (i, j) for each
- Parameters:
z (float) – A float value
A (array) – An array of numbers
- Return type:
integer
- max(A, ...[, axis=0|1])¶
- Greatest value of the numbers and arrays; with axis, of each column (0) or row (1) of A
- Parameters:
A (array) – An array of numbers
axis (integer) – An integer value
- Return type:
integer
- min(A, ...[, axis=0|1])¶
- Greatest value of the numbers and arrays; with axis, of each column (0) or row (1) of A
- Parameters:
A (array) – An array of numbers
axis (integer) – An integer value
- Return type:
integer
- ones(m[, n])¶
- m×n matrix of ones, square by default
- Parameters:
m (integer) – An integer value
n (integer) – An integer value
- Return type:
integer
- range(n)¶
- Vector of 0, 1, …, n − 1
param integer n: An integer value :rtype: integer
- reverse(V)¶
- elements of the vector v in reverse order
- Parameters:
V (array) – An array in the form of a vector
- Return type:
integer
- rows(A)¶
- The number of rows of an array A.
- Parameters:
A (array) – An Array
- Return type:
integer
- rsort(A, j)¶
- The cols of A in the increasing order of its row j, from ORIGIN
- Parameters:
A (array) – An Array of numbers
j (integer) – A number
- Return type:
array
Tip
find the definition of ORIGIN here
- sort(V)¶
- Elements of the vector V in increasing order
- Parameters:
V (array) – An Array of numbers in vector form
- Return type:
array
- stack(A, B)¶
- the arrays one above the other, with the same number of columns
- Parameters:
V (array) – An Array of numbers in vector form
- Return type:
array
- submatrix(A, ir, jr, ic, jc)¶
- Rows ir to jr and columns ic to jc of A, from ORIGIN
- Parameters:
A (array) – An Array of numbers in vector form
ir (integer) – A number
jr (integer) – A number
ic (integer) – A number
jc (integer) – A number
- Return type:
array
Tip
find the definition of ORIGIN here
- sum(A, ..., [axis=0|1|]
- sum of all the elements of the numbers and arrays; with axis, of each column (0) or row (1) of A
- Parameters:
A (array) – An array of numbers
axis (integer) – An integer value
- Return type:
integer
- zeros(m[, n])¶
- m×n matrix of zeros, square without n
- Parameters:
m (integer) – An integer value
n (integer) – An integer value