Vectorization #
Shared Euclidean-space vectorization utilities for analytic autograd proofs.
This module centralizes the Vec alias (EuclideanSpace ℝ (Fin n)) and the basic
Tensor ℝ [n] ↔ Vec n conversions used across multiple proof files.
PyTorch correspondence / citations #
This plays the same role as treating a length-n tensor as an element of $\mathbb R^n$ when using
standard analysis results (mean value theorem, operator norms, etc.).
https://pytorch.org/docs/stable/linalg.html
Euclidean vectors over ℝ.
Instances For
Convert a rank-one tensor (Tensor ℝ [n]) into a Euclidean vector Vec n.
This is the “analysis-friendly” view of a length-n tensor as an element of $\mathbb R^n$.
Instances For
Coordinate evaluation of the Euclidean view of a rank-one tensor.
Convert a Euclidean vector Vec n back into a rank-one tensor (Tensor ℝ [n]).
This is the inverse direction of getScalarE.
Instances For
getScalarE is a left inverse of ofFnE.
ofFnE is a left inverse of getScalarE.