Scalars, arrays, masks, and reductions

Work with scalars and arrays, apply masks and elementwise comparisons, and choose how reductions handle axes and nonfinite values.

Numerical computing, models, statistics, and Datasets with Python

Expansion, masks, and ordering

For array_binary, two arrays must have the same shape unless one operand is scalar. array_select returns only the selected elements. array_where preserves the mask shape and chooses between the true and false branches at each position. Use 0 and 1 as mask values. With argmax and nonfinite='omit', interpret the index in the reference specified by the contract, since filtering can skip positions.

Precision and missing values

Apply an explicit nonfinite policy for reductions that encounter NaN or infinite values. Check the output dtype. Binary transport can preserve input precision even when a facade promotes its calculation to double. Identifiers or counts larger than 2^53 require an exact integer type when published as well.

Operation reference

Jump to an operation

reduce_summary

Access
Registered in the Python Job
Arguments
values and optional dimension
Units
Units follow NUMERIC_API_v1 operation contract
Result
count sum mean minimum maximum and actual shape
Effect
Descriptive count sum minimum and maximum by actual matrix axis
Types
vector,matrix
Declared shape
axis_reduction
Options
dimension=1,2
Nonfinite values
error
Units rule
field_specific
gxtxt_api_call("NUMERIC_API_v1", "reduce_summary", args)
Recorded result · reduce_summary

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  }
]

Result, preview

{
  "count": 4.0,
  "sum": 10.0,
  "mean": 2.5,
  "min": 1.0,
  "max": 4.0,
  "requested_dimension": 0.0,
  "input_shape": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      4.0,
      1.0
    ]
  },
  "output_shape": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0
    ]
  }
}

reduce_accumulate

Access
Registered in the Python Job
Arguments
state and values
Units
Units follow NUMERIC_API_v1 operation contract
Result
combined count sum mean minimum maximum
Effect
Combine successive summary states without sorting or quantiles
Types
structured,vector
Declared shape
composable
Nonfinite values
error
Units rule
field_specific
gxtxt_api_call("NUMERIC_API_v1", "reduce_accumulate", args)
Recorded result · reduce_accumulate

Download the example script (ZIP).

Example operands, preview

[
  {
    "count": 4.0,
    "sum": 10.0,
    "mean": 2.5,
    "min": 1.0,
    "max": 4.0,
    "requested_dimension": 0.0,
    "input_shape": {
      "shape": [
        1,
        2
      ],
      "dtype": "float64",
      "values": [
        4.0,
        1.0
      ]
    },
    "output_shape": {
      "shape": [
        1,
        2
      ],
      "dtype": "float64",
      "values": [
        1.0,
        1.0
      ]
    }
  },
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  }
]

Result, preview

{
  "count": 8.0,
  "sum": 20.0,
  "min": 1.0,
  "max": 4.0,
  "mean": 2.5
}
Negative test or attempted call · reduce_accumulate

Download the example script (ZIP).

Result, preview

"GXTXT:Numeric: reduce_accumulate requires a valid scalar summary state"

array_unary

Access
Registered in the Python Job
Arguments
operation name, operand struct, optional options struct
Units
Units follow NUMERIC_API_v1 operation contract
Result
numerical result struct
Function
Apply a public unary numerical operation
gxtxt_api_call("NUMERIC_API_v1", "array_unary", args)
Recorded result · array_unary

Download the example script (ZIP).

Example operands, preview

[
  "abs",
  {
    "kind": "vector",
    "value": [
      -2,
      0,
      3
    ]
  }
]

Result, preview

{
  "values": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      2.0,
      0.0,
      3.0
    ]
  }
}

array_binary

Access
Registered in the Python Job
Arguments
operation name, left operand struct, right operand struct, optional options struct
Units
Units follow NUMERIC_API_v1 operation contract
Result
numerical result struct
Function
Apply a public binary numerical operation
gxtxt_api_call("NUMERIC_API_v1", "array_binary", args)
Recorded result · array_binary

Download the example script (ZIP).

Example operands, preview

[
  "add",
  {
    "kind": "vector",
    "value": [
      -2,
      0,
      3
    ]
  },
  {
    "kind": "scalar",
    "value": 4
  }
]

Result, preview

{
  "values": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      2.0,
      4.0,
      7.0
    ]
  }
}

array_compare

Access
Registered in the Python Job
Arguments
operation name, left operand struct, right operand struct, optional options struct
Units
Units follow NUMERIC_API_v1 operation contract
Result
numerical result struct
Function
Build a numerical comparison mask
gxtxt_api_call("NUMERIC_API_v1", "array_compare", args)
Recorded result · array_compare

Download the example script (ZIP).

Example operands, preview

[
  "greater_than",
  {
    "kind": "vector",
    "value": [
      -2,
      0,
      3
    ]
  },
  {
    "kind": "scalar",
    "value": 0
  }
]

Result, preview

{
  "values": {
    "shape": [
      3,
      1
    ],
    "dtype": "bool",
    "values": [
      false,
      false,
      true
    ]
  }
}
Negative test or attempted call · array_compare

Download the example script (ZIP).

Result, preview

"GXTXT:Numeric: unknown array comparison: gt"

array_mask

Access
Registered in the Python Job
Arguments
operation name, first operand struct, optional second operand struct
Units
Units follow NUMERIC_API_v1 operation contract
Result
numerical result struct
Function
Apply a logical mask operation
gxtxt_api_call("NUMERIC_API_v1", "array_mask", args)
Recorded result · array_mask

Download the example script (ZIP).

Example operands, preview

[
  "logical_not",
  {
    "kind": "vector",
    "value": [
      1,
      0,
      1
    ]
  }
]

Result, preview

{
  "values": {
    "shape": [
      3,
      1
    ],
    "dtype": "bool",
    "values": [
      false,
      true,
      false
    ]
  }
}
Negative test or attempted call · array_mask

Download the example script (ZIP).

Result, preview

"GXTXT:ScriptBridge:InvalidArguments: array operand requires scalar/vector/matrix kind and value"

array_select

Access
Registered in the Python Job
Arguments
values operand struct, mask operand struct
Units
Units follow NUMERIC_API_v1 operation contract
Result
numerical result struct
Effect
Select values by mask
Types
scalar,vector,matrix
Declared shape
mask_matches_values
Expansion
mask_scalar_expansion
Nonfinite values
caller_owned
Units rule
preserve
Expression function
select
gxtxt_api_call("NUMERIC_API_v1", "array_select", args)
Recorded result · call:array_select

Download the example script (ZIP).

Example operands, preview

[
  "array_select",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    },
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.0,
        1.0
      ]
    }
  ]
]

Result, preview

{
  "values": 0.75
}
Negative test or attempted call · array_select

Download the example script (ZIP).

Result, preview

"GXTXT:ScriptBridge:InvalidArguments: array operand requires scalar/vector/matrix kind and value"

array_where

Access
Registered in the Python Job
Arguments
mask, true values, false values as operand structs
Units
Units follow NUMERIC_API_v1 operation contract
Result
numerical result struct
Effect
Select values by a logical mask
Types
scalar,vector,matrix
Declared shape
equal_shape_or_scalar
Expansion
scalar_expansion
Nonfinite values
caller_owned
Units rule
compatible
Expression function
where
gxtxt_api_call("NUMERIC_API_v1", "array_where", args)
Recorded result · call:array_where

Download the example script (ZIP).

Example operands, preview

[
  "array_where",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.0,
        1.0
      ]
    },
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    },
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.5,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.5,
      0.75
    ]
  }
}
Negative test or attempted call · array_where

Download the example script (ZIP).

Result, preview

"GXTXT:ScriptBridge:InvalidArguments: array operand requires scalar/vector/matrix kind and value"

array_reduce

