|
5.1.130 size
Syntax:
size ( string_expression )
size ( bigint_expression )
size ( number_expression )
size ( intvec_expression )
size ( intmat_expression )
size ( poly_expression )
size ( vector_expression )
size ( ideal_expression )
size ( module_expression )
size ( matrix_expression )
size ( list_expression )
size ( resolution_expression )
size ( ring_expression )
Type:
- int
Purpose:
- depends on the type of argument:
- ideal or module
- returns the number of (non-zero) generators.
- string, intvec, list or resolution
- returns the length, i.e., the number of characters, entries or elements.
- poly or vector
- returns the number of monomials.
- matrix or intmat
- returns the number of entries (rows*columns).
- ring
- returns the number of elements in the ground field
(for Z/p and algebraic extensions) or -1
- number or bigint
- returns 0 for 0 or the number of words
Example:
See
ideal;
intmat;
intvec;
module;
ncols;
nrows;
poly;
string;
vector.
|