Foundation: famiglie e modelli

Consulta le famiglie Foundation e i relativi selettori per riconoscere le operazioni, le firme e i percorsi disponibili da Python.

Calcolo, modelli, statistiche e Dataset con Python

Dati tipati, funzioni e file

Scomponi il selettore in family e action. Passa gli operandi A, B e C anche se ne usi uno solo, sostituendo le posizioni inutilizzate con {'kind':'empty'}. Per un modello dichiarato compatibile usa callModelOperation con il nome foundation.family.action. Un handle callback vale nel Job che lo ha registrato. I percorsi file che richiedono autorità host sono soggetti a una guardia del servizio. Nel runtime provato il clustering k-means richiede il pacchetto Octave statistics e la variazione vincolata dichiarata richiede optim. Entrambi i pacchetti erano assenti. Le operazioni su mesh con dati numerici e i rami Python con callable usano i percorsi documentati nei singoli esempi.

Riferimento delle operazioni

Vai a un’operazione

family.align

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
x,y,target
Forma
dati scientifici allineati
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["family", "align", a, b, c])
Risultato registrato · family.align

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      2.0,
      4.0,
      0.5,
      1.5
    ]
  },
  "value_imaginary": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      0.0
    ]
  },
  "x": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.5,
      1.5
    ]
  }
}

family.surface

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
x,y,target
Forma
dati scientifici allineati
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["family", "surface", a, b, c])
Risultato registrato · family.surface

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      2.0,
      4.0,
      0.5,
      1.5
    ]
  },
  "value_imaginary": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      0.0
    ]
  },
  "x": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.5,
      1.5
    ]
  }
}

family.derivative

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
x,y,target
Forma
dati scientifici allineati
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["family", "derivative", a, b, c])
Risultato registrato · family.derivative

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      2.0,
      2.0,
      1.0,
      1.0
    ]
  },
  "value_imaginary": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      0.0
    ]
  },
  "x": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.5,
      1.5
    ]
  }
}

family.extrema

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
x,y,target
Forma
dati scientifici allineati
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["family", "extrema", a, b, c])
Risultato registrato · family.extrema

Scarica lo script dell’esempio.

Esito, anteprima

{
  "minimum_magnitude": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      2.0,
      0.5
    ]
  },
  "maximum_magnitude": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      4.0,
      1.5
    ]
  },
  "minimum_x": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.5,
      0.5
    ]
  },
  "maximum_x": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.5,
      1.5
    ]
  }
}

family.envelope

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
x,y,target
Forma
dati scientifici allineati
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["family", "envelope", a, b, c])
Risultato registrato · family.envelope

Scarica lo script dell’esempio.

Esito, anteprima

{
  "minimum_magnitude": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.5,
      1.5
    ]
  },
  "maximum_magnitude": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      2.0,
      4.0
    ]
  },
  "x": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.5,
      1.5
    ]
  }
}

tensor.transpose

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
tensor,other,unused
Forma
matrice o tensore
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["tensor", "transpose", a, b, c])
Risultato registrato · tensor.transpose

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      7.0
    ]
  },
  "value_imaginary": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      0.0
    ]
  }
}

tensor.conjugate_transpose

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
tensor,other,unused
Forma
matrice o tensore
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["tensor", "conjugate_transpose", a, b, c])
Risultato registrato · tensor.conjugate_transpose

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.0,
      4.0,
      5.0
    ]
  },
  "value_imaginary": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      -2.0,
      -0.0,
      -0.0,
      2.0
    ]
  }
}

tensor.trace

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
tensor,other,unused
Forma
matrice o tensore
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["tensor", "trace", a, b, c])
Risultato registrato · tensor.trace

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": 8.0,
  "value_imaginary": 0.0
}

tensor.symmetric_part

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
tensor,other,unused
Forma
matrice o tensore
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["tensor", "symmetric_part", a, b, c])
Risultato registrato · tensor.symmetric_part

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.5,
      2.5,
      7.0
    ]
  },
  "value_imaginary": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      0.0
    ]
  }
}

tensor.antisymmetric_part

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
tensor,other,unused
Forma
matrice o tensore
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["tensor", "antisymmetric_part", a, b, c])
Risultato registrato · tensor.antisymmetric_part

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.5,
      -0.5,
      0.0
    ]
  },
  "value_imaginary": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      0.0
    ]
  }
}

tensor.contract

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
tensor,other,unused
Forma
matrice o tensore
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["tensor", "contract", a, b, c])
Risultato registrato · tensor.contract

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": 16.0,
  "value_imaginary": 0.0
}

tensor.apply

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
tensor,other,unused
Forma
matrice o tensore
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["tensor", "apply", a, b, c])
Risultato registrato · tensor.apply

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      5.0,
      17.0
    ]
  },
  "value_imaginary": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  }
}

tensor.outer

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
tensor,other,unused
Forma
matrice o tensore
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["tensor", "outer", a, b, c])
Risultato registrato · tensor.outer

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      3,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      2.0,
      0.0,
      3.0,
      6.0,
      0.0,
      5.0,
      10.0
    ]
  },
  "value_imaginary": {
    "shape": [
      3,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
    ]
  }
}

scattered.interpolate

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
points,values,query
Forma
nuvola di punti e punti di interrogazione
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["scattered", "interpolate", a, b, c])
Risultato registrato · scattered.interpolate

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": 1.5000000000000002,
  "value_imaginary": 0.0,
  "outside": false
}

vector.dot

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
vector,other,third
Forma
vettori numerici
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["vector", "dot", a, b, c])
Risultato registrato · vector.dot

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": 0.0,
  "value_imaginary": 0.0
}

vector.cross

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
vector,other,third
Forma
vettori numerici
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["vector", "cross", a, b, c])
Risultato registrato · vector.cross

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      1.0
    ]
  },
  "value_imaginary": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0
    ]
  }
}

vector.norm

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
vector,other,third
Forma
vettori numerici
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["vector", "norm", a, b, c])
Risultato registrato · vector.norm

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": 1.0,
  "value_imaginary": 0.0
}

vector.normalize

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
vector,other,third
Forma
vettori numerici
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["vector", "normalize", a, b, c])
Risultato registrato · vector.normalize

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      0.0,
      0.0
    ]
  },
  "value_imaginary": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0
    ]
  }
}

vector.outer

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
vector,other,third
Forma
vettori numerici
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["vector", "outer", a, b, c])
Risultato registrato · vector.outer

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      3,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      1.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
    ]
  },
  "value_imaginary": {
    "shape": [
      3,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
    ]
  }
}

vector.projection

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
vector,other,third
Forma
vettori numerici
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["vector", "projection", a, b, c])
Risultato registrato · vector.projection

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0
    ]
  },
  "value_imaginary": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0
    ]
  }
}

vector.angle

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
vector,other,third
Forma
vettori numerici
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["vector", "angle", a, b, c])
Risultato registrato · vector.angle

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": 1.5707963267948966,
  "value_imaginary": 0.0
}

vector.triple

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
vector,other,third
Forma
vettori numerici
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["vector", "triple", a, b, c])
Risultato registrato · vector.triple

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": 1.0,
  "value_imaginary": 0.0
}