Access
Registered in the Python Job
Arguments
operation name, operand struct, optional options struct
Units
Units follow NUMERIC_API_v1 operation contract
Result
numerical result struct
Function
Reduce a numeric array
gxtxt_api_call("NUMERIC_API_v1", "array_reduce", args)
Recorded result · array_reduce:origin-index

Download the example script (ZIP).

Example operands, preview

[
  "argmax",
  {
    "kind": "vector",
    "value": [
      1,
      NaN,
      7
    ]
  },
  {
    "nonfinite": "omit"
  }
]

Result, preview

{
  "values": 3.0,
  "axis": 1.0,
  "requested_axis": 0.0,
  "input_shape": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      3.0,
      1.0
    ]
  },
  "action": "argmax",
  "n_input": 3.0,
  "n_valid": 2.0
}
Negative test or attempted call · array_reduce:nonfinite

Download the example script (ZIP).

Example operands, preview

[
  "mean",
  {
    "kind": "vector",
    "value": [
      1,
      Infinity,
      7
    ]
  },
  {
    "nonfinite": "error"
  }
]

Result, preview

"GXTXT:Numeric: reduction values contain NaN or Inf; set nonfinite=omit explicitly"

arrayUnary

Access
Registered in the Python Job
Arguments
name operand {options {}}
Units
Exact original owner units and interpretation; no relabelling
Result
Complete original result with number/boolean/string/vector/matrix/tensor/struct/cell types from owner resultTypes immediately after call
Function
Exact original Numeric arrayUnary
gxtxt_api_call("NUMERIC_API_v1", "arrayUnary", args)
Recorded result · arrayUnary

Download the example script (ZIP).

Example operands, preview

[
  "abs",
  {
    "kind": "vector",
    "value": [
      -2,
      0,
      3
    ]
  }
]

Result, preview

{
  "values": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      2.0,
      0.0,
      3.0
    ]
  }
}

arrayBinary

Access
Registered in the Python Job
Arguments
name left right {options {}}
Units
Exact original owner units and interpretation; no relabelling
Result
Complete original result with number/boolean/string/vector/matrix/tensor/struct/cell types from owner resultTypes immediately after call
Function
Exact original Numeric arrayBinary
gxtxt_api_call("NUMERIC_API_v1", "arrayBinary", args)
Recorded result · arrayBinary

Download the example script (ZIP).

Example operands, preview

[
  "add",
  {
    "kind": "vector",
    "value": [
      -2,
      0,
      3
    ]
  },
  {
    "kind": "scalar",
    "value": 4
  }
]

Result, preview

{
  "values": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      2.0,
      4.0,
      7.0
    ]
  }
}

arrayCompare

Access
Registered in the Python Job
Arguments
name left right {options {}}
Units
Exact original owner units and interpretation; no relabelling
Result
Complete original result with number/boolean/string/vector/matrix/tensor/struct/cell types from owner resultTypes immediately after call
Function
Exact original Numeric arrayCompare
gxtxt_api_call("NUMERIC_API_v1", "arrayCompare", args)
Recorded result · arrayCompare

Download the example script (ZIP).

Example operands, preview

[
  "greater_than",
  {
    "kind": "vector",
    "value": [
      -2,
      0,
      3
    ]
  },
  {
    "kind": "scalar",
    "value": 0
  }
]

Result, preview

{
  "values": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      1.0
    ]
  }
}
Negative test or attempted call · arrayCompare

Download the example script (ZIP).

Result, preview

"GXTXT:ScriptBridge:RemoteError: NUMERIC_API_v1/arrayCompare: math.numeric API v1: unknown array comparison: gt"

arrayMask

Access
Registered in the Python Job
Arguments
name first {second {}}
Units
Exact original owner units and interpretation; no relabelling
Result
Complete original result with number/boolean/string/vector/matrix/tensor/struct/cell types from owner resultTypes immediately after call
Function
Exact original Numeric arrayMask
gxtxt_api_call("NUMERIC_API_v1", "arrayMask", args)
Recorded result · arrayMask

Download the example script (ZIP).

Example operands, preview

[
  "logical_not",
  {
    "kind": "vector",
    "value": [
      1,
      0,
      1
    ]
  }
]

Result, preview

{
  "values": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      0.0
    ]
  }
}
Negative test or attempted call · arrayMask

Download the example script (ZIP).

Result, preview

"GXTXT:ScriptBridge:RemoteError: NUMERIC_API_v1/arrayMask: math.numeric API v1: array operand kind must be scalar, vector or matrix"

arraySelect

Access
Registered in the Python Job
Arguments
values mask
Units
Exact original owner units and interpretation; no relabelling
Result
Complete original result with number/boolean/string/vector/matrix/tensor/struct/cell types from owner resultTypes immediately after call
Function
Exact original Numeric arraySelect
gxtxt_api_call("NUMERIC_API_v1", "arraySelect", args)
Recorded result · arraySelect

Download the example script (ZIP).

Example operands, preview

[
  {
    "kind": "vector",
    "value": [
      -2,
      0,
      3
    ]
  },
  {
    "kind": "vector",
    "value": [
      1,
      0,
      1
    ]
  }
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      -2.0,
      3.0
    ]
  }
}
Negative test or attempted call · arraySelect

Download the example script (ZIP).

Result, preview

"GXTXT:ScriptBridge:RemoteError: NUMERIC_API_v1/arraySelect: math.numeric API v1: array operand kind must be scalar, vector or matrix"

arrayWhere

Access
Registered in the Python Job
Arguments
mask trueValues falseValues
Units
Exact original owner units and interpretation; no relabelling
Result
Complete original result with number/boolean/string/vector/matrix/tensor/struct/cell types from owner resultTypes immediately after call
Function
Exact original Numeric arrayWhere
gxtxt_api_call("NUMERIC_API_v1", "arrayWhere", args)
Recorded result · arrayWhere

Download the example script (ZIP).

Example operands, preview

[
  {
    "kind": "vector",
    "value": [
      1,
      0,
      1
    ]
  },
  {
    "kind": "vector",
    "value": [
      -2,
      0,
      3
    ]
  },
  {
    "kind": "scalar",
    "value": -9
  }
]

Result, preview

{
  "values": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      -2.0,
      -9.0,
      3.0
    ]
  }
}
Negative test or attempted call · arrayWhere

Download the example script (ZIP).

Result, preview

"GXTXT:ScriptBridge:RemoteError: NUMERIC_API_v1/arrayWhere: math.numeric API v1: array operand kind must be scalar, vector or matrix"

arrayReduce

Access
Registered in the Python Job
Arguments
name operand {options {}}
Units
Exact original owner units and interpretation; no relabelling
Result
Complete original result with number/boolean/string/vector/matrix/tensor/struct/cell types from owner resultTypes immediately after call
Function
Exact original Numeric arrayReduce
gxtxt_api_call("NUMERIC_API_v1", "arrayReduce", args)
Recorded result · arrayReduce:origin-index

Download the example script (ZIP).

Example operands, preview

[
  "argmax",
  {
    "kind": "vector",
    "value": [
      1,
      NaN,
      7
    ]
  },
  {
    "nonfinite": "omit"
  }
]

Result, preview

{
  "values": 3.0,
  "axis": 1.0,
  "requested_axis": 0.0,
  "input_shape": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      3.0,
      1.0
    ]
  },
  "action": "argmax",
  "n_input": 3.0,
  "n_valid": 2.0
}
Negative test or attempted call · arrayReduce:nonfinite

Download the example script (ZIP).

Example operands, preview

[
  "mean",
  {
    "kind": "vector",
    "value": [
      1,
      Infinity,
      7
    ]
  },
  {
    "nonfinite": "error"
  }
]

Result, preview

