Typed Module
Functions and values
| Function or value |
Description
|
Full Usage:
addScalar a b
Parameters:
TypedTensor<Scalar, 'u>
b : TypedTensor<Scalar, 'u>
Returns: TypedTensor<Scalar, 'u>
|
|
Full Usage:
addVector a b
Parameters:
TypedTensor<Vector, 'u>
b : TypedTensor<Vector, 'u>
Returns: TypedTensor<Vector, 'u>
|
|
Full Usage:
broadcastScalarToVector s len
Parameters:
TypedTensor<Scalar, 'u>
len : int
Returns: TypedTensor<Vector, 'u>
|
|
Full Usage:
divScalar a b
Parameters:
TypedTensor<Scalar, 'u>
b : TypedTensor<Scalar, 'v>
Returns: TypedTensor<Scalar, MeasureProduct<MeasureInverse<'v>, MeasureProduct<'u, MeasureOne>>>
|
|
Full Usage:
divVectorByScalar v s
Parameters:
TypedTensor<Vector, 'u>
s : TypedTensor<Scalar, 'v>
Returns: TypedTensor<Vector, MeasureProduct<MeasureInverse<'v>, MeasureProduct<'u, MeasureOne>>>
|
|
Full Usage:
dot a b
Parameters:
TypedTensor<Vector, 'u>
b : TypedTensor<Vector, 'u>
Returns: TypedTensor<Scalar, MeasureProduct<MeasureProduct<'u, 'u>, MeasureOne>>
|
|
Full Usage:
filterByMask mask v
Parameters:
bool[]
v : TypedTensor<Vector, 'u>
Returns: TypedTensor<'a, 'u0>
|
Filter a vector tensor by a boolean mask. The mask length must match the vector length.
|
Full Usage:
itemAt i v
Parameters:
int
v : TypedTensor<Vector, 'u>
Returns: TypedTensor<Scalar, 'u>
|
|
|
|
Full Usage:
logScalar a
Parameters:
TypedTensor<Scalar, 'u>
Returns: TypedTensor<Scalar, MeasureOne>
|
|
Full Usage:
logVector a
Parameters:
TypedTensor<Vector, 'u>
Returns: TypedTensor<Vector, MeasureOne>
|
|
Full Usage:
matMul a b
Parameters:
TypedTensor<Matrix, 'u>
b : TypedTensor<Matrix, 'v>
Returns: TypedTensor<Matrix, MeasureProduct<'v, MeasureProduct<'u, MeasureOne>>>
|
|
Full Usage:
minusScalar a b
Parameters:
TypedTensor<Scalar, 'u>
b : TypedTensor<Scalar, 'u>
Returns: TypedTensor<Scalar, 'u>
|
|
Full Usage:
mulScalar a b
Parameters:
TypedTensor<Scalar, 'u>
b : TypedTensor<Scalar, 'v>
Returns: TypedTensor<Scalar, MeasureProduct<'v, MeasureProduct<'u, MeasureOne>>>
|
|
|
|
|
|
|
|
Full Usage:
prepend1D head tail
Parameters:
TypedTensor<Scalar, 'u>
tail : TypedTensor<Vector, 'u>
Returns: TypedTensor<Vector, 'u>
|
Prepend a scalar to the front of a vector, keeping it differentiable
|
|
Change the unit-of-measure phantom type of a TypedTensor without altering its value. This is purely a compile-time reinterpretation; the underlying DiffSharp tensor is unchanged.
|
Full Usage:
scale s v
Parameters:
TypedTensor<Scalar, 'a>
v : TypedTensor<Vector, 'b>
Returns: TypedTensor<Vector, MeasureProduct<'b, MeasureProduct<'a, MeasureOne>>>
|
|
Full Usage:
sqrtScalar x
Parameters:
TypedTensor<Scalar, MeasureProduct<MeasureProduct<'u, 'u>, MeasureOne>>
Returns: TypedTensor<Scalar, 'u>
|
|
Full Usage:
square x
Parameters:
TypedTensor<Scalar, 'u>
Returns: TypedTensor<Scalar, MeasureProduct<MeasureProduct<'u, 'u>, MeasureOne>>
|
|
Full Usage:
squareVector x
Parameters:
TypedTensor<Vector, 'u>
Returns: TypedTensor<Vector, MeasureProduct<MeasureProduct<'u, 'u>, MeasureOne>>
|
|
Full Usage:
stack1D items
Parameters:
TypedTensor<Scalar, 'u>[]
Returns: TypedTensor<Vector, 'u>
|
|
Full Usage:
subVector a b
Parameters:
TypedTensor<Vector, 'u>
b : TypedTensor<Vector, 'u>
Returns: TypedTensor<Vector, 'u>
|
|
|
|
|
|
|
|
|
|
|
|
bristlecone