vector.contract

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
vector,other,third
Forma
vettori numerici
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["vector", "contract", a, b, c])
Risultato registrato · vector.contract

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": 0.0,
  "value_imaginary": 0.0
}

grid.interpolate

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
axes,values,query
Forma
punti di griglia e query regolari
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["grid", "interpolate", a, b, c])
Risultato registrato · grid.interpolate:projected

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": 1.5
}

grid.sample

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
axes,values,query
Forma
punti di griglia e query regolari
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["grid", "sample", a, b, c])
Risultato registrato · grid.sample

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.5,
      4.5
    ]
  },
  "value_imaginary": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  },
  "outside": {
    "shape": [
      2,
      1
    ],
    "dtype": "bool",
    "values": [
      false,
      false
    ]
  }
}

grid.compatible

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
axes,values,query
Forma
punti di griglia e query regolari
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["grid", "compatible", a, b, c])
Risultato registrato · grid.compatible

Scarica lo script dell’esempio.

Esito, anteprima

{
  "compatible": true
}

grid.resample

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
axes,values,query
Forma
punti di griglia e query regolari
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["grid", "resample", a, b, c])
Risultato registrato · grid.resample

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      3,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      2.0,
      2.0,
      3.0,
      4.0,
      4.0,
      5.0,
      6.0
    ]
  },
  "value_imaginary": {
    "shape": [
      3,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
    ]
  }
}

calculus.integrate2

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
axes,values,extra
Forma
array numerici o callback
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["calculus", "integrate2", a, b, c])
Risultato registrato · calculus.integrate2

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": 12.0,
  "value_imaginary": 0.0
}

calculus.integrate3

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
axes,values,extra
Forma
array numerici o callback
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["calculus", "integrate3", a, b, c])
Risultato registrato · calculus.integrate3

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": 8.0,
  "value_imaginary": 0.0
}

calculus.weighted_integral

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
axes,values,extra
Forma
array numerici o callback
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["calculus", "weighted_integral", a, b, c])
Risultato registrato · calculus.weighted_integral

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": 12.0,
  "value_imaginary": 0.0
}

calculus.gradient_grid

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
axes,values,extra
Forma
array numerici o callback
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["calculus", "gradient_grid", a, b, c])
Risultato registrato · calculus.gradient_grid

Scarica lo script dell’esempio.

Esito, anteprima

{
  "axis1_real": {
    "shape": [
      3,
      3
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0
    ]
  },
  "axis1_imaginary": {
    "shape": [
      3,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
    ]
  },
  "axis2_real": {
    "shape": [
      3,
      3
    ],
    "dtype": "float64",
    "values": [
      2.0,
      2.0,
      2.0,
      2.0,
      2.0,
      2.0,
      2.0,
      2.0,
      2.0
    ]
  },
  "axis2_imaginary": {
    "shape": [
      3,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
    ]
  }
}

calculus.line_integral

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
axes,values,extra
Forma
array numerici o callback
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["calculus", "line_integral", a, b, c])
Risultato registrato · calculus.line_integral

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": 0.5,
  "value_imaginary": 0.0
}

calculus.line_scalar_integral

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
axes,values,extra
Forma
array numerici o callback
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["calculus", "line_scalar_integral", a, b, c])
Risultato registrato · calculus.line_scalar_integral

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": 7.656854249492381,
  "value_imaginary": 0.0
}

calculus.surface_flux

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
axes,values,extra
Forma
array numerici o callback
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["calculus", "surface_flux", a, b, c])
Risultato registrato · calculus.surface_flux

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": 1.0,
  "value_imaginary": 0.0
}

calculus.surface_integral

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
axes,values,extra
Forma
array numerici o callback
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["calculus", "surface_integral", a, b, c])
Risultato registrato · calculus.surface_integral

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": 1.0,
  "value_imaginary": 0.0
}

calculus.gradient

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
axes,values,extra
Forma
array numerici o callback
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["calculus", "gradient", a, b, c])
Risultato registrato · calculus.gradient

Scarica lo script dell’esempio.

Esito, anteprima

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

calculus.jacobian

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
axes,values,extra
Forma
array numerici o callback
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["calculus", "jacobian", a, b, c])
Risultato registrato · calculus.jacobian

Scarica lo script dell’esempio.

Esito, anteprima

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

calculus.hessian

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
axes,values,extra
Forma
array numerici o callback
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["calculus", "hessian", a, b, c])
Risultato registrato · calculus.hessian

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      2.0,
      0.0,
      0.0,
      2.0
    ]
  },
  "value_imaginary": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      0.0
    ]
  }
}

calculus.directional

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
axes,values,extra
Forma
array numerici o callback
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["calculus", "directional", a, b, c])
Risultato registrato · calculus.directional

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": 1.0,
  "value_imaginary": 0.0
}

special.erf

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
value,parameter,unused
Forma
scalare o array numerico
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["special", "erf", a, b, c])
Risultato registrato · special.erf

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.8427007929497149,
      0.9953222650189527
    ]
  },
  "value_imaginary": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  }
}

special.erfc

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
value,parameter,unused
Forma
scalare o array numerico
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["special", "erfc", a, b, c])
Risultato registrato · special.erfc

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.15729920705028513,
      0.004677734981047265
    ]
  },
  "value_imaginary": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  }
}

special.gamma

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
value,parameter,unused
Forma
scalare o array numerico
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["special", "gamma", a, b, c])
Risultato registrato · special.gamma

Scarica lo script dell’esempio.

Esito, anteprima

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

special.log_gamma

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
value,parameter,unused
Forma
scalare o array numerico
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["special", "log_gamma", a, b, c])
Risultato registrato · special.log_gamma

Scarica lo script dell’esempio.

Esito, anteprima

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

special.beta

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
value,parameter,unused
Forma
scalare o array numerico
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["special", "beta", a, b, c])
Risultato registrato · special.beta

Scarica lo script dell’esempio.

Esito, anteprima

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

special.incomplete_gamma

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
value,parameter,unused
Forma
scalare o array numerico
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["special", "incomplete_gamma", a, b, c])
Risultato registrato · special.incomplete_gamma

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.6321205588285577,
      0.8646647167633873
    ]
  },
  "value_imaginary": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  }
}

special.incomplete_beta

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
value,parameter,unused
Forma
scalare o array numerico
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["special", "incomplete_beta", a, b, c])
Risultato registrato · special.incomplete_beta

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.4375,
      0.75
    ]
  },
  "value_imaginary": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  }
}

special.bessel_j

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
value,parameter,unused
Forma
scalare o array numerico
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["special", "bessel_j", a, b, c])
Risultato registrato · special.bessel_j

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.44005058574493355,
      0.5767248077568736
    ]
  },
  "value_imaginary": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  }
}

special.bessel_y

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
value,parameter,unused
Forma
scalare o array numerico
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["special", "bessel_y", a, b, c])
Risultato registrato · special.bessel_y

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.7812128213002889,
      -0.1070324315409375
    ]
  },
  "value_imaginary": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  }
}

special.bessel_i

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
value,parameter,unused
Forma
scalare o array numerico
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["special", "bessel_i", a, b, c])
Risultato registrato · special.bessel_i

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.565159103992485,
      1.5906368546373288
    ]
  },
  "value_imaginary": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  }
}