"GXTXT:ScriptBridge:RemoteError: NUMERIC_API_v1/arrayReduce: math.numeric API v1: reduction values contain NaN or Inf; set nonfinite=omit explicitly"

comparisonCurves

Access
Registered in the Python Job
Arguments
mode x1 y1 x2 y2 {options {}}
Units
Exact original owner units and interpretation; no relabelling
Result
Complete original result with number/boolean/string/vector/matrix/tensor/struct/cell types from owner resultTypes immediately after call
Function
Exact original Numeric comparisonCurves
gxtxt_api_call("NUMERIC_API_v1", "comparisonCurves", args)
Recorded result · comparisonCurves

Download the example script (ZIP).

Example operands, preview

[
  "difference",
  {
    "shape": [
      6
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      2.0,
      3.0,
      4.0,
      5.0
    ]
  },
  {
    "shape": [
      6
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.0,
      5.0,
      7.0,
      9.0,
      11.0
    ]
  },
  {
    "shape": [
      6
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      2.0,
      3.0,
      4.0,
      5.0
    ]
  },
  {
    "shape": [
      6
    ],
    "dtype": "float64",
    "values": [
      2.0,
      4.0,
      6.0,
      8.0,
      10.0,
      12.0
    ]
  }
]

Result, preview

{
  "x": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      2.0,
      3.0,
      4.0,
      5.0
    ]
  },
  "values": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      -1.0,
      -1.0,
      -1.0,
      -1.0,
      -1.0,
      -1.0
    ]
  },
  "invalid_count": 0.0,
  "domain_min": 0.0,
  "domain_max": 5.0,
  "method": "linear_intersection_first_source_grid",
  "normalization": "none",
  "offset": 0.0,
  "denominator_floor": 0.0,
  "canonical_values_modified": false
}

normalizeVector

Access
Registered in the Python Job
Arguments
values {options {}}
Units
Exact original owner units and interpretation; no relabelling
Result
Complete original result with number/boolean/string/vector/matrix/tensor/struct/cell types from owner resultTypes immediately after call
Function
Exact original Numeric normalizeVector
gxtxt_api_call("NUMERIC_API_v1", "normalizeVector", args)
Recorded result · normalizeVector

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  }
]

Result, preview

{
  "values": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      0.18257418583505536,
      0.3651483716701107,
      0.5477225575051661,
      0.7302967433402214
    ]
  },
  "norm": 5.477225575051661,
  "center": 0.0,
  "n": 4.0,
  "method": "unit_vector"
}

vectorSimilarity

Access
Registered in the Python Job
Arguments
a b {options {}}
Units
Exact original owner units and interpretation; no relabelling
Result
Complete original result with number/boolean/string/vector/matrix/tensor/struct/cell types from owner resultTypes immediately after call
Function
Exact original Numeric vectorSimilarity
gxtxt_api_call("NUMERIC_API_v1", "vectorSimilarity", args)
Recorded result · vectorSimilarity

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  },
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  }
]

Result, preview

{
  "score": 1.0,
  "cosine": 1.0,
  "n": 4.0,
  "method": "cosine"
}

array_unary.negate

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
preserve
Result
same_as_input
Effect
Apply a unary real-array transform
Types
scalar,vector,matrix
Declared shape
same_as_input
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
preserve
Expression function
negate
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.negate", operands])
Recorded result · call:array_unary.negate

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.negate",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.25,
      -0.75
    ]
  }
}

array_unary.abs

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
preserve
Result
same_as_input
Effect
Apply a unary real-array transform
Types
scalar,vector,matrix
Declared shape
same_as_input
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
preserve
Expression function
abs
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.abs", operands])
Recorded result · call:array_unary.abs

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.abs",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.25,
      0.75
    ]
  }
}

array_unary.floor

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
preserve
Result
same_as_input
Effect
Apply a unary real-array transform
Types
scalar,vector,matrix
Declared shape
same_as_input
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
preserve
Expression function
floor
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.floor", operands])
Recorded result · call:array_unary.floor

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.floor",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  }
}

array_unary.ceil

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
preserve
Result
same_as_input
Effect
Apply a unary real-array transform
Types
scalar,vector,matrix
Declared shape
same_as_input
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
preserve
Expression function
ceil
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.ceil", operands])
Recorded result · call:array_unary.ceil

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.ceil",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0
    ]
  }
}

array_unary.round

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
preserve
Result
same_as_input
Effect
Apply a unary real-array transform
Types
scalar,vector,matrix
Declared shape
same_as_input
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
preserve
Expression function
round
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.round", operands])
Recorded result · call:array_unary.round

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.round",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0
    ]
  }
}

array_unary.sign

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
dimensionless_output
Result
same_as_input
Effect
Return the sign of each value
Types
scalar,vector,matrix
Declared shape
same_as_input
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
dimensionless_output
Expression function
sign
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.sign", operands])
Recorded result · call:array_unary.sign

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.sign",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0
    ]
  }
}

array_unary.sqrt

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
square_root
Result
same_as_input
Effect
Compute the real square root
Types
scalar,vector,matrix
Declared shape
same_as_input
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
square_root
Expression function
sqrt
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.sqrt", operands])
Recorded result · call:array_unary.sqrt

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.sqrt",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.5,
      0.8660254037844386
    ]
  }
}

array_unary.square

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
square
Result
same_as_input
Effect
Square each value
Types
scalar,vector,matrix
Declared shape
same_as_input
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
square
Expression function
square
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.square", operands])
Recorded result · call:array_unary.square

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.square",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0625,
      0.5625
    ]
  }
}

array_unary.reciprocal

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
reciprocal
Result
same_as_input
Effect
Compute reciprocal values
Types
scalar,vector,matrix
Declared shape
same_as_input
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
reciprocal
Expression function
reciprocal
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.reciprocal", operands])
Recorded result · call:array_unary.reciprocal

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.reciprocal",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      4.0,
      1.3333333333333333
    ]
  }
}

array_unary.exp

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
dimensionless_input_output
Result
same_as_input
Effect
Apply a dimensionless mathematical function
Types
scalar,vector,matrix
Declared shape
same_as_input
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
dimensionless_input_output
Expression function
exp
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.exp", operands])
Recorded result · call:array_unary.exp

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.exp",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.2840254166877414,
      2.117000016612675
    ]
  }
}

array_unary.expm1

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
dimensionless_input_output
Result
same_as_input
Effect
Apply a dimensionless mathematical function
Types
scalar,vector,matrix
Declared shape
same_as_input
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
dimensionless_input_output
Expression function
expm1
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.expm1", operands])
Recorded result · call:array_unary.expm1

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.expm1",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.2840254166877415,
      1.1170000166126748
    ]
  }
}

array_unary.log

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
dimensionless_input_output
Result
same_as_input
Effect
Apply a dimensionless mathematical function
Types
scalar,vector,matrix
Declared shape
same_as_input
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
dimensionless_input_output
Expression function
log
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.log", operands])
Recorded result · call:array_unary.log

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.log",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      -1.3862943611198906,
      -0.2876820724517809
    ]
  }
}

array_unary.log10

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
dimensionless_input_output
Result
same_as_input
Effect
Apply a dimensionless mathematical function
Types
scalar,vector,matrix
Declared shape
same_as_input
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
dimensionless_input_output
Expression function
log10
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.log10", operands])
Recorded result · call:array_unary.log10

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.log10",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.6020599913279624,
      -0.12493873660829993
    ]
  }
}

array_unary.log1p

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
dimensionless_input_output
Result
same_as_input
Effect
Apply a dimensionless mathematical function
Types
scalar,vector,matrix
Declared shape
same_as_input
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
dimensionless_input_output
Expression function
log1p
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.log1p", operands])
Recorded result · call:array_unary.log1p

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.log1p",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.22314355131420976,
      0.5596157879354227
    ]
  }
}

