VectorExtension Module

Type extensions

Type extension Description

this.Copy

Full Usage: this.Copy

Parameters:
    () : unit

Returns: Vector<'T>

Extended Type: Vector

() : unit
Returns: Vector<'T>

this.Norm

Full Usage: this.Norm

Parameters:
    () : unit

Returns: float

Extended Type: Vector

() : unit
Returns: float

this.Norm

Full Usage: this.Norm

Returns: float

Extended Type: Vector

Returns: float

this.ToArray

Full Usage: this.ToArray

Parameters:
    () : unit

Returns: 'T[]

Extended Type: Vector

() : unit
Returns: 'T[]

Vector.geomspace (start, stop, num, ?IncludeEndpoint)

Full Usage: Vector.geomspace (start, stop, num, ?IncludeEndpoint)

Parameters:
    start : float - start value (is included)
    stop : float - end value (by default is included)
    num : int
    ?IncludeEndpoint : bool - If false, the vector does not contain the stop value. Defaults to true.

Returns: vector

Creates a geometric vector of floats with values between a given interval.

Extended Type: Vector

start : float

start value (is included)

stop : float

end value (by default is included)

num : int
?IncludeEndpoint : bool

If false, the vector does not contain the stop value. Defaults to true.

Returns: vector

Vector.linspace (start, stop, num, ?IncludeEndpoint)

Full Usage: Vector.linspace (start, stop, num, ?IncludeEndpoint)

Parameters:
    start : float - start value (is included)
    stop : float - end value (by default is included )
    num : int
    ?IncludeEndpoint : bool - If false, the vector does not contain the stop value

Returns: vector

Creates an vector with values between a given interval

Extended Type: Vector

start : float

start value (is included)

stop : float

end value (by default is included )

num : int
?IncludeEndpoint : bool

If false, the vector does not contain the stop value

Returns: vector