Re-exports§
pub use crate::DeviceCpu;pub use crate::tensor::reduction::TensorSumBoolAPI;pub use crate::storage::adv_indexing::*;pub use crate::storage::assignment::*;pub use crate::storage::combined_trait::*;pub use crate::storage::conversion::*;pub use crate::storage::creation::*;pub use crate::storage::data::*;pub use crate::storage::device::*;pub use crate::storage::matmul::*;pub use crate::storage::operators::*;pub use crate::storage::reduction::*;pub use crate::device_cpu_serial::device::*;pub use crate::tensor::asarray::*;pub use crate::tensor::creation::*;pub use crate::tensor::creation_from_tensor::*;pub use crate::tensor::device_conversion::*;pub use crate::tensor::ext_conversion::*;pub use crate::tensor::indexing::*;pub use crate::tensor::iterator_axes::*;pub use crate::tensor::iterator_elem::*;pub use crate::tensor::manuplication::exports::*;pub use crate::tensor::ownership_conversion::*;pub use crate::tensor::tensor_mutable::*;pub use crate::prelude::rstsr_traits::*;pub use crate::feature_rayon::device::*;pub use crate::device_faer::device::*;pub use crate::tensorbase::*;
Modules§
- Tensor
Copy Policy - The policy of copying tensor.
- vec
- A contiguous growable array type with heap-allocated contents, written
Vec<T>.
Macros§
- duplicate
- Duplicates the given code and substitutes specific identifiers for different code snippets in each duplicate.
- format
- Creates a
Stringusing interpolation of runtime expressions. - impl_
from_ tuple_ to_ axes_ index - izip
- Create an iterator running multiple iterators in lockstep.
- rstsr_
assert - rstsr_
assert_ eq - rstsr_
errcode - rstsr_
error - rstsr_
invalid - rstsr_
pattern - rstsr_
raise - s
- slice
- Generate slice with into support and optional parameters.
- tensor_
from_ nested - Create a tensor from a nested array literal (for development purposes).
- vec
- Creates a
Veccontaining the arguments.
Structs§
- Box
- A pointer type that uniquely owns a heap allocation of type
T. - Error
- Indexed
Iter Layout - IsClose
Args - Arguments for
isclosefunction. - Iter
Layout ColMajor - Layout iterator (column-major).
- Iter
Layout RowMajor - Layout iterator (row-major).
- Layout
- Layout of tensor.
- Layout
MatMul Config - ParIterRSTSR
- Phantom
Data - Zero-sized type used to mark things that “act like” they own a
T. - Slice
- Slicing for python (numpy) convention; somehow similar to Rust’s range.
- Stride
- String
- A UTF-8–encoded, growable string.
- Thread
Pool - Represents a user-created thread pool.
- Vec
- A contiguous growable array type, written as
Vec<T>, short for ‘vector’.
Enums§
- Axes
Index - Enum for Axes indexing
- Broadcast
Type - Flag
Diag - Flag
Order - The order of the tensor.
- Flag
Side - Flag
Symm - Flag
Trans - Flag
UpLo - Indexer
- Iter
Layout - MatMul
Type - Rules of matmul.
- RSTSR
Error - Tensor
Iter Order - The policy of the tensor iterator.
Traits§
- Changeable
Default - DType
CastAPI - DType
PromoteAPI - Debug
?formatting.- DimAPI
- DimBaseAPI
- DimBroadcastableAPI
- DimDevAPI
- DimIntoAPI
- DimLayout
ContigAPI - DimShapeAPI
- DimStrideAPI
- Display
- Format trait for an empty format,
{}. - ExtFloat
- Extension trait for float types (
num::Float). - ExtNum
- ExtReal
- Extension trait for real types (floats and integers included).
- Indexer
DynamicAPI - Indexer
Larger OneAPI - Indexer
PreserveAPI - Indexer
Smaller OneAPI - Iter
Split AtAPI - Itertools
- An
Iteratorblanket implementation that provides extra adaptors and methods. - Layout
MatMulAPI - RSTSR
ResultAPI - ToString
- A trait for converting a value to a
String. - Write
- A trait for writing or formatting into Unicode-accepting buffers or streams.
Functions§
- aligned_
alloc - Create an uninitialized vector with the given size and alignment.
- aligned_
uninitialized_ ⚠vec - Create an conditionally aligned uninitialized vector with the given size.
- allclose_
f64 - Compare two tensors with f64 data type.
- assign_
arbitary_ cpu_ rayon - assign_
arbitary_ cpu_ serial - assign_
arbitary_ promote_ cpu_ rayon - assign_
arbitary_ promote_ cpu_ serial - assign_
arbitary_ uninit_ cpu_ rayon - assign_
arbitary_ uninit_ cpu_ serial - assign_
arbitary_ uninit_ promote_ cpu_ rayon - assign_
arbitary_ uninit_ promote_ cpu_ serial - assign_
cpu_ rayon - assign_
cpu_ serial - assign_
promote_ cpu_ rayon - assign_
promote_ cpu_ serial - assign_
uninit_ cpu_ rayon - assign_
uninit_ cpu_ serial - assign_
uninit_ promote_ cpu_ rayon - assign_
uninit_ promote_ cpu_ serial - broadcast_
layout - Layout broadcasting.
- broadcast_
layout_ to_ first - Layout broadcasting.
- broadcast_
shape - Shape broadcasting.
- fill_
cpu_ rayon - fill_
cpu_ serial - fill_
promote_ cpu_ rayon - fill_
promote_ cpu_ serial - fingerprint
- Get a somehow unique fingerprint of a tensor.
- gemm_
ix2_ naive_ cpu_ rayon - gemm_
naive_ cpu_ serial - gemv_
naive_ cpu_ serial - gevm_
naive_ cpu_ serial - greedy_
layout - This function will return a f-prefer layout that make minimal memory accessing efforts (pointers will not frequently back-and-forth).
- index_
select_ cpu_ rayon - index_
select_ cpu_ serial - inner_
dot_ naive_ cpu_ rayon - inner_
dot_ naive_ cpu_ serial - inner_
pack_ tril_ c_ contig - inner_
pack_ tril_ general - inner_
pack_ triu_ c_ contig - inner_
pack_ triu_ general - inner_
unpack_ tril_ c_ contig - inner_
unpack_ tril_ general - inner_
unpack_ triu_ c_ contig - inner_
unpack_ triu_ general - layout_
col_ major_ dim_ dispatch_ 1 - layout_
col_ major_ dim_ dispatch_ 2 - layout_
col_ major_ dim_ dispatch_ 3 - layout_
col_ major_ dim_ dispatch_ 2diff - layout_
col_ major_ dim_ dispatch_ par_ 1 - layout_
col_ major_ dim_ dispatch_ par_ 2 - layout_
col_ major_ dim_ dispatch_ par_ 3 - layout_
col_ major_ dim_ dispatch_ par_ 2diff - layout_
for_ array_ copy - Return a layout that is suitable for array copy.
- layout_
reshapeable - Check if a tensor can be reshaped to a new shape without explicitly copying underlying data.
- matmul_
naive_ cpu_ serial - normalize_
axes_ index - Normalize axes argument into a tuple of non-negative integer axes.
- op_
muta_ func_ cpu_ rayon - op_
muta_ func_ cpu_ serial - op_
muta_ numb_ func_ cpu_ rayon - op_
muta_ numb_ func_ cpu_ serial - op_
muta_ refb_ func_ cpu_ rayon - op_
muta_ refb_ func_ cpu_ serial - op_
mutc_ numa_ refb_ func_ cpu_ rayon - op_
mutc_ numa_ refb_ func_ cpu_ serial - op_
mutc_ refa_ numb_ func_ cpu_ rayon - op_
mutc_ refa_ numb_ func_ cpu_ serial - op_
mutc_ refa_ refb_ func_ cpu_ rayon - op_
mutc_ refa_ refb_ func_ cpu_ serial - orderchange_
out_ c2r_ ix2_ cpu_ rayon - Change order (row/col-major) a matrix out-place using a naive algorithm.
- orderchange_
out_ c2r_ ix2_ cpu_ serial - Change order (row/col-major) a matrix out-place using a naive algorithm.
- orderchange_
out_ r2c_ ix2_ cpu_ rayon - Change order (row/col-major) a matrix out-place using a naive algorithm.
- orderchange_
out_ r2c_ ix2_ cpu_ rayon_ no_ pool - Change order (row/col-major) a matrix out-place using a naive algorithm.
- orderchange_
out_ r2c_ ix2_ cpu_ serial - Change order (row/col-major) a matrix out-place using a naive algorithm.
- pack_
tri_ cpu_ rayon - pack_
tri_ cpu_ serial - reduce_
all_ arg_ cpu_ rayon - reduce_
all_ arg_ cpu_ serial - reduce_
all_ binary_ cpu_ rayon - reduce_
all_ binary_ cpu_ serial - reduce_
all_ cpu_ rayon - reduce_
all_ cpu_ serial - reduce_
all_ unraveled_ arg_ cpu_ rayon - reduce_
all_ unraveled_ arg_ cpu_ serial - reduce_
axes_ arg_ cpu_ rayon - reduce_
axes_ arg_ cpu_ serial - reduce_
axes_ cpu_ rayon - reduce_
axes_ cpu_ serial - reduce_
axes_ difftype_ cpu_ rayon - reduce_
axes_ difftype_ cpu_ serial - reduce_
axes_ unraveled_ arg_ cpu_ rayon - reduce_
axes_ unraveled_ arg_ cpu_ serial - reshape_
substitute_ negatives - Check
-1in shape and substitute it with the correct value. - reversed_
permute - Reversed permutation indices.
- rstsr_
backtrace - translate_
to_ col_ major - Translate multiple layouts to column-major iteration.
- translate_
to_ col_ major_ unary - Translate one layout to column-major iteration.
- translate_
to_ col_ major_ with_ contig - This function will return minimal dimension layout, that the first axis is f-contiguous.
- tril_
cpu_ serial - tril_
ix2_ cpu_ serial - triu_
cpu_ serial - triu_
ix2_ cpu_ serial - unaligned_
uninitialized_ ⚠vec - Create an unaligned uninitialized vector with the given size.
- uninitialized_
vec ⚠ - Create an uninitialized vector with the given size.
- unpack_
tri_ cpu_ rayon - unpack_
tri_ cpu_ serial - unrolled_
binary_ reduce - Fold over the manually unrolled
xs1andxs2(binary inputs) withf. - unrolled_
reduce - Fold over the manually unrolled
xswithf. - update_
layout_ by_ shape
Type Aliases§
- Ix
- Fixed size dimension.
- Ix0
- Ix1
- Ix2
- Ix3
- Ix4
- Ix5
- Ix6
- Ix7
- Ix8
- Ix9
- IxD
- IxDyn
- Dynamic size dimension.
- Result
- SliceI
- In most cases, we will use isize for indexing.
- Tensor
Diag - Tensor
Order - Tensor
Side - Tensor
Symm - Tensor
Trans - Tensor
UpLo
Unions§
- Maybe
Uninit - A wrapper type to construct uninitialized instances of
T.
Attribute Macros§
- duplicate_
item - Duplicates the item and substitutes specific identifiers for different code snippets in each duplicate.
- substitute_
item - Substitutes specific identifiers for different code snippets.
Derive Macros§
- Debug
- Derive macro generating an impl of the trait
Debug.