array_unary.sin

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
dimensionless_input_output
Result
same_as_input
Effect
Apply a dimensionless mathematical function
Types
scalar,vector,matrix
Declared shape
same_as_input
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
dimensionless_input_output
Expression function
sin
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.sin", operands])
Recorded result · call:array_unary.sin

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.sin",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.24740395925452294,
      0.6816387600233341
    ]
  }
}

array_unary.cos

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
dimensionless_input_output
Result
same_as_input
Effect
Apply a dimensionless mathematical function
Types
scalar,vector,matrix
Declared shape
same_as_input
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
dimensionless_input_output
Expression function
cos
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.cos", operands])
Recorded result · call:array_unary.cos

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.cos",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.9689124217106447,
      0.7316888688738209
    ]
  }
}

array_unary.tan

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
dimensionless_input_output
Result
same_as_input
Effect
Apply a dimensionless mathematical function
Types
scalar,vector,matrix
Declared shape
same_as_input
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
dimensionless_input_output
Expression function
tan
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.tan", operands])
Recorded result · call:array_unary.tan

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.tan",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.25534192122103627,
      0.9315964599440725
    ]
  }
}

array_unary.asin

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
dimensionless_input_output
Result
same_as_input
Effect
Apply a dimensionless mathematical function
Types
scalar,vector,matrix
Declared shape
same_as_input
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
dimensionless_input_output
Expression function
asin
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.asin", operands])
Recorded result · call:array_unary.asin

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.asin",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.25268025514207865,
      0.848062078981481
    ]
  }
}

array_unary.acos

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
dimensionless_input_output
Result
same_as_input
Effect
Apply a dimensionless mathematical function
Types
scalar,vector,matrix
Declared shape
same_as_input
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
dimensionless_input_output
Expression function
acos
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.acos", operands])
Recorded result · call:array_unary.acos

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.acos",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.318116071652818,
      0.7227342478134157
    ]
  }
}

array_unary.atan

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
dimensionless_input_output
Result
same_as_input
Effect
Apply a dimensionless mathematical function
Types
scalar,vector,matrix
Declared shape
same_as_input
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
dimensionless_input_output
Expression function
atan
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.atan", operands])
Recorded result · call:array_unary.atan

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.atan",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.24497866312686414,
      0.6435011087932844
    ]
  }
}

array_unary.sinh

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
dimensionless_input_output
Result
same_as_input
Effect
Apply a dimensionless mathematical function
Types
scalar,vector,matrix
Declared shape
same_as_input
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
dimensionless_input_output
Expression function
sinh
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.sinh", operands])
Recorded result · call:array_unary.sinh

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.sinh",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.2526123168081683,
      0.82231673193583
    ]
  }
}

array_unary.cosh

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
dimensionless_input_output
Result
same_as_input
Effect
Apply a dimensionless mathematical function
Types
scalar,vector,matrix
Declared shape
same_as_input
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
dimensionless_input_output
Expression function
cosh
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.cosh", operands])
Recorded result · call:array_unary.cosh

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.cosh",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0314130998795732,
      1.2946832846768448
    ]
  }
}

array_unary.tanh

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
dimensionless_input_output
Result
same_as_input
Effect
Apply a dimensionless mathematical function
Types
scalar,vector,matrix
Declared shape
same_as_input
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
dimensionless_input_output
Expression function
tanh
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.tanh", operands])
Recorded result · call:array_unary.tanh

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.tanh",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.24491866240370913,
      0.6351489523872873
    ]
  }
}

array_unary.is_finite

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
dimensionless_output
Result
same_as_input
Effect
Inspect real-array finiteness
Types
scalar,vector,matrix
Declared shape
same_as_input
Nonfinite values
inspect
Units rule
dimensionless_output
Expression function
is_finite
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.is_finite", operands])
Recorded result · call:array_unary.is_finite

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.is_finite",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0
    ]
  }
}

array_unary.is_nan

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
dimensionless_output
Result
same_as_input
Effect
Inspect real-array finiteness
Types
scalar,vector,matrix
Declared shape
same_as_input
Nonfinite values
inspect
Units rule
dimensionless_output
Expression function
is_nan
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.is_nan", operands])
Recorded result · call:array_unary.is_nan

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.is_nan",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  }
}

array_unary.is_inf

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
dimensionless_output
Result
same_as_input
Effect
Inspect real-array finiteness
Types
scalar,vector,matrix
Declared shape
same_as_input
Nonfinite values
inspect
Units rule
dimensionless_output
Expression function
is_inf
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.is_inf", operands])
Recorded result · call:array_unary.is_inf

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.is_inf",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  }
}

array_unary.is_pos_inf

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
dimensionless_output
Result
same_as_input
Effect
Inspect real-array finiteness
Types
scalar,vector,matrix
Declared shape
same_as_input
Nonfinite values
inspect
Units rule
dimensionless_output
Expression function
is_pos_inf
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.is_pos_inf", operands])
Recorded result · call:array_unary.is_pos_inf

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.is_pos_inf",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  }
}

array_unary.is_neg_inf

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
operand
Shape
same_as_input
Units
dimensionless_output
Result
same_as_input
Effect
Inspect real-array finiteness
Types
scalar,vector,matrix
Declared shape
same_as_input
Nonfinite values
inspect
Units rule
dimensionless_output
Expression function
is_neg_inf
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_unary.is_neg_inf", operands])
Recorded result · call:array_unary.is_neg_inf

Download the example script (ZIP).

Example operands, preview

[
  "array_unary.is_neg_inf",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  }
}

array_binary.add

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
left,right
Shape
equal_shape_or_scalar
Units
compatible
Result
common_shape
Effect
Combine equal-dimension real arrays
Types
scalar,vector,matrix
Declared shape
equal_shape_or_scalar
Expansion
scalar_expansion
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
compatible
Expression function
add
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_binary.add", operands])
Recorded result · call:array_binary.add

Download the example script (ZIP).

Example operands, preview

[
  "array_binary.add",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    },
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.5,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.75,
      1.0
    ]
  }
}

array_binary.subtract

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
left,right
Shape
equal_shape_or_scalar
Units
compatible
Result
common_shape
Effect
Combine equal-dimension real arrays
Types
scalar,vector,matrix
Declared shape
equal_shape_or_scalar
Expansion
scalar_expansion
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
compatible
Expression function
subtract
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_binary.subtract", operands])
Recorded result · call:array_binary.subtract

Download the example script (ZIP).

Example operands, preview

[
  "array_binary.subtract",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    },
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.5,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.25,
      0.5
    ]
  }
}

array_binary.minimum

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
left,right
Shape
equal_shape_or_scalar
Units
compatible
Result
common_shape
Effect
Combine equal-dimension real arrays
Types
scalar,vector,matrix
Declared shape
equal_shape_or_scalar
Expansion
scalar_expansion
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
compatible
Expression function
minimum
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_binary.minimum", operands])
Recorded result · call:array_binary.minimum

Download the example script (ZIP).

Example operands, preview

[
  "array_binary.minimum",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    },
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.5,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.25,
      0.25
    ]
  }
}

array_binary.maximum

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
left,right
Shape
equal_shape_or_scalar
Units
compatible
Result
common_shape
Effect
Combine equal-dimension real arrays
Types
scalar,vector,matrix
Declared shape
equal_shape_or_scalar
Expansion
scalar_expansion
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
compatible
Expression function
maximum
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_binary.maximum", operands])
Recorded result · call:array_binary.maximum

Download the example script (ZIP).

Example operands, preview

[
  "array_binary.maximum",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    },
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.5,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.5,
      0.75
    ]
  }
}

