FSharpPlus


Vector<'Item, 'Length> Type

Namespace: FSharpPlus.Data

Assembly: FSharpPlus.dll

Base Type: ValueType

All Interfaces: IEquatable<Vector<'Item, 'Length>> , IStructuralEquatable , IComparable<Vector<'Item, 'Length>> , IComparable , IStructuralComparable

Kind: Struct

Record fields

Record Field Description

Items

Full Usage: Items

Instance members

Instance member Description

this.UnsafeGet(i)

Full Usage: this.UnsafeGet(i)

Parameters:
    i : int

Returns: 'Item

i : int
Returns: 'Item

Static members

Static member Description

v1 %* v2

Full Usage: v1 %* v2

Parameters:
Returns: Vector<^d, S<S<S<Z>>>>

cross product

v1 : Vector<^a, S<S<S<Z>>>>
v2 : Vector<^b, S<S<S<Z>>>>
Returns: Vector<^d, S<S<S<Z>>>>

v1 * v2

Full Usage: v1 * v2

Parameters:
Returns: Vector<^c, 'n>

hadamard (element-wise) product

v1 : Vector<^a, 'n>
v2 : Vector<^b, 'n>
Returns: Vector<^c, 'n>

v1 + v2

Full Usage: v1 + v2

Parameters:
Returns: Vector<^c, 'n>

v1 : Vector<^a, 'n>
v2 : Vector<^b, 'n>
Returns: Vector<^c, 'n>

v1 - v2

Full Usage: v1 - v2

Parameters:
Returns: Vector<^c, 'n>

v1 : Vector<^a, 'n>
v2 : Vector<^b, 'n>
Returns: Vector<^c, 'n>

v1 / v2

Full Usage: v1 / v2

Parameters:
Returns: Vector<^c, 'n>

v1 : Vector<^a, 'n>
v2 : Vector<^b, 'n>
Returns: Vector<^c, 'n>

f <*> x

Full Usage: f <*> x

Parameters:
Returns: Vector<'y, 'n>

f : Vector<('x -> 'y), 'n>
x : Vector<'x, 'n>
Returns: Vector<'y, 'n>

v1 @* v2

Full Usage: v1 @* v2

Parameters:
Returns: Matrix<^a, ^b, ^c>

direct (tensor) product

v1 : Vector<^a, ^b>
v2 : Vector<^a, ^c>
Returns: Matrix<^a, ^b, ^c>

v1 @@ v2

Full Usage: v1 @@ v2

Parameters:
Returns: Vector<'a, ^m+^n>

v1 : Vector<'a, ^m>
v2 : Vector<'a, ^n>
Returns: Vector<'a, ^m+^n>

v1 |*| v2

Full Usage: v1 |*| v2

Parameters:
Returns: ^c

dot (inner) product

v1 : Vector<^a, S<'d>>
v2 : Vector<^b, S<'d>>
Returns: ^c

~-v

Full Usage: ~-v

Parameters:
Returns: Vector<^a, 'n>

v : Vector<^a, 'n>
Returns: Vector<^a, 'n>

Vector.FoldBack(v, f, z)

Full Usage: Vector.FoldBack(v, f, z)

Parameters:
    v : Vector<'x, 'n>
    f : 'x -> 'a -> 'a
    z : 'a

Returns: 'a

v : Vector<'x, 'n>
f : 'x -> 'a -> 'a
z : 'a
Returns: 'a

Vector.FromBigInt(i)

Full Usage: Vector.FromBigInt(i)

Parameters:
    i : bigint

Returns: Vector<^a, ^b>

i : bigint
Returns: Vector<^a, ^b>

Vector.FromInt32(i)

Full Usage: Vector.FromInt32(i)

Parameters:
    i : int

Returns: Vector<^a, ^b>

i : int
Returns: Vector<^a, ^b>

Vector.FromInt64(i)

Full Usage: Vector.FromInt64(i)

Parameters:
    i : int64

Returns: Vector<^a, ^b>

i : int64
Returns: Vector<^a, ^b>

Vector.Item(v, i)

Full Usage: Vector.Item(v, i)

Parameters:
Returns: 'a

v : Vector<'a, ^n>
i : ^b
Returns: 'a

Vector.Map(v, f)

Full Usage: Vector.Map(v, f)

Parameters:
    v : Vector<'a, 'n>
    f : 'a -> 'b

Returns: Vector<'b, 'n>

v : Vector<'a, 'n>
f : 'a -> 'b
Returns: Vector<'b, 'n>

Vector.Reduce(v, f)

Full Usage: Vector.Reduce(v, f)

Parameters:
    v : Vector<'x, S<'n>>
    f : 'x -> 'x -> 'x

Returns: 'x

v : Vector<'x, S<'n>>
f : 'x -> 'x -> 'x
Returns: 'x

Vector.Return(x)

Full Usage: Vector.Return(x)

Parameters:
    x : 'x

Returns: Vector<'x, ^n>

x : 'x
Returns: Vector<'x, ^n>

Vector.ToSeq(v)

Full Usage: Vector.ToSeq(v)

Parameters:
Returns: seq<'x>

v : Vector<'x, 'n>
Returns: seq<'x>

Vector.UnsafeCreate(_length, items)

Full Usage: Vector.UnsafeCreate(_length, items)

Parameters:
    _length : 'n
    items : 'a[]

Returns: Vector<'a, 'n>

_length : 'n
items : 'a[]
Returns: Vector<'a, 'n>

Vector.Zip(x, y)

Full Usage: Vector.Zip(x, y)

Parameters:
Returns: Vector<('a * 'c), 'b>

x : Vector<'a, 'b>
y : Vector<'c, 'b>
Returns: Vector<('a * 'c), 'b>

Vector.get_Zero ()

Full Usage: Vector.get_Zero ()

Returns: Vector<^x, ^n>

Returns: Vector<^x, ^n>

op_Explicitv

Full Usage: op_Explicitv

Parameters:
Returns: Matrix<'x, 'n, S<Z>>

v : Vector<'x, 'n>
Returns: Matrix<'x, 'n, S<Z>>

op_Explicitv

Full Usage: op_Explicitv

Parameters:
Returns: Matrix<'x, S<Z>, 'n>

v : Vector<'x, 'n>
Returns: Matrix<'x, S<Z>, 'n>