special.bessel_k

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
value,parameter,unused
Forma
scalare o array numerico
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["special", "bessel_k", a, b, c])
Risultato registrato · special.bessel_k

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.6019072301972346,
      0.13986588181652246
    ]
  },
  "value_imaginary": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  }
}

special.spherical_bessel_j

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
value,parameter,unused
Forma
scalare o array numerico
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["special", "spherical_bessel_j", a, b, c])
Risultato registrato · special.spherical_bessel_j

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.3011686789397571,
      0.43539777497999194
    ]
  },
  "value_imaginary": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  }
}

special.spherical_bessel_y

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
value,parameter,unused
Forma
scalare o array numerico
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["special", "spherical_bessel_y", a, b, c])
Risultato registrato · special.spherical_bessel_y

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      -1.3817732906760358,
      -0.3506120042760551
    ]
  },
  "value_imaginary": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  }
}

special.airy

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
value,parameter,unused
Forma
scalare o array numerico
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["special", "airy", a, b, c])
Risultato registrato · special.airy

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.13529241631288147,
      0.03492413042327323
    ]
  },
  "value_imaginary": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  }
}

special.exponential_integral

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
value,parameter,unused
Forma
scalare o array numerico
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["special", "exponential_integral", a, b, c])
Risultato registrato · special.exponential_integral

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.2193839343955205,
      0.048900510708061104
    ]
  },
  "value_imaginary": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  }
}

special.sinc

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
value,parameter,unused
Forma
scalare o array numerico
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["special", "sinc", a, b, c])
Risultato registrato · special.sinc

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      3.8981718325193755e-17,
      -3.8981718325193755e-17
    ]
  },
  "value_imaginary": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  }
}

geometry.plane_frame

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "plane_frame", a, b, c])
Risultato registrato · geometry.plane_frame

Scarica lo script dell’esempio.

Esito, anteprima

{
  "origin": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0
    ]
  },
  "normal": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      1.0
    ]
  },
  "u_axis": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      1.0,
      0.0,
      0.0
    ]
  },
  "v_axis": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      0.0
    ]
  }
}

geometry.plane_three_points

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "plane_three_points", a, b, c])
Risultato registrato · geometry.plane_three_points

Scarica lo script dell’esempio.

Esito, anteprima

{
  "origin": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0
    ]
  },
  "normal": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      1.0
    ]
  },
  "u_axis": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      1.0,
      0.0,
      0.0
    ]
  },
  "v_axis": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      0.0
    ]
  }
}

geometry.centroid

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "centroid", a, b, c])
Risultato registrato · geometry.centroid

Scarica lo script dell’esempio.

Esito, anteprima

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

geometry.plane_offset

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "plane_offset", a, b, c])
Risultato registrato · geometry.plane_offset

Scarica lo script dell’esempio.

Esito, anteprima

{
  "origin": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.5
    ]
  },
  "normal": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      1.0
    ]
  },
  "u_axis": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      1.0,
      0.0,
      0.0
    ]
  },
  "v_axis": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      0.0
    ]
  }
}

geometry.plane_flip

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "plane_flip", a, b, c])
Risultato registrato · geometry.plane_flip

Scarica lo script dell’esempio.

Esito, anteprima

{
  "origin": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0
    ]
  },
  "normal": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      -0.0,
      -0.0,
      -1.0
    ]
  },
  "u_axis": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      1.0,
      0.0,
      0.0
    ]
  },
  "v_axis": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      -1.0,
      0.0
    ]
  }
}

geometry.plane_orient

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "plane_orient", a, b, c])
Risultato registrato · geometry.plane_orient

Scarica lo script dell’esempio.

Esito, anteprima

{
  "origin": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0
    ]
  },
  "normal": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      0.8775825618903728,
      0.0,
      0.479425538604203
    ]
  },
  "u_axis": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      -0.0,
      1.0,
      0.0
    ]
  },
  "v_axis": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      -0.479425538604203,
      -0.0,
      0.8775825618903728
    ]
  }
}

geometry.trajectory_tangent

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "trajectory_tangent", a, b, c])
Risultato registrato · geometry.trajectory_tangent

Scarica lo script dell’esempio.

Esito, anteprima

{
  "point": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      1.0,
      0.0,
      0.0
    ]
  },
  "tangent": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      0.0
    ]
  },
  "source_row": 2.0
}

geometry.plane_containing_tangent

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "plane_containing_tangent", a, b, c])
Risultato registrato · geometry.plane_containing_tangent

Scarica lo script dell’esempio.

Esito, anteprima

{
  "origin": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0
    ]
  },
  "normal": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      -0.9553364891256061,
      -0.2955202066613396
    ]
  },
  "u_axis": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      1.0,
      0.0,
      0.0
    ]
  },
  "v_axis": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      -0.2955202066613396,
      0.9553364891256061
    ]
  }
}

geometry.trajectory_plane_intersections

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "trajectory_plane_intersections", a, b, c])
Risultato registrato · geometry.trajectory_plane_intersections

Scarica lo script dell’esempio.

Esito, anteprima

{
  "points": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.5,
      0.5
    ]
  },
  "source_row_pairs": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      3.0,
      4.0
    ]
  },
  "fraction": 0.5,
  "status": "intersected"
}

geometry.mesh_section

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "mesh_section", a, b, c])
Risultato registrato · geometry.mesh_section

Scarica lo script dell’esempio.

Esito, anteprima

{
  "segments": {
    "shape": [
      3,
      6
    ],
    "dtype": "float64",
    "values": [
      0.5,
      0.0,
      0.0,
      0.0,
      0.0,
      0.5,
      0.5,
      0.5,
      0.5,
      0.0
    ]
  },
  "source_triangle_index": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      2.0,
      3.0,
      4.0
    ]
  },
  "status": "intersected"
}
Esito del controllo negativo o del tentativo · geometry.mesh_section:file-guard

Scarica lo script dell’esempio.

Esito, anteprima

"GXTXT:Numeric:HostPathRequired: geometry.mesh_section file-path facet requires host ownership; typed mesh arrays remain available"

geometry.frame_transform

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "frame_transform", a, b, c])
Risultato registrato · geometry.frame_transform

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      4,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      0.0,
      0.0,
      0.0,
      0.0,
      1.0,
      0.0,
      0.0,
      0.0
    ]
  },
  "value_imaginary": {
    "shape": [
      4,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
    ]
  }
}

geometry.nearest

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "nearest", a, b, c])
Risultato registrato · geometry.nearest

Scarica lo script dell’esempio.

Esito, anteprima

{
  "index": 1.0,
  "distance": 0.4636809247747852
}

geometry.kdtree_query

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "kdtree_query", a, b, c])
Risultato registrato · geometry.kdtree_query

Scarica lo script dell’esempio.

Esito, anteprima

{
  "index": 1.0,
  "distance": 0.4636809247747852
}

geometry.point_segment_distance

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "point_segment_distance", a, b, c])
Risultato registrato · geometry.point_segment_distance

Scarica lo script dell’esempio.

Esito, anteprima

{
  "distance": 0.3905124837953327,
  "fraction": 0.25,
  "closest": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      0.25,
      0.0,
      0.0
    ]
  }
}

geometry.triangle_area

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "triangle_area", a, b, c])
Risultato registrato · geometry.triangle_area

