- Description
- Get absolute value
- Domain
- Numeric ->
double
- Syntax
- abs ( expression )
- Example
./iquery -q "filter(matrix, abs(A) > 1)"
- Description
- Calculate arc cosine
- Domain
- Numeric ->
double
- Syntax
- acos ( expression )
- Example
./iquery -q "apply(matrix, res, acos(A))"
- Description
- Calculate arc sine
- Domain
- Numeric ->
double
- Syntax
- asin ( expression )
- Example
./iquery -q "apply(matrix, res, asin(A))"
- Description
- Calculate arc tangent
- Domain
- Numeric ->
double
- Syntax
- atan ( expression )
- Example
./iquery -q "apply(matrix, res, atan(A))"
- Description
- Get smallest integer number greater or equal than specified
- Domain
- Numeric ->
double
- Syntax
- ceil ( expression )
- Example
./iquery -q "apply(matrix, res, ceil(A))"
- Description
- Get first char of the string. SciDB doesn't explicitly support
char literal. 'x' is treated as string with
length 1. If you need to use character in some query predicate, you
should use char function to convert string to character.
- Domain
String -> char
- Syntax
- strchar ( expression )
- Example
./iquery -q "filter(Scan, Code=strchar('A'))"
- Description
- Print data according to specified format (see documantation of
libc strftime function).
- Domain
DateTime, String -> String
- Syntax
- strftime ( date, format )
- Example
./iquery -q "apply(Products, expired,
strftime(expiration_date, '%D'))"
- Description
- Get substring of the string.
- Domain
String, Integer, Integer -> String
- Syntax
- substr ( string, offset, length
)
- Example
./iquery -q "apply(Scan, ExpirationDate, subftime(Expired,
'%D'))"
- Description
- Calculate cosine
- Domain
- Numeric ->
double
- Syntax
- cos ( expression )
- Example
./iquery -q "apply(matrix, res, cos(A))"
- Description
- Calculate exponent
- Domain
- Numeric ->
double
- Syntax
- exp ( expression )
- Example
./iquery -q "apply(matrix, res, exp(A))"
- Description
- Get first coordinate of specified dimension. If array has only
one dimension, then dimension specifier can be omitted.
Dimension is specified either by name, either by index (zero based
poistion of dimension in array descriptor).
- Domain
- (
string
, string
) -> integer
- Syntax
- first ( array-name [ , dimesnion-spec ]
)
- Example
./iquery -q "subarray(vec, first('vec') + 1, length('vec'))"
- Description
- Get largest integer number smaller or equal than specified
- Domain
- Numeric ->
double
- Syntax
- floor ( expression )
- Example
./iquery -q "apply(matrix, res, floor(A))"
- Description
- Printf double value using sptring format string
- Domain
- (double, string) ->
string
- Syntax
- format ( expression, format-string )
- Example
./iquery -q "apply(matrix, fx, format(x, '%.20f'))"
- Description
- Get maximal coordinate for specified dimension. If array has only
one dimension, then dimension specifier can be omitted.
Dimension is specified either by name, either by index (zero based
poistion of dimension in array descriptor).
- Domain
- (
string
, string
) -> integer
- Syntax
- high ( array-name [ , dimesnion-spec ] )
- Example
./iquery -q "subarray(vec, high('vec') - 1, high('vec'))"
- Description
- Check if expression value is null
- Domain
- (
any
) -> boolean
- Syntax
- is_null ( expression ] )
- Example
./iquery -q "filter(vec, is_null(x))"
- Description
- Check if double value is NAN
- Domain
- (
double
) -> boolean
- Syntax
- is_nan ( expression ] )
- Example
./iquery -q "filter(vec, is_nan(x))"
- Description
- Get last coordinate of specified dimension. If array has only one
dimension, then dimension specifier can be omitted.
Dimension is specified either by name, either by index (zero based
poistion of dimension in array descriptor).
- Domain
- (
string
, string
) -> integer
- Syntax
- last ( array-name [ , dimesnion-spec ] )
- Example
./iquery -q "subarray(vec, 1, last('vec') - 1)"
- Description
- Get length of sepcified dimension of the array. If array has only
one dimension, then dimension specifier can be omitted.
Dimension is specified either by name, either by index (zero based
poistion of dimension in array descriptor).
- Domain
- (
string
, string
) -> integer
- Syntax
- length ( array-name [ , dimesnion-spec ]
)
- Example
./iquery -q "subarray(vec, 1, length('vec'))"
- Description
- Calculate natural logarithm
- Domain
- Numeric ->
double
- Syntax
- log ( expression )
- Example
./iquery -q "apply(matrix, res, log(A))"
- Description
- Calculate decimal logarithm
- Domain
- Numeric ->
double
- Syntax
- log10 ( expression )
- Example
./iquery -q "apply(matrix, res, log10(A))"
- Description
- Get minumum coordinate for specified dimension. If array has only
one dimension, then dimension specifier can be omitted.
Dimension is specified either by name, either by index (zero based
poistion of dimension in array descriptor).
- Domain
- (
string
, string
) -> integer
- Syntax
- low ( array-name [ , dimesnion-spec ] )
- Example
./iquery -q "subarray(vec, low('vec') - 1, low('vec'))"
- Description
- Get current system time
- Domain
- None ->
DateTime
- Syntax
- now ( )
- Example
./iquery -q "filter(Product, Expired <= now())"
- Description
- Raise number to the power
- Domain
- Numeric, Numeric ->
double
- Syntax
- pow ( expression, expression )
- Example
./iquery -q "apply(matrix, cube, pow(A, 3))"
- Description
- Calculate sine
- Domain
- Numeric ->
double
- Syntax
- sin ( expression )
- Example
./iquery -q "apply(matrix, res, sin(A))"
- Description
- Calculate square root
- Domain
- Numeric ->
double
- Syntax
- sqrt ( expression )
- Example
./iquery -q "apply(matrix, res, sqrt(A))"
- Description
- Calculate tangent
- Domain
- Numeric ->
double
- Syntax
- tan ( expression )
- Example
./iquery -q "apply(matrix, res, tan(A))"