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::iterator_axes::*;
pub use crate::tensor::iterator_elem::*;
pub use crate::tensor::manuplication::*;
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.
- broadcast
- Layout broadcasting.
- dim
- indexer
- iterator
- Layout (double-ended) iterator.
- layoutbase
- Layout of tensor.
- matmul
- Layout manuplication for matmul and other linalg operations
- rearrangement
- Layout rearrangement.
- reshape
- Auxiliary function for reshaping a tensor.
- shape
- slice
- stride
- 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
String
using 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.
- vec
- Creates a
Vec
containing the arguments.
Structs§
- Box
- A pointer type that uniquely owns a heap allocation of type
T
. - Indexed
Iter Layout - 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 - Error
- 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.
- Tensor
Iter Order - The policy of the tensor iterator.
Traits§
- Changeable
Default - Debug
?
formatting.- DimAPI
- DimBaseAPI
- DimBroadcastableAPI
- DimDevAPI
- DimIntoAPI
- DimLayout
ContigAPI - DimShapeAPI
- DimStrideAPI
- Display
- Format trait for an empty format,
{}
. - Indexer
DynamicAPI - Indexer
Larger OneAPI - Indexer
PreserveAPI - Indexer
Smaller OneAPI - Iter
Split AtAPI - Itertools
- An
Iterator
blanket implementation that provides extra adaptors and methods. - Layout
MatMulAPI - 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_
cpu_ rayon - assign_
cpu_ serial - broadcast_
layout - Layout broadcasting.
- broadcast_
layout_ to_ first - Layout broadcasting.
- broadcast_
shape - Shape broadcasting.
- fill_
cpu_ rayon - fill_
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 - 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_ 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
-1
in shape and substitute it with the correct value. - reversed_
permute - Reversed permutation indices.
- 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_
reduce - Fold over the manually unrolled
xs
withf
- 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
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
.