array_binary.hypot

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
left,right
Shape
equal_shape_or_scalar
Units
compatible
Result
common_shape
Effect
Combine equal-dimension real arrays
Types
scalar,vector,matrix
Declared shape
equal_shape_or_scalar
Expansion
scalar_expansion
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
compatible
Expression function
hypot
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_binary.hypot", operands])
Recorded result · call:array_binary.hypot

Download the example script (ZIP).

Example operands, preview

[
  "array_binary.hypot",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    },
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.5,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.5590169943749475,
      0.7905694150420949
    ]
  }
}

array_binary.multiply

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
left,right
Shape
equal_shape_or_scalar
Units
multiply
Result
common_shape
Effect
Multiply real arrays elementwise
Types
scalar,vector,matrix
Declared shape
equal_shape_or_scalar
Expansion
scalar_expansion
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
multiply
Expression function
multiply
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_binary.multiply", operands])
Recorded result · call:array_binary.multiply

Download the example script (ZIP).

Example operands, preview

[
  "array_binary.multiply",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    },
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.5,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.125,
      0.1875
    ]
  }
}

array_binary.divide

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
left,right
Shape
equal_shape_or_scalar
Units
divide
Result
common_shape
Effect
Divide real arrays elementwise
Types
scalar,vector,matrix
Declared shape
equal_shape_or_scalar
Expansion
scalar_expansion
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
divide
Expression function
divide
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_binary.divide", operands])
Recorded result · call:array_binary.divide

Download the example script (ZIP).

Example operands, preview

[
  "array_binary.divide",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    },
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.5,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.5,
      3.0
    ]
  }
}

array_binary.power

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
base,exponent
Shape
equal_shape_or_scalar
Units
power
Result
common_shape
Effect
Raise real arrays elementwise to a power
Types
scalar,vector,matrix
Declared shape
equal_shape_or_scalar
Expansion
scalar_expansion
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
power
Expression function
power
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_binary.power", operands])
Recorded result · call:array_binary.power

Download the example script (ZIP).

Example operands, preview

[
  "array_binary.power",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    },
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.5,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.5,
      0.9306048591020996
    ]
  }
}

array_binary.atan2

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
y,x
Shape
equal_shape_or_scalar
Units
compatible_to_dimensionless
Result
common_shape
Effect
Compute quadrant-aware phase angles
Types
scalar,vector,matrix
Declared shape
equal_shape_or_scalar
Expansion
scalar_expansion
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
compatible_to_dimensionless
Expression function
atan2
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_binary.atan2", operands])
Recorded result · call:array_binary.atan2

Download the example script (ZIP).

Example operands, preview

[
  "array_binary.atan2",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    },
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.5,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.4636476090008061,
      1.2490457723982544
    ]
  }
}

array_compare.equal

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
left,right
Shape
equal_shape_or_scalar
Units
compatible_to_dimensionless
Result
common_shape
Effect
Compare real arrays elementwise
Types
scalar,vector,matrix
Declared shape
equal_shape_or_scalar
Expansion
scalar_expansion
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
compatible_to_dimensionless
Expression function
equal
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_compare.equal", operands])
Recorded result · call:array_compare.equal

Download the example script (ZIP).

Example operands, preview

[
  "array_compare.equal",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    },
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.5,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  }
}

array_compare.not_equal

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
left,right
Shape
equal_shape_or_scalar
Units
compatible_to_dimensionless
Result
common_shape
Effect
Compare real arrays elementwise
Types
scalar,vector,matrix
Declared shape
equal_shape_or_scalar
Expansion
scalar_expansion
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
compatible_to_dimensionless
Expression function
not_equal
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_compare.not_equal", operands])
Recorded result · call:array_compare.not_equal

Download the example script (ZIP).

Example operands, preview

[
  "array_compare.not_equal",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    },
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.5,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0
    ]
  }
}

array_compare.less_than

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
left,right
Shape
equal_shape_or_scalar
Units
compatible_to_dimensionless
Result
common_shape
Effect
Compare real arrays elementwise
Types
scalar,vector,matrix
Declared shape
equal_shape_or_scalar
Expansion
scalar_expansion
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
compatible_to_dimensionless
Expression function
less_than
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_compare.less_than", operands])
Recorded result · call:array_compare.less_than

Download the example script (ZIP).

Example operands, preview

[
  "array_compare.less_than",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    },
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.5,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      0.0
    ]
  }
}

array_compare.less_equal

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
left,right
Shape
equal_shape_or_scalar
Units
compatible_to_dimensionless
Result
common_shape
Effect
Compare real arrays elementwise
Types
scalar,vector,matrix
Declared shape
equal_shape_or_scalar
Expansion
scalar_expansion
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
compatible_to_dimensionless
Expression function
less_equal
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_compare.less_equal", operands])
Recorded result · call:array_compare.less_equal

Download the example script (ZIP).

Example operands, preview

[
  "array_compare.less_equal",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    },
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.5,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      0.0
    ]
  }
}

array_compare.greater_than

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
left,right
Shape
equal_shape_or_scalar
Units
compatible_to_dimensionless
Result
common_shape
Effect
Compare real arrays elementwise
Types
scalar,vector,matrix
Declared shape
equal_shape_or_scalar
Expansion
scalar_expansion
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
compatible_to_dimensionless
Expression function
greater_than
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_compare.greater_than", operands])
Recorded result · call:array_compare.greater_than

Download the example script (ZIP).

Example operands, preview

[
  "array_compare.greater_than",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    },
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.5,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0
    ]
  }
}

array_compare.greater_equal

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
left,right
Shape
equal_shape_or_scalar
Units
compatible_to_dimensionless
Result
common_shape
Effect
Compare real arrays elementwise
Types
scalar,vector,matrix
Declared shape
equal_shape_or_scalar
Expansion
scalar_expansion
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
compatible_to_dimensionless
Expression function
greater_equal
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_compare.greater_equal", operands])
Recorded result · call:array_compare.greater_equal

Download the example script (ZIP).

Example operands, preview

[
  "array_compare.greater_equal",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.25,
        0.75
      ]
    },
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.5,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0
    ]
  }
}

array_mask.logical_not

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
mask
Shape
same_as_input
Units
dimensionless
Result
same_as_input
Effect
Invert a logical mask
Types
scalar,vector,matrix
Declared shape
same_as_input
Nonfinite values
reject_invalid_mask
Units rule
dimensionless
Expression function
logical_not
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_mask.logical_not", operands])
Recorded result · call:array_mask.logical_not

Download the example script (ZIP).

Example operands, preview

[
  "array_mask.logical_not",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.0,
        1.0
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      0.0
    ]
  }
}

array_mask.logical_and

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
left,right
Shape
equal_shape_or_scalar
Units
dimensionless
Result
common_shape
Effect
Combine logical masks
Types
scalar,vector,matrix
Declared shape
equal_shape_or_scalar
Expansion
scalar_expansion
Nonfinite values
reject_invalid_mask
Units rule
dimensionless
Expression function
logical_and
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_mask.logical_and", operands])
Recorded result · call:array_mask.logical_and

Download the example script (ZIP).

Example operands, preview

[
  "array_mask.logical_and",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.0,
        1.0
      ]
    },
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.0,
        1.0
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0
    ]
  }
}

array_mask.logical_or

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
left,right
Shape
equal_shape_or_scalar
Units
dimensionless
Result
common_shape
Effect
Combine logical masks
Types
scalar,vector,matrix
Declared shape
equal_shape_or_scalar
Expansion
scalar_expansion
Nonfinite values
reject_invalid_mask
Units rule
dimensionless
Expression function
logical_or
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_mask.logical_or", operands])
Recorded result · call:array_mask.logical_or

Download the example script (ZIP).

Example operands, preview

[
  "array_mask.logical_or",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.0,
        1.0
      ]
    },
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.0,
        1.0
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0
    ]
  }
}