Scarica lo script dell’esempio.

Esito, anteprima

{
  "area": 0.5
}

geometry.tetrahedron_volume

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "tetrahedron_volume", a, b, c])
Risultato registrato · geometry.tetrahedron_volume

Scarica lo script dell’esempio.

Esito, anteprima

{
  "volume": 0.16666666666666666
}

geometry.barycentric

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "barycentric", a, b, c])
Risultato registrato · geometry.barycentric

Scarica lo script dell’esempio.

Esito, anteprima

{
  "weights": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      0.5,
      0.25,
      0.25
    ]
  },
  "plane_distance": 0.3
}

geometry.plane_fit

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "plane_fit", a, b, c])
Risultato registrato · geometry.plane_fit

Scarica lo script dell’esempio.

Esito, anteprima

{
  "origin": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      0.3333333333333333,
      0.3333333333333333,
      0.0
    ]
  },
  "normal": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      1.0
    ]
  },
  "rms_distance": 0.0
}

geometry.line_fit

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "line_fit", a, b, c])
Risultato registrato · geometry.line_fit

Scarica lo script dell’esempio.

Esito, anteprima

{
  "origin": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      0.25,
      0.25,
      0.25
    ]
  },
  "direction": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      0.8164965809277261,
      -0.408248290463863,
      -0.408248290463863
    ]
  },
  "rms_distance": 0.5590169943749475
}

geometry.rigid_transform

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "rigid_transform", a, b, c])
Risultato registrato · geometry.rigid_transform

Scarica lo script dell’esempio.

Esito, anteprima

{
  "rotation": {
    "shape": [
      3,
      3
    ],
    "dtype": "float64",
    "values": [
      -8.394166253130549e-17,
      1.8185854097942862e-16,
      1.0,
      0.9999999999999999,
      -1.7314076453848807e-16,
      -9.02930059780819e-17,
      5.445857539406315e-18,
      1.0,
      -2.568264596718554e-16
    ]
  },
  "translation": {
    "shape": [
      1,
      3
    ],
    "dtype": "float64",
    "values": [
      2.0,
      3.0,
      4.0
    ]
  },
  "rms_residual": 0.7071067811865476
}

geometry.mesh_surface_area

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "mesh_surface_area", a, b, c])
Risultato registrato · geometry.mesh_surface_area

Scarica lo script dell’esempio.

Esito, anteprima

{
  "area": 2.3660254037844384
}

geometry.mesh_volume

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "mesh_volume", a, b, c])
Risultato registrato · geometry.mesh_volume

Scarica lo script dell’esempio.

Esito, anteprima

{
  "signed_volume": 0.16666666666666666,
  "volume": 0.16666666666666666
}

geometry.point_triangle_distance

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "point_triangle_distance", a, b, c])
Risultato registrato · geometry.point_triangle_distance

Scarica lo script dell’esempio.

Esito, anteprima

{
  "distance": 0.11547005383792514,
  "triangle_index": 4.0
}

geometry.point_mesh_distance

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "point_mesh_distance", a, b, c])
Risultato registrato · geometry.point_mesh_distance

Scarica lo script dell’esempio.

Esito, anteprima

{
  "distance": 0.11547005383792514,
  "triangle_index": 4.0
}

geometry.delaunay

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "delaunay", a, b, c])
Risultato registrato · geometry.delaunay

Scarica lo script dell’esempio.

Esito, anteprima

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

geometry.voronoi

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "voronoi", a, b, c])
Risultato registrato · geometry.voronoi

Scarica lo script dell’esempio.

Esito, anteprima

{
  "vertices": {
    "shape": [
      5,
      2
    ],
    "dtype": "float64",
    "values": [
      Infinity,
      1.0,
      1.8636363636363638,
      1.0,
      -0.05555555555555547,
      Infinity,
      1.7307692307692306,
      1.0,
      -0.35714285714285743,
      0.9999999999999999
    ]
  },
  "cells": [
    {
      "shape": [
        1,
        3
      ],
      "dtype": "float64",
      "values": [
        5.0,
        4.0,
        1.0
      ]
    },
    {
      "shape": [
        1,
        3
      ],
      "dtype": "float64",
      "values": [
        4.0,
        3.0,
        1.0
      ]
    },
    {
      "shape": [
        1,
        3
      ],
      "dtype": "float64",
      "values": [
        5.0,
        2.0,
        1.0
      ]
    },
    {
      "shape": [
        1,
        3
      ],
      "dtype": "float64",
      "values": [
        2.0,
        3.0,
        1.0
      ]
    },
    {
      "shape": [
        1,
        4
      ],
      "dtype": "float64",
      "values": [
        2.0,
        3.0,
        4.0,
        5.0
      ]
    },
    {
      "shape": [
        0,
        0
      ],
      "dtype": "float64",
      "values": []
    }
  ]
}

geometry.orientation2d

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "orientation2d", a, b, c])
Risultato registrato · geometry.orientation2d

Scarica lo script dell’esempio.

Esito, anteprima

{
  "signed_area_twice": 1.0,
  "sign": 1.0
}

geometry.orientation3d

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "orientation3d", a, b, c])
Risultato registrato · geometry.orientation3d

Scarica lo script dell’esempio.

Esito, anteprima

{
  "signed_volume_sixfold": 1.0,
  "sign": 1.0
}

geometry.mesh_smooth

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "mesh_smooth", a, b, c])
Esito del controllo negativo o del tentativo · geometry.mesh_smooth:file-guard

Scarica lo script dell’esempio.

Esito, anteprima

"GXTXT:Numeric:HostPathRequired: geometry.mesh_smooth requires host-owned geometry paths and process authority"

geometry.mesh_remesh

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "mesh_remesh", a, b, c])
Esito del controllo negativo o del tentativo · geometry.mesh_remesh:file-guard

Scarica lo script dell’esempio.

Esito, anteprima

"GXTXT:Numeric:HostPathRequired: geometry.mesh_remesh requires host-owned geometry paths and process authority"

geometry.mesh_boolean

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "mesh_boolean", a, b, c])
Esito del controllo negativo o del tentativo · geometry.mesh_boolean:file-guard

Scarica lo script dell’esempio.

Esito, anteprima

"GXTXT:Numeric:HostPathRequired: geometry.mesh_boolean requires host-owned geometry paths and process authority"

geometry.volume_slice

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
first,second,third
Forma
punti geometrici, mesh o file
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["geometry", "volume_slice", a, b, c])
Esito del controllo negativo o del tentativo · geometry.volume_slice:file-guard

Scarica lo script dell’esempio.

Esito, anteprima

"GXTXT:Numeric:HostPathRequired: geometry.volume_slice requires host-owned geometry paths and process authority"

sparse.construct

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
sparse_matrix,other,unused
Forma
matrice rada e array numerico
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["sparse", "construct", a, b, c])
Risultato registrato · sparse.construct

Scarica lo script dell’esempio.

Esito, anteprima

{
  "row": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0
    ]
  },
  "column": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0
    ]
  },
  "value_real": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      5.0,
      3.0,
      4.0
    ]
  },
  "value_imaginary": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0
    ]
  },
  "nonzeros": 3.0,
  "shape": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      3.0,
      3.0
    ]
  }
}

