ilastNot#
- swordfish.function.ilastNot()#
If X is a vector, return the subscript of the last non-null element. Return -1 if all elements are null.
If X is a tuple of vectors, return the subscript of the last position where the element in all vectors is not null.
If X is a matrix, return the subscript of the last non-null element within each column. The result is a vector.
- Parameters:
X (Constant) – A vector, or a tuple of vectors of equal length, or a matrix.