pub mod linalg;
pub mod interpolation;
pub mod nn;
pub mod mixing;
pub mod grid;
pub mod npu_bridge;
pub mod sparse_matmul_quantized;
pub mod sparse_gemm_f64;
pub mod transe_score_f64;
pub mod peak_detect_f64;
pub mod alibi;
pub mod attention;
pub mod causal_attn;
pub mod cross_attn;
pub mod dice;
pub mod flash_attention;
pub mod mha;
pub mod rope;
pub mod sparse_attn;
#[cfg(feature = "domain-fhe")]
pub mod fhe_and;
#[cfg(feature = "domain-fhe")]
pub mod fhe_extract;
#[cfg(feature = "domain-fhe")]
pub mod fhe_fast_poly_mul;
#[cfg(feature = "domain-fhe")]
pub mod fhe_intt;
#[cfg(feature = "domain-fhe")]
pub mod fhe_key_switch;
#[cfg(feature = "domain-fhe")]
pub mod fhe_modulus_switch;
#[cfg(feature = "domain-fhe")]
pub mod fhe_ntt;
#[cfg(feature = "domain-fhe")]
pub mod fhe_or;
#[cfg(feature = "domain-fhe")]
pub mod fhe_pointwise_mul;
#[cfg(feature = "domain-fhe")]
pub mod fhe_poly_add;
#[cfg(feature = "domain-fhe")]
pub mod fhe_poly_mul;
#[cfg(feature = "domain-fhe")]
pub mod fhe_poly_sub;
#[cfg(feature = "domain-fhe")]
pub mod fhe_rotate;
#[cfg(feature = "domain-fhe")]
pub mod fhe_xor;
pub mod elu_wgsl;
pub mod gelu_wgsl;
pub mod hardswish_wgsl;
pub mod leaky_relu_wgsl;
pub mod mish_wgsl;
pub mod relu;
pub mod selu_wgsl;
pub mod sigmoid;
pub mod softmax;
pub mod softplus_wgsl;
pub mod swish_wgsl;
pub mod df64_shaders;
#[cfg(feature = "domain-fold")]
pub mod folding_df64;
pub mod abs_wgsl;
pub mod add;
pub mod clamp_wgsl;
pub mod div;
pub mod exp_wgsl;
pub mod fma; pub mod log_wgsl;
pub mod mul;
pub mod neg_wgsl;
pub mod pow_wgsl;
pub mod reciprocal_wgsl;
pub mod sign_wgsl;
pub mod sqrt_wgsl;
pub mod sub;
pub mod eq;
pub mod gt;
pub mod lt;
pub mod acos_wgsl;
pub mod acosh_wgsl;
pub mod asin_wgsl;
pub mod asinh_wgsl;
pub mod atan_wgsl;
pub mod atanh_wgsl;
pub mod cos_wgsl;
pub mod cosh_wgsl;
pub mod sin_wgsl;
pub mod sinh_wgsl;
pub mod tan_wgsl;
pub mod ceil_wgsl;
pub mod floor_wgsl;
pub mod frac_wgsl;
pub mod round_wgsl;
pub mod trunc_wgsl;
pub mod bessel_i0_wgsl;
pub mod bessel_j0_wgsl;
pub mod bessel_j1_wgsl;
pub mod bessel_k0_wgsl;
pub mod beta_wgsl;
pub mod digamma_wgsl;
pub mod erf_wgsl;
pub mod erfc_wgsl;
pub mod hermite_f64_wgsl; pub mod hermite_wgsl;
pub mod laguerre_f64_wgsl; pub mod laguerre_wgsl;
pub mod legendre_f64_wgsl; pub mod legendre_wgsl;
pub mod bessel_i0_f64_wgsl; pub mod bessel_j0_f64_wgsl; pub mod bessel_j1_f64_wgsl; pub mod bessel_k0_f64_wgsl;
pub mod spherical_harmonics_f64_wgsl;
pub mod autocorrelation_f64_wgsl; pub mod beta_f64_wgsl; pub mod correlation_f64_wgsl; pub mod covariance_f64_wgsl; pub mod digamma_f64_wgsl; pub mod variance_f64_wgsl;
pub mod boltzmann_sampling_f64; pub mod fused_chi_squared_f64; pub mod fused_kl_divergence_f64; pub mod rawr_weighted_mean_f64;
pub mod lgamma_wgsl;
pub mod norm_cdf_wgsl;
pub mod norm_ppf_wgsl;
pub mod loo_cv_wgsl;
pub mod max_wgsl;
pub mod mean;
pub mod min_wgsl;
pub mod norm;
pub mod prng_xoshiro_wgsl;
pub mod prod;
pub mod random_uniform_wgsl;
pub mod rsqrt_wgsl;
pub mod sobol_wgsl;
pub mod sparse_matvec_wgsl;
pub mod spherical_harmonics_wgsl;
pub mod std;
pub mod sum;
pub mod variance;
pub mod concat;
pub mod pad_wgsl;
pub mod slice;
pub mod transpose;
pub mod argmax_wgsl;
pub mod argmin_wgsl;
pub mod squeeze;
pub mod tensor_axis_ops;
pub mod unsqueeze;
pub mod where_op;
pub mod adaptive_avgpool2d;
pub mod adaptive_maxpool2d;
pub mod avg_pool1d_wgsl;
pub mod avgpool2d;
pub mod batch_norm;
pub mod cast;
pub mod conv2d;
pub mod dropout_wgsl;
pub mod embedding_wgsl;
pub mod gather_wgsl;
pub mod global_maxpool;
pub mod layer_norm_wgsl;
pub mod matmul;
pub mod max_pool1d_wgsl;
pub mod maxpool2d;
pub mod scatter_wgsl;
pub mod spatial_dropout;
pub mod topk;
pub mod cumprod_f64;
pub mod fused_map_reduce_f64; pub mod kriging_f64;
pub mod cyclic_reduction_f64; pub mod weighted_dot_f64;
pub mod correlation_wgsl; pub mod covariance_wgsl; pub mod moving_window_stats;
pub mod batch_pair_reduce_f64; pub mod batch_tolerance_search_f64; pub mod batched_ode_rk4; pub mod batched_rk4_sweep; pub mod crank_nicolson; pub mod hill_f64; pub mod kmd_grouping_f64;
pub mod population_pk_f64; pub mod rk45_adaptive; pub mod rk_stage;
pub mod wright_fisher_f32; pub use batch_pair_reduce_f64::{BatchPairReduceF64, PairReduceOp};
pub use batch_tolerance_search_f64::BatchToleranceSearchF64;
pub use hill_f64::HillFunctionF64;
pub use kmd_grouping_f64::{KmdGroupingF64, KmdResult, repeat_units};
pub use population_pk_f64::{PopulationPkConfig, PopulationPkF64};
pub use rk_stage::{
BatchedOdeRK4F64, BatchedRk4Config, OdeFunction, RkIntegrator, wgsl_rk4_parallel,
};
pub use wright_fisher_f32::{WrightFisherConfig, WrightFisherF32, seed_xoshiro_state};
pub use mean::{WGSL_MEAN_REDUCE, WGSL_MEAN_REDUCE_F64};
pub use df64_shaders::{
WGSL_ELEMENTWISE_ADD_DF64, WGSL_ELEMENTWISE_FMA_DF64, WGSL_ELEMENTWISE_MUL_DF64,
WGSL_ELEMENTWISE_SUB_DF64, WGSL_MEAN_REDUCE_DF64, WGSL_SUM_REDUCE_DF64,
};
#[cfg(feature = "domain-fold")]
pub use folding_df64::{FoldingOp, compile_folding_shader};
pub mod cosine_similarity_f64;
pub mod batched_elementwise_f64; pub mod max_abs_diff_f64;
pub mod norm_reduce_f64;
pub mod prod_reduce_f64;
pub mod sum_reduce_f64;
pub mod variance_reduce_f64;
pub mod broadcast;
pub mod cumprod_wgsl;
pub mod cumsum_f64;
pub mod cumsum_wgsl;
pub mod fill;
pub mod flip_wgsl;
pub mod one_hot_wgsl;
pub mod repeat_wgsl;
pub mod roll_wgsl;
pub mod binary_cross_entropy;
pub mod cross_entropy;
pub mod dice_loss;
pub mod focal_loss;
pub mod huber_loss;
pub mod l1_loss_wgsl;
pub mod mae_loss;
pub mod mse_loss;
pub mod group_norm_wgsl;
pub mod instance_norm_wgsl;
pub mod rmsnorm;
pub mod conv1d;
pub mod conv3d;
pub mod depthwise_conv2d;
pub mod transposed_conv2d;
pub mod batch_matmul;
pub mod dotproduct;
pub mod filter;
pub mod global_avgpool;
pub mod map;
pub mod matmul_tiled;
pub mod reduce;
pub mod scan;
pub mod split;
pub mod adadelta;
pub mod adagrad;
pub mod adam;
pub mod nadam;
pub mod rmsprop;
pub mod sgd;
pub mod alibi_position;
pub mod causal_attention;
pub mod cross_attention;
pub mod grouped_query_attention;
pub mod local_attention;
pub mod multi_head_attention;
pub mod rotary_embedding;
pub mod scaled_dot_product_attention;
pub mod sparse_attention;
pub mod bi_lstm;
pub mod gru_cell;
pub mod lstm_cell;
pub mod rnn_cell;
pub mod rnn_cell_wgsl;
pub mod celu_wgsl;
pub mod gelu_approximate_wgsl;
pub mod glu_wgsl;
pub mod hardshrink_wgsl;
pub mod hardsigmoid_wgsl;
pub mod hardtanh_wgsl;
pub mod log_softmax_wgsl;
pub mod logsigmoid_wgsl;
pub mod prelu_wgsl;
pub mod rrelu_wgsl;
pub mod silu_wgsl;
pub mod softshrink_wgsl;
pub mod softsign_wgsl;
pub mod tanhshrink_wgsl;
pub mod threshold_wgsl;
pub mod avgpool3d;
pub mod circular_pad2d;
pub mod circular_pad_wgsl;
pub mod deformable_conv2d;
pub mod dilated_conv2d;
pub mod gated_conv2d;
pub mod grouped_conv2d;
pub mod maxpool3d;
pub mod octave_conv2d;
pub mod reflection_pad_wgsl;
pub mod replication_pad_wgsl;
pub mod separable_conv2d;
pub mod bce_loss;
pub mod contrastive_loss;
pub mod cosine_embedding_loss;
pub mod hinge_loss;
pub mod kl_divergence;
pub mod kldiv_loss;
pub mod margin_ranking_loss;
pub mod multi_margin_loss;
pub mod multilabel_margin_loss;
pub mod nll_loss;
pub mod poisson_nll_loss;
pub mod triplet_loss;
pub mod adaptive_instance_norm;
pub mod filter_response_norm;
pub mod local_response_norm;
pub mod spectral_norm;
pub mod spectral_normalization;
pub mod weight_norm;
pub mod weight_normalization;
pub mod affine_grid;
pub mod bincount_wgsl;
pub mod bucketize_wgsl;
pub mod cdist_wgsl;
pub mod channel_shuffle_wgsl;
pub mod color_jitter_wgsl;
pub mod diag;
pub mod fold;
pub mod gather_nd;
pub mod grid_sample_wgsl;
pub mod histc;
pub mod index_add;
pub mod index_select;
pub mod index_select_wgsl;
pub mod interpolate_nearest_wgsl;
pub mod interpolate_wgsl;
pub mod inverse_wgsl;
pub mod logsumexp;
pub mod logsumexp_wgsl;
pub mod masked_fill_wgsl;
pub mod masked_select;
pub mod nonzero;
pub mod normalize;
pub mod pairwise_distance;
pub mod pdist;
pub mod renorm;
pub mod scatter_nd;
pub mod searchsorted;
pub mod sinkhorn_distance;
pub mod slice_assign;
pub mod trace_wgsl;
pub mod tril;
pub mod triu;
pub mod unfold;
pub mod unique;
pub mod chunk;
pub mod expand;
pub mod flatten;
pub mod movedim;
pub mod narrow_wgsl;
pub mod permute;
pub mod repeat_interleave;
pub mod stack;
pub mod tensor_split;
pub mod tile;
pub mod bray_curtis_f64; pub mod cosine_similarity;
pub mod cross_product;
pub mod determinant;
pub mod matrix_inverse;
pub mod matrix_power;
pub mod matrix_rank;
pub mod outer_product;
pub mod tensor_dot;
pub mod clip_grad_norm;
pub mod clip_grad_value;
pub mod complex;
pub mod fft;
#[cfg(feature = "domain-md")]
pub mod md;
#[cfg(feature = "domain-lattice")]
pub mod lattice;
#[cfg(feature = "domain-physics")]
pub mod physics;
#[cfg(feature = "domain-fold")]
pub mod alphafold2;
pub mod anderson_coupling;
pub mod lanczos;
pub mod stats_f64;
#[cfg(feature = "domain-genomics")]
pub mod bio;
#[cfg(feature = "domain-pharma")]
pub mod health;
#[cfg(feature = "domain-pharma")]
pub mod pharma;
pub mod procedural;
pub mod dequantize;
pub mod fake_quantize;
pub mod quantize;
pub mod anchor_generator;
pub mod bbox_transform;
pub mod box_iou;
pub mod giou_loss;
pub mod nms;
pub mod roi_align;
pub mod roi_pool;
pub mod soft_nms;
pub mod adaptive_avg_pool1d;
pub mod adaptive_max_pool1d;
pub mod fractional_max_pool2d;
pub mod lp_pool2d;
pub mod focal_loss_alpha;
pub mod focal_loss_v2;
pub mod smooth_l1_loss;
pub mod layer_scale;
pub mod pixel_shuffle;
pub mod put;
pub mod reshape;
pub mod take;
pub mod upsample;
pub mod view;
pub mod edge_conv;
pub mod gat_conv;
pub mod gcn_conv;
pub mod gin_conv;
pub mod global_pooling;
pub mod graph_batch_norm;
pub mod graph_conv;
pub mod graph_norm;
pub mod message_passing;
pub mod sage_conv;
pub mod adabound;
pub mod adafactor;
pub mod adamw;
pub mod cyclical_lr;
pub mod lamb;
pub mod lookahead;
pub mod onecycle;
pub mod radam;
pub mod sgdw;
pub mod griffin_lim;
pub mod istft;
pub mod mel_scale;
pub mod mfcc;
pub mod pitch_shift;
pub mod spectral_norm_1d;
pub mod spectrogram;
pub mod stft;
pub mod time_stretch;
pub mod window_function;
pub mod cutmix;
pub mod elastic_transform;
pub mod grid_mask;
pub mod label_smoothing;
pub mod mixup;
pub mod mosaic;
pub mod random_affine;
pub mod random_crop;
pub mod random_erasing;
pub mod random_perspective;
pub mod random_rotation;
pub mod center_loss;
pub mod chamfer_distance;
pub mod earth_mover_distance;
pub mod iou_loss;
pub mod perceptual_loss;
pub mod psnr;
pub mod ssim;
pub mod tversky_loss;
pub mod wasserstein_loss;
pub use abs_wgsl::Abs;
pub use add::Add;
pub use argmax_wgsl::Argmax;
pub use batch_norm::BatchNorm;
pub use ceil_wgsl::Ceil;
pub use clamp_wgsl::Clamp;
pub use concat::Concat;
pub use cos_wgsl::Cos;
pub use div::Div;
pub use dropout_wgsl::Dropout;
pub use elu_wgsl::ELU;
pub use eq::Eq;
pub use exp_wgsl::Exp;
pub use floor_wgsl::Floor;
pub use gather_nd::GatherNd;
pub use gather_wgsl::Gather;
pub use gelu_wgsl::GELU;
pub use gt::Gt;
pub use hardswish_wgsl::Hardswish;
pub use index_add::IndexAdd;
pub use index_select::IndexSelect;
pub use index_select_wgsl::IndexSelect as IndexSelectWgsl;
pub use layer_norm_wgsl::LayerNorm;
pub use leaky_relu_wgsl::LeakyRelu;
pub use log_wgsl::Log;
pub use lt::Lt;
pub use max_wgsl::Max;
pub use mean::Mean;
pub use min_wgsl::Min;
pub use mish_wgsl::Mish;
pub use mul::Mul;
pub use neg_wgsl::Neg;
pub use norm::Norm;
pub use pad_wgsl::Pad;
pub use pow_wgsl::Pow;
pub use prod::Prod;
pub use reciprocal_wgsl::Reciprocal;
pub use relu::ReLU;
pub use round_wgsl::Round;
pub use scatter_nd::ScatterNd;
pub use scatter_wgsl::Scatter;
pub use selu_wgsl::SELU;
pub use sigmoid::Sigmoid;
pub use sign_wgsl::Sign;
pub use sin_wgsl::Sin;
pub use slice::Slice;
pub use slice_assign::{SliceAssign, SliceRange};
pub use softmax::Softmax;
pub use sqrt_wgsl::Sqrt;
pub use squeeze::Squeeze;
pub use std::Std;
pub use sub::Sub;
pub use sum::Sum;
pub use swish_wgsl::Swish;
pub mod tanh; pub use transpose::Transpose;
pub use unsqueeze::Unsqueeze;
pub use variance::Variance;
pub use view::View;
pub use where_op::Where;
pub use adadelta::AdaDelta;
pub use adagrad::AdaGrad;
pub use adam::Adam;
pub use adaptive_avgpool2d::AdaptiveAvgPool2D;
pub use adaptive_maxpool2d::AdaptiveMaxPool2D;
pub use avgpool2d::AvgPool2D;
pub use batch_matmul::BatchMatMul;
pub use binary_cross_entropy::BinaryCrossEntropy;
pub use broadcast::Broadcast;
pub use cast::Cast;
pub use conv1d::Conv1D;
pub use conv2d::Conv2D;
pub use conv3d::Conv3D;
pub use cross_entropy::CrossEntropy;
pub use cumprod_f64::CumprodF64;
pub use cumsum_f64::CumsumF64;
pub use cumsum_wgsl::Cumsum;
pub use depthwise_conv2d::DepthwiseConv2D;
pub use dotproduct::DotProduct;
pub use embedding_wgsl::Embedding;
pub use fill::Fill;
pub use filter::{Filter, FilterOperation};
pub use flip_wgsl::Flip;
pub use focal_loss::FocalLoss;
pub use global_avgpool::GlobalAvgPool;
pub use global_maxpool::GlobalMaxPool;
pub use group_norm_wgsl::GroupNorm;
pub use huber_loss::HuberLoss;
pub use instance_norm_wgsl::InstanceNorm;
pub use l1_loss_wgsl::L1Loss;
pub use mae_loss::MAELoss;
pub use map::{Map, MapOperation};
pub use matmul::MatMul;
pub use matmul_tiled::MatmulTiled;
pub use max_abs_diff_f64::MaxAbsDiffF64;
pub use maxpool2d::MaxPool2D;
pub use mse_loss::MseLoss;
pub use norm_reduce_f64::NormReduceF64;
pub use one_hot_wgsl::OneHot;
pub use prod_reduce_f64::ProdReduceF64;
pub use reduce::{Reduce, ReduceOperation};
pub use repeat_wgsl::Repeat;
pub use rmsnorm::RMSNorm;
pub use rmsprop::RMSprop;
pub use scan::Scan;
pub use sgd::SGD;
pub use softplus_wgsl::Softplus;
pub use split::Split;
pub use sum_reduce_f64::SumReduceF64;
pub use transposed_conv2d::TransposedConv2D;
pub use variance_reduce_f64::VarianceReduceF64;
pub mod lovasz_loss;
pub use acos_wgsl::Acos;
pub use acosh_wgsl::Acosh;
pub use asin_wgsl::Asin;
pub use asinh_wgsl::Asinh;
pub use atan_wgsl::Atan;
pub use atanh_wgsl::Atanh;
pub use bessel_i0_wgsl::BesselI0;
pub use bessel_j0_wgsl::BesselJ0;
pub use bessel_j1_wgsl::BesselJ1;
pub use bessel_k0_wgsl::BesselK0;
pub use cosh_wgsl::Cosh;
pub use erf_wgsl::Erf;
pub use erfc_wgsl::Erfc;
pub use kl_divergence::KLDivergence; pub use lgamma_wgsl::Lgamma;
pub use logsumexp_wgsl::LogsumexpWgsl;
pub use sinh_wgsl::Sinh;
pub use smooth_l1_loss::SmoothL1Loss; pub use tanh::Tanh;