Tensors Module
More shape-aware intermediary layer for translating between DiffSharp tensors and Bristlecone functions.
Types and nested modules
| Type/Module | Description |
|
|
|
|
Operators that rely on the 0/1 encoding of booleans in DiffSharp for working with raw tensors. |
|
|
|
|
|
|
|
|
'Shape = Scalar | Vector | Matrix 'U = unit of measure for element type (or float for no UoM) |
|
|
|
|
|
|
Functions and values
| Function or value |
Description
|
|
|
|
|
|
|
|
|
|
|
|
|
Active patterns
| Active pattern |
Description
|
Full Usage:
(|MatrixOfShape|_|) (rows, cols) t
Parameters:
int
cols : int
t : Tensor
Returns: TypedTensor<Matrix, 'u> option
|
|
|
|
|
|
Full Usage:
(|VectorOfLen|_|) len t
Parameters:
int
t : Tensor
Returns: TypedTensor<Vector, 'u> option
|
|
|
|
bristlecone