array_mask.logical_xor

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
left,right
Shape
equal_shape_or_scalar
Units
dimensionless
Result
common_shape
Effect
Combine logical masks
Types
scalar,vector,matrix
Declared shape
equal_shape_or_scalar
Expansion
scalar_expansion
Nonfinite values
reject_invalid_mask
Units rule
dimensionless
Expression function
logical_xor
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_mask.logical_xor", operands])
Recorded result · call:array_mask.logical_xor

Download the example script (ZIP).

Example operands, preview

[
  "array_mask.logical_xor",
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.0,
        1.0
      ]
    },
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.0,
        1.0
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  }
}

array_reduce.sum

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
values
Shape
axis_reduction
Units
preserve
Result
axis_reduced
Effect
Reduce a real array along a declared axis
Types
scalar,vector,matrix
Declared shape
axis_reduction
Options
axis=0,1,2;nonfinite=error,omit
Nonfinite values
error,omit
Units rule
preserve
Expression function
sum
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_reduce.sum", operands])
Recorded result · call:array_reduce.sum

Download the example script (ZIP).

Example operands, preview

[
  "array_reduce.sum",
  [
    {
      "kind": "array",
      "shape": [
        2,
        2
      ],
      "real": [
        0.25,
        0.5,
        0.75,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": 1.75,
  "axis": 1.0,
  "requested_axis": 0.0,
  "input_shape": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      2.0,
      2.0
    ]
  },
  "action": "sum",
  "n_input": 4.0,
  "n_valid": 4.0
}

array_reduce.mean

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
values
Shape
axis_reduction
Units
preserve
Result
axis_reduced
Effect
Reduce a real array along a declared axis
Types
scalar,vector,matrix
Declared shape
axis_reduction
Options
axis=0,1,2;nonfinite=error,omit
Nonfinite values
error,omit
Units rule
preserve
Expression function
mean
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_reduce.mean", operands])
Recorded result · call:array_reduce.mean

Download the example script (ZIP).

Example operands, preview

[
  "array_reduce.mean",
  [
    {
      "kind": "array",
      "shape": [
        2,
        2
      ],
      "real": [
        0.25,
        0.5,
        0.75,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": 0.4375,
  "axis": 1.0,
  "requested_axis": 0.0,
  "input_shape": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      2.0,
      2.0
    ]
  },
  "action": "mean",
  "n_input": 4.0,
  "n_valid": 4.0
}

array_reduce.median

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
values
Shape
axis_reduction
Units
preserve
Result
axis_reduced
Effect
Reduce a real array along a declared axis
Types
scalar,vector,matrix
Declared shape
axis_reduction
Options
axis=0,1,2;nonfinite=error,omit
Nonfinite values
error,omit
Units rule
preserve
Expression function
median
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_reduce.median", operands])
Recorded result · call:array_reduce.median

Download the example script (ZIP).

Example operands, preview

[
  "array_reduce.median",
  [
    {
      "kind": "array",
      "shape": [
        2,
        2
      ],
      "real": [
        0.25,
        0.5,
        0.75,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": 0.375,
  "axis": 1.0,
  "requested_axis": 0.0,
  "input_shape": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      2.0,
      2.0
    ]
  },
  "action": "median",
  "n_input": 4.0,
  "n_valid": 4.0
}

array_reduce.std_population

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
values
Shape
axis_reduction
Units
preserve
Result
axis_reduced
Effect
Reduce a real array along a declared axis
Types
scalar,vector,matrix
Declared shape
axis_reduction
Options
axis=0,1,2;nonfinite=error,omit
Nonfinite values
error,omit
Units rule
preserve
Expression function
std_population
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_reduce.std_population", operands])
Recorded result · call:array_reduce.std_population

Download the example script (ZIP).

Example operands, preview

[
  "array_reduce.std_population",
  [
    {
      "kind": "array",
      "shape": [
        2,
        2
      ],
      "real": [
        0.25,
        0.5,
        0.75,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": 0.2072890493972125,
  "axis": 1.0,
  "requested_axis": 0.0,
  "input_shape": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      2.0,
      2.0
    ]
  },
  "action": "std_population",
  "n_input": 4.0,
  "n_valid": 4.0
}

array_reduce.rms

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
values
Shape
axis_reduction
Units
preserve
Result
axis_reduced
Effect
Reduce a real array along a declared axis
Types
scalar,vector,matrix
Declared shape
axis_reduction
Options
axis=0,1,2;nonfinite=error,omit
Nonfinite values
error,omit
Units rule
preserve
Expression function
rms
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_reduce.rms", operands])
Recorded result · call:array_reduce.rms

Download the example script (ZIP).

Example operands, preview

[
  "array_reduce.rms",
  [
    {
      "kind": "array",
      "shape": [
        2,
        2
      ],
      "real": [
        0.25,
        0.5,
        0.75,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": 0.4841229182759271,
  "axis": 1.0,
  "requested_axis": 0.0,
  "input_shape": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      2.0,
      2.0
    ]
  },
  "action": "rms",
  "n_input": 4.0,
  "n_valid": 4.0
}

array_reduce.minimum

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
values
Shape
axis_reduction
Units
preserve
Result
axis_reduced
Effect
Minimum along a declared axis
Types
scalar,vector,matrix
Declared shape
axis_reduction
Options
axis=0,1,2;nonfinite=error,omit
Nonfinite values
error,omit
Units rule
preserve
Expression function
min
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_reduce.minimum", operands])
Recorded result · call:array_reduce.minimum

Download the example script (ZIP).

Example operands, preview

[
  "array_reduce.minimum",
  [
    {
      "kind": "array",
      "shape": [
        2,
        2
      ],
      "real": [
        0.25,
        0.5,
        0.75,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": 0.25,
  "axis": 1.0,
  "requested_axis": 0.0,
  "input_shape": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      2.0,
      2.0
    ]
  },
  "action": "minimum",
  "n_input": 4.0,
  "n_valid": 4.0
}

array_reduce.maximum

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
values
Shape
axis_reduction
Units
preserve
Result
axis_reduced
Effect
Maximum along a declared axis
Types
scalar,vector,matrix
Declared shape
axis_reduction
Options
axis=0,1,2;nonfinite=error,omit
Nonfinite values
error,omit
Units rule
preserve
Expression function
max
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_reduce.maximum", operands])
Recorded result · call:array_reduce.maximum

Download the example script (ZIP).

Example operands, preview

[
  "array_reduce.maximum",
  [
    {
      "kind": "array",
      "shape": [
        2,
        2
      ],
      "real": [
        0.25,
        0.5,
        0.75,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": 0.75,
  "axis": 1.0,
  "requested_axis": 0.0,
  "input_shape": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      2.0,
      2.0
    ]
  },
  "action": "maximum",
  "n_input": 4.0,
  "n_valid": 4.0
}

array_reduce.std_sample

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
values
Shape
axis_reduction
Units
preserve
Result
axis_reduced
Effect
Sample standard deviation
Types
scalar,vector,matrix
Declared shape
axis_reduction
Options
axis=0,1,2;nonfinite=error,omit
Nonfinite values
error,omit
Units rule
preserve
Expression function
std
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_reduce.std_sample", operands])
Recorded result · call:array_reduce.std_sample

Download the example script (ZIP).

Example operands, preview

[
  "array_reduce.std_sample",
  [
    {
      "kind": "array",
      "shape": [
        2,
        2
      ],
      "real": [
        0.25,
        0.5,
        0.75,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": 0.23935677693908453,
  "axis": 1.0,
  "requested_axis": 0.0,
  "input_shape": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      2.0,
      2.0
    ]
  },
  "action": "std_sample",
  "n_input": 4.0,
  "n_valid": 4.0
}

array_reduce.variance_population

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
values
Shape
axis_reduction
Units
square
Result
axis_reduced
Effect
Reduce variance along an axis
Types
scalar,vector,matrix
Declared shape
axis_reduction
Options
axis=0,1,2;nonfinite=error,omit
Nonfinite values
error,omit
Units rule
square
Expression function
variance_population
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_reduce.variance_population", operands])
Recorded result · call:array_reduce.variance_population

Download the example script (ZIP).

Example operands, preview

[
  "array_reduce.variance_population",
  [
    {
      "kind": "array",
      "shape": [
        2,
        2
      ],
      "real": [
        0.25,
        0.5,
        0.75,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": 0.04296875,
  "axis": 1.0,
  "requested_axis": 0.0,
  "input_shape": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      2.0,
      2.0
    ]
  },
  "action": "variance_population",
  "n_input": 4.0,
  "n_valid": 4.0
}

array_reduce.variance_sample

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
values
Shape
axis_reduction
Units
square
Result
axis_reduced
Effect
Reduce variance along an axis
Types
scalar,vector,matrix
Declared shape
axis_reduction
Options
axis=0,1,2;nonfinite=error,omit
Nonfinite values
error,omit
Units rule
square
Expression function
variance_sample
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_reduce.variance_sample", operands])
Recorded result · call:array_reduce.variance_sample

Download the example script (ZIP).

Example operands, preview

[
  "array_reduce.variance_sample",
  [
    {
      "kind": "array",
      "shape": [
        2,
        2
      ],
      "real": [
        0.25,
        0.5,
        0.75,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": 0.057291666666666664,
  "axis": 1.0,
  "requested_axis": 0.0,
  "input_shape": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      2.0,
      2.0
    ]
  },
  "action": "variance_sample",
  "n_input": 4.0,
  "n_valid": 4.0
}

array_reduce.quantile

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
values,probability
Shape
axis_reduction
Units
preserve
Result
axis_reduced
Effect
Type-7 quantile at the declared probability
Types
scalar,vector,matrix
Declared shape
axis_reduction
Options
axis=0,1,2;nonfinite=error,omit;probability=0..1
Nonfinite values
error,omit
Units rule
preserve
Expression function
quantile
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_reduce.quantile", operands])
Recorded result · call:array_reduce.quantile

Download the example script (ZIP).

Example operands, preview

[
  "array_reduce.quantile",
  [
    {
      "kind": "array",
      "shape": [
        2,
        2
      ],
      "real": [
        0.25,
        0.5,
        0.75,
        0.25
      ]
    },
    {
      "kind": "array",
      "shape": [
        1,
        1
      ],
      "real": [
        0.5
      ]
    }
  ]
]

Result, preview

{
  "values": 0.375,
  "axis": 1.0,
  "requested_axis": 0.0,
  "input_shape": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      2.0,
      2.0
    ]
  },
  "action": "quantile",
  "n_input": 4.0,
  "n_valid": 4.0,
  "probability": 0.5,
  "quantile_definition": "Hyndman-Fan type 7 linear interpolation"
}

array_reduce.product

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
values
Shape
axis_reduction
Units
power_by_count
Result
axis_reduced
Effect
Multiply values along an axis
Types
scalar,vector,matrix
Declared shape
axis_reduction
Options
axis=0,1,2;nonfinite=error,omit
Nonfinite values
error,omit
Units rule
power_by_count
Expression function
product
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_reduce.product", operands])
Recorded result · call:array_reduce.product

Download the example script (ZIP).

Example operands, preview

[
  "array_reduce.product",
  [
    {
      "kind": "array",
      "shape": [
        2,
        2
      ],
      "real": [
        0.25,
        0.5,
        0.75,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": 0.0234375,
  "axis": 1.0,
  "requested_axis": 0.0,
  "input_shape": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      2.0,
      2.0
    ]
  },
  "action": "product",
  "n_input": 4.0,
  "n_valid": 4.0
}

array_reduce.argmin

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
values
Shape
axis_reduction
Units
dimensionless_output
Result
axis_reduced
Effect
Count or identify array values along an axis
Types
scalar,vector,matrix
Declared shape
axis_reduction
Options
axis=0,1,2;nonfinite=error,omit
Nonfinite values
operation_specific
Units rule
dimensionless_output
Expression function
argmin
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_reduce.argmin", operands])
Recorded result · call:array_reduce.argmin

Download the example script (ZIP).

Example operands, preview

[
  "array_reduce.argmin",
  [
    {
      "kind": "array",
      "shape": [
        2,
        2
      ],
      "real": [
        0.25,
        0.5,
        0.75,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": 1.0,
  "axis": 1.0,
  "requested_axis": 0.0,
  "input_shape": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      2.0,
      2.0
    ]
  },
  "action": "argmin",
  "n_input": 4.0,
  "n_valid": 4.0
}

array_reduce.argmax

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
values
Shape
axis_reduction
Units
dimensionless_output
Result
axis_reduced
Effect
Count or identify array values along an axis
Types
scalar,vector,matrix
Declared shape
axis_reduction
Options
axis=0,1,2;nonfinite=error,omit
Nonfinite values
operation_specific
Units rule
dimensionless_output
Expression function
argmax
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_reduce.argmax", operands])
Recorded result · call:array_reduce.argmax

Download the example script (ZIP).

Example operands, preview

[
  "array_reduce.argmax",
  [
    {
      "kind": "array",
      "shape": [
        2,
        2
      ],
      "real": [
        0.25,
        0.5,
        0.75,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": 3.0,
  "axis": 1.0,
  "requested_axis": 0.0,
  "input_shape": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      2.0,
      2.0
    ]
  },
  "action": "argmax",
  "n_input": 4.0,
  "n_valid": 4.0
}

array_reduce.count

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
values
Shape
axis_reduction
Units
dimensionless_output
Result
axis_reduced
Effect
Count or identify array values along an axis
Types
scalar,vector,matrix
Declared shape
axis_reduction
Options
axis=0,1,2;nonfinite=error,omit
Nonfinite values
operation_specific
Units rule
dimensionless_output
Expression function
count
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_reduce.count", operands])
Recorded result · call:array_reduce.count

Download the example script (ZIP).

Example operands, preview

[
  "array_reduce.count",
  [
    {
      "kind": "array",
      "shape": [
        2,
        2
      ],
      "real": [
        0.25,
        0.5,
        0.75,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": 4.0,
  "axis": 1.0,
  "requested_axis": 0.0,
  "input_shape": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      2.0,
      2.0
    ]
  },
  "action": "count",
  "n_input": 4.0,
  "n_valid": 4.0
}

array_reduce.valid_count

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
values
Shape
axis_reduction
Units
dimensionless_output
Result
axis_reduced
Effect
Count or identify array values along an axis
Types
scalar,vector,matrix
Declared shape
axis_reduction
Options
axis=0,1,2;nonfinite=error,omit
Nonfinite values
operation_specific
Units rule
dimensionless_output
Expression function
valid_count
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_reduce.valid_count", operands])
Recorded result · call:array_reduce.valid_count

Download the example script (ZIP).

Example operands, preview

[
  "array_reduce.valid_count",
  [
    {
      "kind": "array",
      "shape": [
        2,
        2
      ],
      "real": [
        0.25,
        0.5,
        0.75,
        0.25
      ]
    }
  ]
]

Result, preview

{
  "values": 4.0,
  "axis": 1.0,
  "requested_axis": 0.0,
  "input_shape": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      2.0,
      2.0
    ]
  },
  "action": "valid_count",
  "n_input": 4.0,
  "n_valid": 4.0
}

array_reduce.count_true

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
values
Shape
axis_reduction
Units
dimensionless_output
Result
axis_reduced
Effect
Count or identify array values along an axis
Types
scalar,vector,matrix
Declared shape
axis_reduction
Options
axis=0,1,2;nonfinite=error,omit
Nonfinite values
operation_specific
Units rule
dimensionless_output
Expression function
count_true
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_reduce.count_true", operands])
Recorded result · call:array_reduce.count_true

Download the example script (ZIP).

Example operands, preview

[
  "array_reduce.count_true",
  [
    {
      "kind": "array",
      "shape": [
        3,
        1
      ],
      "real": [
        0.0,
        1.0,
        1.0
      ]
    }
  ]
]

Result, preview

{
  "values": 2.0,
  "axis": 1.0,
  "requested_axis": 0.0,
  "input_shape": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      3.0,
      1.0
    ]
  },
  "action": "count_true",
  "n_input": 3.0,
  "n_valid": 3.0
}
Negative test or attempted call · call:array_reduce.count_true

Download the example script (ZIP).

Example operands, preview

[
  "array_reduce.count_true",
  [
    {
      "kind": "array",
      "shape": [
        2,
        2
      ],
      "real": [
        0.25,
        0.5,
        0.75,
        0.25
      ]
    }
  ]
]

Result, preview

"GXTXT:ScriptBridge:RemoteError: NUMERIC_API_v1/callOperation: mask values must be logical 0 or 1"

array_reduce.any

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
values
Shape
axis_reduction
Units
dimensionless_output
Result
axis_reduced
Effect
Count or identify array values along an axis
Types
scalar,vector,matrix
Declared shape
axis_reduction
Options
axis=0,1,2;nonfinite=error,omit
Nonfinite values
operation_specific
Units rule
dimensionless_output
Expression function
any
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_reduce.any", operands])
Recorded result · call:array_reduce.any

Download the example script (ZIP).

Example operands, preview

[
  "array_reduce.any",
  [
    {
      "kind": "array",
      "shape": [
        3,
        1
      ],
      "real": [
        0.0,
        1.0,
        1.0
      ]
    }
  ]
]

Result, preview

{
  "values": true,
  "axis": 1.0,
  "requested_axis": 0.0,
  "input_shape": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      3.0,
      1.0
    ]
  },
  "action": "any",
  "n_input": 3.0,
  "n_valid": 3.0
}
Negative test or attempted call · call:array_reduce.any

Download the example script (ZIP).

Example operands, preview

[
  "array_reduce.any",
  [
    {
      "kind": "array",
      "shape": [
        2,
        2
      ],
      "real": [
        0.25,
        0.5,
        0.75,
        0.25
      ]
    }
  ]
]

Result, preview

"GXTXT:ScriptBridge:RemoteError: NUMERIC_API_v1/callOperation: mask values must be logical 0 or 1"

array_reduce.all

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
values
Shape
axis_reduction
Units
dimensionless_output
Result
axis_reduced
Effect
Count or identify array values along an axis
Types
scalar,vector,matrix
Declared shape
axis_reduction
Options
axis=0,1,2;nonfinite=error,omit
Nonfinite values
operation_specific
Units rule
dimensionless_output
Expression function
all
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["array_reduce.all", operands])
Recorded result · call:array_reduce.all

Download the example script (ZIP).

Example operands, preview

[
  "array_reduce.all",
  [
    {
      "kind": "array",
      "shape": [
        3,
        1
      ],
      "real": [
        0.0,
        1.0,
        1.0
      ]
    }
  ]
]

Result, preview

{
  "values": false,
  "axis": 1.0,
  "requested_axis": 0.0,
  "input_shape": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      3.0,
      1.0
    ]
  },
  "action": "all",
  "n_input": 3.0,
  "n_valid": 3.0
}
Negative test or attempted call · call:array_reduce.all

Download the example script (ZIP).

Example operands, preview

[
  "array_reduce.all",
  [
    {
      "kind": "array",
      "shape": [
        2,
        2
      ],
      "real": [
        0.25,
        0.5,
        0.75,
        0.25
      ]
    }
  ]
]

Result, preview

"GXTXT:ScriptBridge:RemoteError: NUMERIC_API_v1/callOperation: mask values must be logical 0 or 1"

vector_normalize

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
values
Shape
vector
Units
dimensionless_output
Result
vector
Effect
Normalize a numeric vector
Types
vector
Declared shape
vector
Options
method=unit_vector,mean_center_unit_vector
Nonfinite values
error,omit
Units rule
dimensionless_output
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["vector_normalize", operands])
Recorded result · call:vector_normalize

Download the example script (ZIP).

Example operands, preview

[
  "vector_normalize",
  [
    {
      "kind": "array",
      "shape": [
        4,
        1
      ],
      "real": [
        1.0,
        2.0,
        3.0,
        4.0
      ]
    }
  ]
]

Result, preview

{
  "values": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      0.18257418583505536,
      0.3651483716701107,
      0.5477225575051661,
      0.7302967433402214
    ]
  },
  "norm": 5.477225575051661,
  "center": 0.0,
  "n": 4.0,
  "method": "unit_vector"
}

