DenseVector
Namespace: Semagle.Numerics.Vectors
Dense vector stores both zero and non-zero values
Constructors
Constructor | Description |
new(values)
Signature: (values:float32 []) -> DenseVector
|
CompiledName: .ctor
|
Instance members
Instance member | Description |
x.GetSlice(a, b)
Signature: (a:int option * b:int option) -> DenseVector
|
Returns vector slice
|
[i]
Signature: i:int -> float32
|
Gets vector element value
|
x.Length
Signature: int
|
Returns size of the vector
CompiledName: get_Length
|
x.Values
Signature: float32 []
|
Returns underlying values array
CompiledName: get_Values
|
Static members
Static member | Description |
DenseVector.( - )(a, b)
Signature: (a:DenseVector * b:DenseVector) -> DenseVector
|
Element-wise substraction
CompiledName: op_Subtraction
|
DenseVector.( .* )(a, b)
Signature: (a:DenseVector * b:SparseVector) -> float32
|
Scalar product
CompiledName: op_DotMultiply
|
DenseVector.( .* )(a, b)
Signature: (a:DenseVector * b:DenseVector) -> float32
|
Scalar product
CompiledName: op_DotMultiply
|
DenseVector.( * )(a, c)
Signature: (a:DenseVector * c:float32) -> DenseVector
|
Mutiply each element of vector by scalar
CompiledName: op_Multiply
|
DenseVector.( * )(a, b)
Signature: (a:DenseVector * b:DenseVector) -> DenseVector
|
Element-wise multiplication
CompiledName: op_Multiply
|
DenseVector.( / )(a, c)
Signature: (a:DenseVector * c:float32) -> DenseVector
|
Divide each element of vector by scalar
CompiledName: op_Division
|
DenseVector.( + )(a, b)
Signature: (a:DenseVector * b:DenseVector) -> DenseVector
|
Element-wise addition
CompiledName: op_Addition
|
DenseVector.( ||-|| )(a, b)
Signature: (a:DenseVector * b:DenseVector) -> float32
|
Squared Euclidean distance \(||a-b||^2\)
CompiledName: op_BarBarMinusBarBar
|
DenseVector.( ~- )(a)
Signature: a:DenseVector -> DenseVector
|
Negation of vector
CompiledName: op_UnaryNegation
|
DenseVector.Zero
Signature: DenseVector
|
Zero dense vector
CompiledName: get_Zero
|