Expand description
§Tensor as a thin wrapper around ndarray
and nalgebra
In general, we have dynamic-size tensor (ndarrays’s) of static-size
tensors (nalgebra’s SMat, SVec, etc.). Note this crate is merely an
implementation detail of the sophus_image
crate and might be absorbed into
that crate in the future.
§Integration with sophus-rs
This crate is part of the sophus umbrella crate. It re-exports the relevant prelude types under prelude, so you can seamlessly interoperate with the rest of the sophus-rs types.
Modules§
- prelude
- sophus_tensor prelude.
Structs§
- ArcTensor
- Arc tensor - a tensor with shared ownership
- MutTensor
- mutable tensor
- MutTensor
View - Mutable tensor view
- STensor
Format - Format of a static tensor
- Tensor
View - Tensor view
Traits§
- Inner
Scalar ToVec - Converting a tensor of scalars to a tensor of 1-vectors
- Inner
VecTo Mat - Converting a tensor of vectors to a tensor of Rx1 matrices
- IsMut
Tensor Like - A mutable tensor like object
- IsStatic
Tensor - Trait for static tensors
- IsTensor
Like - Is a tensor-like object
- IsTensor
View - Is a tensor view like object
Type Aliases§
- ArcTensorD
- rank-1 tensor of scalars with shape D0
- ArcTensorDD
- rank-2 tensor of scalars with shape [D0 x D1]
- ArcTensorDDDD
- rank-4 tensor of scalars with shape [D0 x D1 x D2 x D3]
- ArcTensorDDDR
- rank-4 tensor of vectors with shape [D0 x D1 x D2 x R]
- ArcTensorDDR
- rank-3 tensor of vectors with shape [D0 x D1 x R]
- ArcTensorDDRC
- rank-4 tensor of matrices with shape [D0 x R x C x B]
- ArcTensorDR
- rank-2 tensor of vectors with shape [D0 x R]
- ArcTensorDRC
- rank-3 tensor of matrices with shape [D0 x R x C]
- ArcTensorRRR
- rank-3 tensor of scalars with shape [D0 x D1 x D2]
- ArcTensorX
- rank-1 tensor of scalars
- ArcTensorXR
- rank-2 tensor of vectors with shape R
- ArcTensorXRC
- rank-2 tensor of matrices with shape [R x C]
- MutTensorD
- rank-1 mutable tensor of scalars with shape D0
- MutTensorDD
- rank-2 mutable tensor of scalars with shape [D0 x D1]
- MutTensorDDD
- rank-3 mutable tensor of scalars with shape [D0 x D1 x D2]
- MutTensorDDDD
- rank-4 mutable tensor of scalars with shape [D0 x D1 x D2 x D3]
- MutTensorDDDDD
- rank-5 mutable tensor of scalars with shape [D0 x D1 x D2 x D3 x D4]
- MutTensorDDDDR
- rank-5 mutable tensor of vectors with shape [D0 x D1 x D2 x D3 x R]
- MutTensorDDDR
- rank-4 mutable tensor of vectors with shape [D0 x D1 x D2 x R]
- MutTensorDDDRC
- rank-5 mutable tensor of matrices with shape [D0 x D1 x D2 x R x C]
- MutTensorDDR
- rank-3 mutable tensor of vectors with shape [D0 x D1 x R]
- MutTensorDDRC
- rank-4 mutable tensor of matrices with shape [D0 x D1 x R x C]
- MutTensorDR
- rank-2 mutable tensor of vectors with shape [D0 x R]
- MutTensorDRC
- rank-3 mutable tensor of matrices with shape [D0 x R x C]
- MutTensorX
- Mutable tensor of scalars
- MutTensorXR
- Mutable tensor of vectors with shape R
- MutTensorXRC
- Mutable tensor of matrices with shape [R x C]
- Tensor
ViewD - rank-1 tensor view of scalars with shape D0
- Tensor
ViewDD - rank-2 tensor view of scalars with shape [D0 x D1]
- Tensor
ViewDDD - rank-3 tensor view of scalars with shape [D0 x R x B]
- Tensor
ViewDDDD - rank-4 tensor view of scalars with shape [D0 x D1 x D2 x D3]
- Tensor
ViewDDDR - rank-4 tensor view of vectors with shape [D0 x D1 x D2 x R]
- Tensor
ViewDDR - rank-3 tensor view of vectors with shape [D0 x D1 x R]
- Tensor
ViewDDRC - rank-4 tensor view of matrices with shape [D0 x R x C x B]
- Tensor
ViewDR - rank-2 tensor view of vectors with shape [D0 x R]
- Tensor
ViewDRC - rank-3 tensor view of matrices with shape [D0 x R x C]
- Tensor
ViewX - Tensor view of scalars
- Tensor
ViewXR - Tensor view of vectors with shape R
- Tensor
ViewXRC - Tensor view of matrices with shape [R x C]