Crate sophus_tensor

Source
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
MutTensorView
Mutable tensor view
STensorFormat
Format of a static tensor
TensorView
Tensor view

Traits§

InnerScalarToVec
Converting a tensor of scalars to a tensor of 1-vectors
InnerVecToMat
Converting a tensor of vectors to a tensor of Rx1 matrices
IsMutTensorLike
A mutable tensor like object
IsStaticTensor
Trait for static tensors
IsTensorLike
Is a tensor-like object
IsTensorView
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]
TensorViewD
rank-1 tensor view of scalars with shape D0
TensorViewDD
rank-2 tensor view of scalars with shape [D0 x D1]
TensorViewDDD
rank-3 tensor view of scalars with shape [D0 x R x B]
TensorViewDDDD
rank-4 tensor view of scalars with shape [D0 x D1 x D2 x D3]
TensorViewDDDR
rank-4 tensor view of vectors with shape [D0 x D1 x D2 x R]
TensorViewDDR
rank-3 tensor view of vectors with shape [D0 x D1 x R]
TensorViewDDRC
rank-4 tensor view of matrices with shape [D0 x R x C x B]
TensorViewDR
rank-2 tensor view of vectors with shape [D0 x R]
TensorViewDRC
rank-3 tensor view of matrices with shape [D0 x R x C]
TensorViewX
Tensor view of scalars
TensorViewXR
Tensor view of vectors with shape R
TensorViewXRC
Tensor view of matrices with shape [R x C]