sparse.matvec

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
sparse_matrix,other,unused
Forma
matrice rada e array numerico
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["sparse", "matvec", a, b, c])
Risultato registrato · sparse.matvec

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      3.0,
      8.0
    ]
  },
  "value_imaginary": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0
    ]
  }
}

sparse.solve

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
sparse_matrix,other,unused
Forma
matrice rada e array numerico
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["sparse", "solve", a, b, c])
Risultato registrato · sparse.solve

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.3333333333333333,
      0.5
    ]
  },
  "value_imaginary": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0
    ]
  },
  "residual_norm": 0.0
}

sparse.least_squares

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
sparse_matrix,other,unused
Forma
matrice rada e array numerico
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["sparse", "least_squares", a, b, c])
Risultato registrato · sparse.least_squares

Scarica lo script dell’esempio.

Esito, anteprima

{
  "value_real": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.3333333333333333,
      0.5
    ]
  },
  "value_imaginary": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0
    ]
  },
  "residual_norm": 0.0
}

sparse.eigen_subset

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
sparse_matrix,other,unused
Forma
matrice rada e array numerico
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["sparse", "eigen_subset", a, b, c])
Risultato registrato · sparse.eigen_subset

Scarica lo script dell’esempio.

Esito, anteprima

{
  "eigenvalues_real": 4.999999999999999,
  "eigenvalues_imaginary": 0.0,
  "eigenvectors_real": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      -1.0,
      5.551115123125783e-17,
      1.1102230246251565e-16
    ]
  },
  "eigenvectors_imaginary": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0
    ]
  }
}

equations.solve

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
residual,initial,parameters
Forma
callback valida nell’ambito dell’esecuzione e array numerico
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["equations", "solve", a, b, c])
Risultato registrato · model:foundation.equations.solve

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  "foundation.equations.solve",
  {
    "kind": "struct",
    "fields": {
      "kind": {
        "kind": "text",
        "value": "linear_system"
      },
      "matrix": {
        "kind": "array",
        "shape": [
          2,
          2
        ],
        "real": [
          1.0,
          0.0,
          0.0,
          1.0
        ]
      },
      "target": {
        "kind": "array",
        "shape": [
          2,
          1
        ],
        "real": [
          2.0,
          3.0
        ]
      }
    }
  },
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.0,
        0.0
      ]
    },
    {
      "kind": "empty"
    }
  ]
]

Esito, anteprima

{
  "solutions": [
    {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        2.0,
        3.0
      ]
    }
  ],
  "residual_norm": 0.0,
  "status": 1.0,
  "converged": true
}
Esito del controllo negativo o del tentativo · equations.solve:callback-boundary

Scarica lo script dell’esempio.

Esito, anteprima

"GXTXT:Numeric:CallbackRequired: equations.solve requires the original in-process Octave function handle or its admitted typed model declaration"

equations.multiple_start

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
residual,initial,parameters
Forma
callback valida nell’ambito dell’esecuzione e array numerico
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["equations", "multiple_start", a, b, c])
Risultato registrato · model:foundation.equations.multiple_start

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  "foundation.equations.multiple_start",
  {
    "kind": "struct",
    "fields": {
      "kind": {
        "kind": "text",
        "value": "linear_system"
      },
      "matrix": {
        "kind": "array",
        "shape": [
          2,
          2
        ],
        "real": [
          1.0,
          0.0,
          0.0,
          1.0
        ]
      },
      "target": {
        "kind": "array",
        "shape": [
          2,
          1
        ],
        "real": [
          2.0,
          3.0
        ]
      }
    }
  },
  [
    {
      "kind": "array",
      "shape": [
        2,
        2
      ],
      "real": [
        0.0,
        1.0,
        0.0,
        1.0
      ]
    },
    {
      "kind": "empty"
    }
  ]
]

Esito, anteprima

{
  "solutions": [
    {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        2.0,
        3.0
      ]
    },
    {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        2.0,
        3.0
      ]
    }
  ],
  "residual_norm": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  },
  "status": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0
    ]
  },
  "converged": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0
    ]
  }
}
Esito del controllo negativo o del tentativo · equations.multiple_start:callback-boundary

Scarica lo script dell’esempio.

Esito, anteprima

"GXTXT:Numeric:CallbackRequired: equations.multiple_start requires the original in-process Octave function handle or its admitted typed model declaration"

equations.continuation

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
residual,initial,parameters
Forma
callback valida nell’ambito dell’esecuzione e array numerico
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["equations", "continuation", a, b, c])
Risultato registrato · model:foundation.equations.continuation

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  "foundation.equations.continuation",
  {
    "kind": "struct",
    "fields": {
      "kind": {
        "kind": "text",
        "value": "linear_system"
      },
      "matrix": {
        "kind": "array",
        "shape": [
          2,
          2
        ],
        "real": [
          1.0,
          0.0,
          0.0,
          1.0
        ]
      },
      "target": {
        "kind": "array",
        "shape": [
          2,
          1
        ],
        "real": [
          2.0,
          3.0
        ]
      }
    }
  },
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.0,
        0.0
      ]
    },
    {
      "kind": "array",
      "shape": [
        3,
        1
      ],
      "real": [
        0.0,
        0.5,
        1.0
      ]
    }
  ]
]

Esito, anteprima

{
  "parameters": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.5,
      1.0
    ]
  },
  "solutions": {
    "shape": [
      2,
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      1.0,
      1.5,
      2.0,
      3.0
    ]
  },
  "residual_norm": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0
    ]
  },
  "status": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0,
      1.0
    ]
  },
  "converged": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0,
      1.0
    ]
  }
}
Esito del controllo negativo o del tentativo · equations.continuation:callback-boundary

Scarica lo script dell’esempio.

Esito, anteprima

"GXTXT:Numeric:CallbackRequired: equations.continuation requires the original in-process Octave function handle or its admitted typed model declaration"

variational.action

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
functional,values,extra
Forma
array numerici o callback valida nell’ambito dell’esecuzione
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["variational", "action", a, b, c])
Risultato registrato · model:foundation.variational.action

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  "foundation.variational.action",
  {
    "kind": "struct",
    "fields": {
      "kind": {
        "kind": "text",
        "value": "quadratic_lagrangian"
      },
      "mass": {
        "kind": "array",
        "shape": [
          1,
          1
        ],
        "real": [
          1.0
        ]
      },
      "stiffness": {
        "kind": "array",
        "shape": [
          1,
          1
        ],
        "real": [
          1.0
        ]
      }
    }
  },
  [
    {
      "kind": "array",
      "shape": [
        3,
        1
      ],
      "real": [
        0.0,
        1.0,
        2.0
      ]
    },
    {
      "kind": "array",
      "shape": [
        3,
        1
      ],
      "real": [
        1.0,
        0.0,
        -1.0
      ]
    }
  ]
]

Esito, anteprima

{
  "action": 0.5,
  "density": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.5,
      0.0
    ]
  },
  "velocity": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      -1.0,
      -1.0,
      -1.0
    ]
  }
}
Esito del controllo negativo o del tentativo · variational.action:callback-boundary

Scarica lo script dell’esempio.

Esito, anteprima

"GXTXT:Numeric:CallbackRequired: variational.action requires the original in-process Octave function handle or its admitted typed model declaration"