vector_similarity

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
left,right
Shape
same_length
Units
dimensionless_output
Result
scalar
Effect
Compare two numeric vectors
Types
vector
Declared shape
same_length
Options
method=cosine,pearson,angular_similarity,normalized_residual
Nonfinite values
error,omit
Units rule
dimensionless_output
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["vector_similarity", operands])
Recorded result · call:vector_similarity

Download the example script (ZIP).

Example operands, preview

[
  "vector_similarity",
  [
    {
      "kind": "array",
      "shape": [
        4,
        1
      ],
      "real": [
        1.0,
        2.0,
        3.0,
        4.0
      ]
    },
    {
      "kind": "array",
      "shape": [
        4,
        1
      ],
      "real": [
        1.0,
        2.0,
        3.0,
        4.0
      ]
    }
  ]
]

Result, preview

{
  "score": 1.0,
  "cosine": 1.0,
  "n": 4.0,
  "method": "cosine"
}

comparison_curves

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
mode,x1,y1,x2,y2,options
Shape
bounded_curves
Units
caller_owned
Result
bounded_curve
Effect
Prepare raw or explicit display-only scientific comparison without extrapolation
Types
text,vector,vector,vector,vector,struct
Declared shape
bounded_curves
Options
normalization=none,minmax;offset=finite_number;denominator_floor=nonnegative_number
Nonfinite values
gaps
Units rule
caller_owned
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["comparison_curves", operands])
Recorded result · call:comparison_curves

