Group

public struct Group<Element> : RandomAccessCollection where Element : DynamicGraph.AnyTensor
extension DynamicGraph.Group: DynamicGraph.AnyGroup
extension DynamicGraph.Group: DynamicGraph_Any where Element: DynamicGraph.AnyTensor
extension DynamicGraph.Group: DynamicGraph.AnyTensorGroup where Element: DynamicGraph.AnyTensor
extension DynamicGraph.Group: DynamicGraph.TensorGroup
where Element: DynamicGraph.TensorGroup, Element: DynamicGraph.AnyTensor

Type-aware group of tensors.

Available where Element: DynamicGraph.AnyTensor

Available where Element == DynamicGraph.AnyTensor

  • Explicitly cast the underlying storage to a specific type. It is a helper function than doing DynamicGraph.Group>(something). Less code change required if we change this from group to tensor.

    Declaration

    Swift

    public func `as`<T>(of: T.Type) -> DynamicGraph.Group<DynamicGraph.Tensor<T>> where T : TensorNumeric

Available where Element: DynamicGraph.AnyTensor