variational.functional

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
functional,values,extra
Forma
array numerici o callback valida nell’ambito dell’esecuzione
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["variational", "functional", a, b, c])
Risultato registrato · model:foundation.variational.functional

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  "foundation.variational.functional",
  {
    "kind": "struct",
    "fields": {
      "kind": {
        "kind": "text",
        "value": "quadratic_lagrangian"
      },
      "mass": {
        "kind": "array",
        "shape": [
          1,
          1
        ],
        "real": [
          1.0
        ]
      },
      "stiffness": {
        "kind": "array",
        "shape": [
          1,
          1
        ],
        "real": [
          1.0
        ]
      }
    }
  },
  [
    {
      "kind": "array",
      "shape": [
        3,
        1
      ],
      "real": [
        0.0,
        1.0,
        2.0
      ]
    },
    {
      "kind": "array",
      "shape": [
        3,
        1
      ],
      "real": [
        1.0,
        0.0,
        -1.0
      ]
    }
  ]
]

Esito, anteprima

{
  "action": 0.5,
  "density": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.5,
      0.0
    ]
  },
  "velocity": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      -1.0,
      -1.0,
      -1.0
    ]
  }
}
Esito del controllo negativo o del tentativo · variational.functional:callback-boundary

Scarica lo script dell’esempio.

Esito, anteprima

"GXTXT:Numeric:CallbackRequired: variational.functional requires the original in-process Octave function handle or its admitted typed model declaration"

variational.legendre

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
functional,values,extra
Forma
array numerici o callback valida nell’ambito dell’esecuzione
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["variational", "legendre", a, b, c])
Risultato registrato · model:foundation.variational.legendre

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  "foundation.variational.legendre",
  {
    "kind": "struct",
    "fields": {
      "kind": {
        "kind": "text",
        "value": "quadratic_lagrangian"
      },
      "mass": {
        "kind": "array",
        "shape": [
          1,
          1
        ],
        "real": [
          1.0
        ]
      },
      "stiffness": {
        "kind": "array",
        "shape": [
          1,
          1
        ],
        "real": [
          1.0
        ]
      }
    }
  },
  [
    {
      "kind": "array",
      "shape": [
        1,
        1
      ],
      "real": [
        1.0
      ]
    },
    {
      "kind": "array",
      "shape": [
        1,
        1
      ],
      "real": [
        2.0
      ]
    }
  ]
]

Esito, anteprima

{
  "momentum": 2.0,
  "hamiltonian": 2.5
}
Esito del controllo negativo o del tentativo · variational.legendre:callback-boundary

Scarica lo script dell’esempio.

Esito, anteprima

"GXTXT:Numeric:CallbackRequired: variational.legendre requires the original in-process Octave function handle or its admitted typed model declaration"

variational.first_variation

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
functional,values,extra
Forma
array numerici o callback valida nell’ambito dell’esecuzione
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["variational", "first_variation", a, b, c])
Risultato registrato · model:foundation.variational.first_variation

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  "foundation.variational.first_variation",
  {
    "kind": "struct",
    "fields": {
      "kind": {
        "kind": "text",
        "value": "quadratic_norm"
      },
      "center": {
        "kind": "array",
        "shape": [
          2,
          1
        ],
        "real": [
          2.0,
          -1.0
        ]
      }
    }
  },
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.0,
        0.0
      ]
    },
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.0,
        0.0
      ]
    }
  ],
  {
    "kind": "struct",
    "fields": {
      "constraints": {
        "kind": "struct",
        "fields": {
          "lower": {
            "kind": "array",
            "shape": [
              2,
              1
            ],
            "real": [
              -4.0,
              -4.0
            ]
          },
          "upper": {
            "kind": "array",
            "shape": [
              2,
              1
            ],
            "real": [
              4.0,
              4.0
            ]
          }
        }
      }
    }
  }
]

Esito, anteprima

{
  "gradient": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      -4.0,
      2.0
    ]
  }
}
Esito del controllo negativo o del tentativo · variational.first_variation:callback-boundary

Scarica lo script dell’esempio.

Esito, anteprima

"GXTXT:Numeric:CallbackRequired: variational.first_variation requires the original in-process Octave function handle or its admitted typed model declaration"

variational.euler_lagrange_residual

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
functional,values,extra
Forma
array numerici o callback valida nell’ambito dell’esecuzione
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["variational", "euler_lagrange_residual", a, b, c])
Risultato registrato · model:foundation.variational.euler_lagrange_residual

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  "foundation.variational.euler_lagrange_residual",
  {
    "kind": "struct",
    "fields": {
      "kind": {
        "kind": "text",
        "value": "quadratic_lagrangian"
      },
      "mass": {
        "kind": "array",
        "shape": [
          1,
          1
        ],
        "real": [
          1.0
        ]
      },
      "stiffness": {
        "kind": "array",
        "shape": [
          1,
          1
        ],
        "real": [
          1.0
        ]
      }
    }
  },
  [
    {
      "kind": "array",
      "shape": [
        3,
        1
      ],
      "real": [
        0.0,
        1.0,
        2.0
      ]
    },
    {
      "kind": "array",
      "shape": [
        3,
        1
      ],
      "real": [
        1.0,
        0.0,
        -1.0
      ]
    }
  ]
]

Esito, anteprima

{
  "residual": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      0.0,
      -1.0
    ]
  },
  "velocity": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      -1.0,
      -1.0,
      -1.0
    ]
  },
  "momentum": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      -1.0,
      -1.0,
      -1.0
    ]
  }
}
Esito del controllo negativo o del tentativo · variational.euler_lagrange_residual:callback-boundary

Scarica lo script dell’esempio.

Esito, anteprima

"GXTXT:Numeric:CallbackRequired: variational.euler_lagrange_residual requires the original in-process Octave function handle or its admitted typed model declaration"

variational.constrained

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
functional,values,extra
Forma
array numerici o callback valida nell’ambito dell’esecuzione
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["variational", "constrained", a, b, c])
Interrogazione del contratto · model-kinds:foundation.variational.constrained

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  "foundation.variational.constrained"
]

Esito, anteprima

[
  "quadratic_norm"
]
Esito del controllo negativo o del tentativo · model:foundation.variational.constrained

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  "foundation.variational.constrained",
  {
    "kind": "struct",
    "fields": {
      "kind": {
        "kind": "text",
        "value": "quadratic_norm"
      },
      "center": {
        "kind": "array",
        "shape": [
          2,
          1
        ],
        "real": [
          2.0,
          -1.0
        ]
      }
    }
  },
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.0,
        0.0
      ]
    },
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.0,
        0.0
      ]
    }
  ],
  {
    "kind": "struct",
    "fields": {
      "constraints": {
        "kind": "struct",
        "fields": {
          "lower": {
            "kind": "array",
            "shape": [
              2,
              1
            ],
            "real": [
              -4.0,
              -4.0
            ]
          },
          "upper": {
            "kind": "array",
            "shape": [
              2,
              1
            ],
            "real": [
              4.0,
              4.0
            ]
          }
        }
      }
    }
  }
]

Esito, anteprima

"GXTXT:ScriptBridge:RemoteError: NUMERIC_API_v1/callModelOperation: package optim is not installed"

