Contents

mutableView(as:)

Returns a mutable, typed view of this array’s elements.

Declaration

mutating func mutableView<T>(as type: T.Type = T.self) -> NDArray.MutableView<T> where T : BitwiseCopyable

Parameters

  • type:

    The Swift type that corresponds to this array’s Scalartype Swift.property. For example, pass Int32.self for an array with scalar type .int32.

Mentioned in

Return Value

A mutable view of the array’s elements.

See Also

Accessing elements