Download the example script (ZIP).

Example operands, preview

[
  "comparison_curves",
  [
    {
      "kind": "text",
      "value": "difference"
    },
    {
      "kind": "array",
      "shape": [
        6,
        1
      ],
      "real": [
        0.0,
        1.0,
        2.0,
        3.0,
        4.0,
        5.0
      ]
    },
    {
      "kind": "array",
      "shape": [
        6,
        1
      ],
      "real": [
        1.0,
        3.0,
        5.0,
        7.0,
        9.0,
        11.0
      ]
    },
    {
      "kind": "array",
      "shape": [
        6,
        1
      ],
      "real": [
        0.0,
        1.0,
        2.0,
        3.0,
        4.0,
        5.0
      ]
    },
    {
      "kind": "array",
      "shape": [
        6,
        1
      ],
      "real": [
        2.0,
        4.0,
        6.0,
        8.0,
        10.0,
        12.0
      ]
    }
  ]
]

Result, preview

{
  "x": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      2.0,
      3.0,
      4.0,
      5.0
    ]
  },
  "values": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      -1.0,
      -1.0,
      -1.0,
      -1.0,
      -1.0,
      -1.0
    ]
  },
  "invalid_count": 0.0,
  "domain_min": 0.0,
  "domain_max": 5.0,
  "method": "linear_intersection_first_source_grid",
  "normalization": "none",
  "offset": 0.0,
  "denominator_floor": 0.0,
  "canonical_values_modified": false
}