Vector
public struct Vector
extension Vector: CustomStringConvertible
extension Vector: Hashable
extension Vector: Sequence
Swift representation of a complex “column” vector
-
Number of elements in the vector
Declaration
Swift
public var count: Int { get }
-
Returns first element
Declaration
Swift
public var first: Complex<Double> { get }
-
Use [index] to access elements in the vector
Declaration
Swift
public subscript(index: Int) -> Complex<Double> { get }
-
Errors throwed by
See moreVector.init()
Declaration
Swift
public enum InitError : Error
-
Initializes a new column
Vector
instance withelements
.Throws
Declaration
Swift
public init(_ elements: [Complex<Double>]) throws
Parameters
elements
List of
Complex
values.Return Value
A new column
Vector
instance.
-
Maps vector into a list
Declaration
Swift
public var elements: [Complex<Double>] { get }
-
Declaration
Swift
public var description: String { get }
-
Declaration
Swift
public typealias Iterator = ArraySlice<Complex<Double>>.Iterator
-
Declaration
Swift
public func makeIterator() -> Vector.Iterator