kernel
Stable type · Other
Tier: stable · Kind: type · Topic: Other
| Julia | TypeScript | Python | Rust | Go |
|---|---|---|---|---|
Kernel | not exported | not exported | Kernel | not exported |
Julia
struct Kernel
Kernel(name::String, prog::EarthSciAST.RhsProgram, direct::Bool, map::Bool, aux_plan::Vector{NTuple{4, Int64}}, p_map::Vector{Int64}, out_plan::Vector{Tuple{Int64, Int64, Int64}}, layout::Vector{KernelBlock}, n_u::Int64, n_z::Int64, n_p::Int64, out_len::Int64)
Kernel(name, prog, direct, map, aux_plan, p_map, out_plan, layout, n_u, n_z, n_p, out_len)
Kernel
A compiled kernel (API_SPEC §5.8, “Strip and expose”). Evaluate it with
kernel!
on a kernel_workspace
per concurrent caller.
TypeScript
TypeScript does not export this type.
Python
Python does not export this type.
Rust
pub struct Kernel {
/* private fields */
}
impl Kernel { pub fn name(&self) -> &str }
impl Kernel { pub fn layout(&self) -> &[KernelBlock] }
impl Kernel { pub fn len(&self) -> usize }
impl Kernel { pub fn is_empty(&self) -> bool }
impl Kernel { pub fn is_map(&self) -> bool }
impl Kernel { pub fn new_workspace(&self) -> KernelWorkspace }
impl Kernel { pub fn eval_into(&self, u: &[f64], z: &[f64], p: &[f64], t: f64, dt: f64, forcing: &ForcingSet, out: &mut [f64], ws: &mut KernelWorkspace) -> Result<(), RhsError> }
A compiled kernel (API_SPEC §5.8). Send + Sync; a clone shares it.
Go
Go does not export this type.