Crate deep_causality_tensor

Crate deep_causality_tensor 

Source
Expand description

§deep_causality_tensor

Hardware-agnostic tensor library with backend abstraction for CPU and GPU computation.

Modules§

extensions
utils_tests

Structs§

BackendTensor
A backend-agnostic tensor wrapper.
CausalTensorWitness
CpuBackend
CPU Backend using pure Rust CpuTensor<T>.
InternalCpuTensor
CpuTensor is a low-dimensional (up to ~5-25 dimensions recommended) tensor backed by a single, contiguous Vec<T>. It uses a stride-based memory layout for efficient, cache-friendly access and manipulation.

Enums§

CausalTensorError
Errors that can occur during tensor operations.
Device
Represents the device where tensor computations occur.
EinSumValidationError
Specific errors that can occur during EinSum AST validation or execution.
GenericEinSumOp

Traits§

CausalTensorMathExt
LinearAlgebraBackend
Advanced linear algebra operations.
Tensor
TensorBackend
Defines the compute backend contract for tensor operations.
TensorData
Marker trait for allowed tensor data types.

Type Aliases§

CausalTensor
Public CausalTensor type, generic over backing data but using DefaultBackend.
DefaultBackend
Default backend for CausalTensor. Defaults to CPU. Use mlx feature for MLX backend (when available).
DefaultFloat
EinSumAST
Public EinSumAST, generic over T, matches CausalTensor.
EinSumOp
Public EinSumOp, generic over T, matches CausalTensor.
GenericEinSumAST