statistics.confidence_interval

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
samples,other,extra
Forma
osservazioni numeriche e opzioni
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["statistics", "confidence_interval", a, b, c])
Risultato registrato · statistics.confidence_interval

Scarica lo script dell’esempio.

Esito, anteprima

{
  "estimate": 5.333333333333333,
  "lower": 2.0369247419719594,
  "upper": 8.629741924694706,
  "confidence": 0.95,
  "n": 6.0,
  "standard_error": 1.2823589374447564,
  "degrees_of_freedom": 5.0,
  "method": "student_t_mean"
}

statistics.robust_location

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
samples,other,extra
Forma
osservazioni numeriche e opzioni
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["statistics", "robust_location", a, b, c])
Risultato registrato · statistics.robust_location

Scarica lo script dell’esempio.

Esito, anteprima

{
  "location": 5.333333333333333,
  "scale": 3.7064999999999997,
  "iterations": 2.0,
  "method": "Huber",
  "n": 6.0,
  "huber_constant": 1.345,
  "converged": true,
  "scale_method": "initial_median_MAD_1.4826_with_absolute_eps_floor"
}

statistics.robust_regression

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
samples,other,extra
Forma
matrice di progetto e risposta; costante di Huber positiva facoltativa
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["statistics", "robust_regression", a, b, c])
Risultato registrato · statistics.robust_regression

Scarica lo script dell’esempio.

Esito, anteprima

{
  "coefficients": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.1684433677025965,
      1.65053301031078
    ]
  },
  "residual": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.1684433677025965,
      0.1810236219866237,
      -0.46950938832415634,
      0.8799576013650636,
      0.2294245910542836,
      -0.4211084192564982
    ]
  },
  "iterations": 12.0,
  "method": "Huber IRLS",
  "coefficients_real": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.1684433677025965,
      1.65053301031078
    ]
  },
  "coefficients_imaginary": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  },
  "residual_real": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.1684433677025965,
      0.1810236219866237,
      -0.46950938832415634,
      0.8799576013650636,
      0.2294245910542836,
      -0.4211084192564982
    ]
  },
  "residual_imaginary": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
    ]
  },
  "n": 6.0,
  "p": 2.0,
  "input_kind": "real",
  "converged": true,
  "huber_constant": 1.345,
  "last_scale": 0.48224012055796955,
  "last_update_norm": 6.849122068312262e-11,
  "last_threshold": 2.0222559486553683e-10,
  "tolerance": 1e-10,
  "iteration_limit": 100.0
}

statistics.covariance_diagnostics

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
samples,other,extra
Forma
osservazioni reali o complesse per righe; un vettore è una variabile
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["statistics", "covariance_diagnostics", a, b, c])
Risultato registrato · statistics.covariance_diagnostics

Scarica lo script dell’esempio.

Esito, anteprima

{
  "covariance": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      3.5
    ]
  },
  "eigenvalues": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      3.5
    ]
  },
  "condition_number": Infinity,
  "rank": 1.0,
  "covariance_real": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      3.5
    ]
  },
  "covariance_imaginary": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      0.0
    ]
  },
  "eigenvalues_real": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      3.5
    ]
  },
  "eigenvalues_imaginary": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  },
  "n": 6.0,
  "variable_count": 2.0,
  "method": "centered_sample_covariance_n_minus_one",
  "input_kind": "real"
}

statistics.partial_correlation

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
samples,other,extra
Forma
vettori di osservazione reali allineati e colonne di controllo
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["statistics", "partial_correlation", a, b, c])
Risultato registrato · statistics.partial_correlation

Scarica lo script dell’esempio.

Esito, anteprima

{
  "correlation": -0.5454155540579483,
  "n": 6.0,
  "variable_count": 3.0,
  "control_count": 1.0,
  "covariance_rank": 3.0,
  "normalization_valid": true,
  "method": "covariance_pseudoinverse_normalization"
}

statistics.multiple_testing

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
samples,other,extra
Forma
Valori p adimensionali e opzione per il metodo.
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["statistics", "multiple_testing", a, b, c])
Risultato registrato · statistics.multiple_testing

Scarica lo script dell’esempio.

Esito, anteprima

{
  "adjusted_p": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.03,
      0.09,
      1.0
    ]
  },
  "original_p": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.01,
      0.03,
      0.5
    ]
  },
  "hypothesis_index": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0
    ]
  },
  "family_size": 3.0,
  "method": "bonferroni"
}

statistics.bootstrap_ci

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
samples,other,extra
Forma
osservazioni numeriche e opzioni
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["statistics", "bootstrap_ci", a, b, c])
Risultato registrato · statistics.bootstrap_ci

Scarica lo script dell’esempio.

Esito, anteprima

{
  "estimate": 5.333333333333333,
  "lower": 3.0,
  "upper": 7.0,
  "replicates": 100.0,
  "n_x": 6.0,
  "n_y": 0.0,
  "method": "bootstrap",
  "alternative": "two_sided",
  "confidence": 0.95,
  "inference": "percentile_confidence_interval",
  "quantile_definition": "Hyndman-Fan type 5 piecewise linear interpolation",
  "distribution_variance": 1.1791358024691365,
  "bootstrap_standard_error": 1.0858801971069998,
  "seed": 451.0,
  "random_generator": "twister"
}
Esito del controllo negativo o del tentativo · statistics.bootstrap_ci

Scarica lo script dell’esempio.

Esito, anteprima

"GXTXT:Numeric:SeedRequired: bootstrap requires seed and at least 100 replicates"

statistics.permutation_test

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
samples,other,extra
Forma
osservazioni numeriche e opzioni
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["statistics", "permutation_test", a, b, c])
Risultato registrato · statistics.permutation_test

Scarica lo script dell’esempio.

Esito, anteprima

{
  "difference": 0.5,
  "p_value": 0.8415841584158416,
  "replicates": 100.0,
  "n_x": 6.0,
  "n_y": 6.0,
  "extreme_count": 84.0,
  "method": "permutation_independent",
  "alternative": "two_sided",
  "inference": "monte_carlo_permutation_p_plus_one",
  "tail_tolerance": 0.0,
  "seed": 451.0,
  "random_generator": "twister"
}
Esito del controllo negativo o del tentativo · statistics.permutation_test

Scarica lo script dell’esempio.

Esito, anteprima

"GXTXT:Numeric:SeedRequired: permutation test requires seed and at least 100 replicates"

statistics.logistic_regression

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
samples,other,extra
Forma
matrice di progetto reale e risposta binaria adimensionale
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["statistics", "logistic_regression", a, b, c])
Risultato registrato · statistics.logistic_regression

Scarica lo script dell’esempio.

Esito, anteprima

{
  "coefficients": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.6180768082986414,
      0.5889058828052619
    ]
  },
  "probability": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      0.3502189776191859,
      0.4927077857241482,
      0.63639121230012,
      0.7592625732889627,
      0.8503751855291927,
      0.9110442655383905
    ]
  },
  "iterations": 6.0,
  "converged": true,
  "coefficients_real": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.6180768082986414,
      0.5889058828052619
    ]
  },
  "coefficients_imaginary": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  },
  "n": 6.0,
  "p": 2.0,
  "input_kind": "real",
  "method": "logistic_newton_weight_floor",
  "family": "binomial",
  "link": "logit",
  "last_update_norm": 4.888574409318637e-15,
  "last_threshold": 1e-09,
  "tolerance": 1e-09,
  "iteration_limit": 100.0
}

