composite
75 memberslucid.ops.compositeFunctions
absolute→ TensorElement-wise absolute value.
acosh→ TensorInverse hyperbolic cosine.
addbmm→ TensorBatched matmul with reduction over the batch axis.
addcdiv→ TensorElement-wise fused divide-add.
addcmul→ TensorElement-wise fused multiply-add with a scalar weight.
addmm→ TensorGeneral matrix multiply with a scaled accumulator (GEMM).
addmv→ TensorMatrix-vector multiply with a scaled accumulator (BLAS-2 gemv).
addr→ TensorRank-1 update of a matrix by an outer product (BLAS-2 ger).
adjoint→ TensorConjugate (Hermitian) transpose of the trailing two dimensions.
angle→ TensorPhase angle (argument) of a complex tensor.
arccosh→ TensorInverse hyperbolic cosine.
arcsinh→ TensorInverse hyperbolic sine.
arctan2→ TensorQuadrant-correct two-argument arctangent.
arctanh→ TensorInverse hyperbolic tangent.
asinh→ TensorInverse hyperbolic sine.
atanh→ TensorInverse hyperbolic tangent.
atleast_1d→ Tensor | tuple[Tensor, ...]Promote each input to at least 1 dimension.
atleast_2d→ Tensor | tuple[Tensor, ...]Promote each input to at least 2 dimensions.
atleast_3d→ Tensor | tuple[Tensor, ...]Promote each input to at least 3 dimensions.
baddbmm→ TensorBatched GEMM with a batched accumulator.
block_diag→ TensorConstruct a block-diagonal matrix from a sequence of blocks.
can_cast→ boolPredicate: can `from_dtype` be safely cast to `to_dtype`?
column_stack→ TensorStack tensors as columns of a 2-D matrix.
conj_physical→ TensorEagerly materialised complex conjugate.
divide→ TensorElement-wise true division.
dsplit→ list[Tensor]Split a tensor along its third (depth) axis.
dstack→ TensorStack tensors along the third (depth) axis.
expm1→ TensorElement-wise $e^{x} - 1$.
float_power→ TensorElement-wise power that always promotes operands to `float64`.
fmax→ TensorElement-wise NaN-quiet maximum.
fmin→ TensorElement-wise NaN-quiet minimum.
ger→ TensorOuter product of two 1-D tensors.
heaviside→ TensorHeaviside step function with a user-selectable value at $x = 0$.
hsplit→ list[Tensor]Split a tensor horizontally (along axis 1 for rank $\geq 2$).
is_conj→ boolPredicate: does the tensor carry a lazy "conjugated" flag?
is_neg→ boolPredicate: does the tensor carry a lazy "negated" flag?
is_nonzero→ boolPredicate: is a single-element tensor non-zero?
is_same_size→ boolPredicate: do two tensors have identical shapes?
is_storage→ boolPredicate: is the object a separate Storage container?
isin→ TensorPer-element set-membership test.
isneginf→ TensorElement-wise test for negative infinity.
isposinf→ TensorElement-wise test for positive infinity.
isreal→ TensorElement-wise test for real-valued entries.
logit→ TensorLogit function — inverse of the logistic sigmoid.
moveaxis→ TensorMove one or more axes to new positions.
multiply→ TensorElement-wise product.
mv→ TensorMatrix-vector product.
nanmean→ TensorMean of the tensor, ignoring NaN entries.
nanmedian→ TensorMedian of a tensor, ignoring NaN entries.
nansum→ TensorSum the tensor, treating NaN entries as zero.
negative→ TensorElement-wise negation.
numel→ intReturn the total number of elements in a tensor.
polar→ TensorBuild a complex tensor from polar coordinates (magnitude, phase).
positive→ TensorElement-wise identity — returns the input unchanged.
promote_types→ DTypeCompute the joint promotion of two dtypes.
resolve_conj→ TensorMaterialise any pending lazy conjugation — no-op in Lucid.
resolve_neg→ TensorMaterialise any pending lazy negation — no-op in Lucid.
result_type→ DTypeCompute the dtype that a binary operation on the inputs would produce.
rot90→ TensorRotate a tensor by 90° in a chosen plane.
row_stack→ TensorStack tensors as rows — alias of `lucid.vstack`.
rsub→ TensorReverse subtraction: $b - \alpha \cdot a$.
signbit→ TensorElement-wise sign-bit predicate.
sinc→ TensorNormalised sinc function with the standard removable singularity at 0.
subtract→ TensorElement-wise subtraction with an optional scalar multiplier.
swapaxes→ TensorReturn `x` with axes `axis0` and `axis1` exchanged.
swapdims→ TensorSwap two named dimensions of a tensor.
t→ TensorShort-form transpose for tensors of rank at most 2.
take_along_dim→ TensorGather elements from `x` at positions `indices` along `dim`.
tensor_split→ list[Tensor]Split a tensor along `dim`, permitting unequal final-piece sizes.
true_divide→ TensorElement-wise true (floating-point) division.
vdot→ TensorVector dot product (complex-conjugating on the first argument).
view_as_complex→ TensorReinterpret a real tensor with a trailing pair axis as a complex tensor.
view_as_real→ TensorReinterpret a complex tensor as a real tensor with a trailing pair axis.
vsplit→ list[Tensor]Split a tensor along its first (vertical) axis.
xlogy→ TensorCompute $x \log y$ with the convention $0 \cdot \log 0 = 0$.