statistics.glm

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
samples,other,extra
Forma
matrice di progetto reale e risposta adimensionale binaria o di conteggio
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["statistics", "glm", a, b, c])
Risultato registrato · statistics.glm

Scarica lo script dell’esempio.

Esito, anteprima

{
  "coefficients": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.6180768082986414,
      0.5889058828052619
    ]
  },
  "fitted_mean": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      0.3502189776191859,
      0.4927077857241482,
      0.63639121230012,
      0.7592625732889627,
      0.8503751855291927,
      0.9110442655383905
    ]
  },
  "family": "binomial",
  "link": "logit",
  "iterations": 6.0,
  "converged": true,
  "score_norm": 6.684427777288334e-16,
  "coefficients_real": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.6180768082986414,
      0.5889058828052619
    ]
  },
  "coefficients_imaginary": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  },
  "n": 6.0,
  "p": 2.0,
  "input_kind": "real",
  "method": "glm_clipped_irls",
  "last_update_norm": 4.888574409318637e-15,
  "last_threshold": 1e-08,
  "tolerance": 1e-08,
  "iteration_limit": 100.0
}

statistics.survival_kaplan_meier

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
samples,other,extra
Forma
osservazioni numeriche e opzioni
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["statistics", "survival_kaplan_meier", a, b, c])
Risultato registrato · statistics.survival_kaplan_meier

Scarica lo script dell’esempio.

Esito, anteprima

{
  "time": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.0,
      4.0,
      7.0,
      8.0,
      9.0
    ]
  },
  "survival": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      0.8,
      0.6000000000000001,
      0.6000000000000001,
      0.30000000000000004,
      0.0
    ]
  },
  "method": "Kaplan-Meier",
  "n": 6.0,
  "at_risk": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      6.0,
      5.0,
      4.0,
      3.0,
      2.0,
      1.0
    ]
  },
  "events": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      1.0,
      0.0,
      1.0,
      1.0
    ]
  },
  "censored": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      0.0,
      0.0,
      1.0,
      0.0,
      0.0
    ]
  }
}

statistics.kmeans

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
samples,other,extra
Forma
righe di osservazione reali; seed esplicito e cluster interi
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["statistics", "kmeans", a, b, c])
Esito del controllo negativo o del tentativo · statistics.kmeans

Scarica lo script dell’esempio.

Esito, anteprima

"GXTXT:ScientificTransport:Remote: package statistics is not installed"

ode.solve

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
rhs,time_span,initial_state
Forma
callback valida nell’ambito dell’esecuzione e stato numerico
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["ode", "solve", a, b, c])
Risultato registrato · model:foundation.ode.solve

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  "foundation.ode.solve",
  {
    "kind": "struct",
    "fields": {
      "kind": {
        "kind": "text",
        "value": "linear_ode"
      },
      "matrix": {
        "kind": "array",
        "shape": [
          1,
          1
        ],
        "real": [
          -1.0
        ]
      }
    }
  },
  [
    {
      "kind": "array",
      "shape": [
        4,
        1
      ],
      "real": [
        0.0,
        0.25,
        0.5,
        1.0
      ]
    },
    {
      "kind": "array",
      "shape": [
        1,
        1
      ],
      "real": [
        1.0
      ]
    }
  ]
]

Esito, anteprima

{
  "time": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.25,
      0.5,
      1.0
    ]
  },
  "state_real": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      0.7788007810324598,
      0.606530599251086,
      0.36787946794362886
    ]
  },
  "state_imaginary": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      0.0
    ]
  },
  "success": true,
  "cancelled": false,
  "terminated_by_event": false,
  "output_count": 4.0,
  "method": "ode45",
  "backend_method": "ode45",
  "event_time": {
    "shape": [
      0,
      0
    ],
    "dtype": "float64",
    "values": []
  },
  "event_state_real": {
    "shape": [
      0,
      0
    ],
    "dtype": "float64",
    "values": []
  },
  "event_state_imaginary": {
    "shape": [
      0,
      0
    ],
    "dtype": "float64",
    "values": []
  },
  "event_index": {
    "shape": [
      0,
      0
    ],
    "dtype": "float64",
    "values": []
  }
}
Esito del controllo negativo o del tentativo · ode.solve:callback-exception

Scarica lo script dell’esempio.

Esito, anteprima

"GXTXT:ScriptCallback:Error: ValueError: Controlled RHS failure"

constrained.solve

Accesso
selettore Foundation; verifica il percorso Python e la firma
Argomenti
objective,initial,constraints
Forma
callback valida nell’ambito dell’esecuzione e vincoli
Unità
dipende dall’azione
Esito
structured
gxtxt_api_call("NUMERIC_API_v1", "foundation", ["constrained", "solve", a, b, c])
Risultato registrato · constrained.solve

Scarica lo script dell’esempio.

Esito, anteprima

{
  "point": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  },
  "objective": 0.0,
  "status": 0,
  "converged": true,
  "iterations": 2,
  "function_evaluations": 7,
  "equality_residual": {
    "shape": [
      0,
      1
    ],
    "dtype": "float64",
    "values": []
  },
  "inequality_slack": {
    "shape": [
      0,
      1
    ],
    "dtype": "float64",
    "values": []
  },
  "maximum_violation": 0.0,
  "backend_multipliers": {
    "shape": [
      0,
      1
    ],
    "dtype": "float64",
    "values": []
  },
  "kkt_multipliers": {
    "shape": [
      0,
      1
    ],
    "dtype": "float64",
    "values": []
  },
  "kkt_stationarity_norm": 0.0,
  "kkt_complementarity_norm": 0.0,
  "kkt_dual_violation": 0.0,
  "active_inequalities": {
    "shape": [
      0,
      1
    ],
    "dtype": "float64",
    "values": []
  },
  "active_lower_bounds": {
    "shape": [
      0,
      1
    ],
    "dtype": "float64",
    "values": []
  },
  "active_upper_bounds": {
    "shape": [
      0,
      1
    ],
    "dtype": "float64",
    "values": []
  },
  "method": "SLSQP"
}

family.parameter_interpolate

Passa A come asse del parametro crescente, B come matrice con una colonna per parametro e C come query. method vale linear di default. extrapolation=error rifiuta query fuori asse. L’output conserva ogni riga e interpola lungo le colonne.

Risultato registrato · family.parameter_interpolate

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  "family",
  "parameter_interpolate",
  {
    "kind": "array",
    "shape": [
      2,
      1
    ],
    "real": [
      0.0,
      1.0
    ]
  },
  {
    "kind": "array",
    "shape": [
      2,
      2
    ],
    "real": [
      0.0,
      1.0,
      2.0,
      5.0
    ]
  },
  {
    "kind": "array",
    "shape": [
      2,
      1
    ],
    "real": [
      0.25,
      0.75
    ]
  }
]

Esito, anteprima

{
  "value_real": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.5,
      2.0,
      1.5,
      4.0
    ]
  },
  "value_imaginary": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0,
      0.0
    ]
  },
  "parameter": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.25,
      0.75
    ]
  }
}