Vector
27 nodes
On this page 27
Make Vector
FunctionOverload 1 of 4
DivookaTensor1D() -> Vector
DivookaTensor1D DivookaTensor1D()
Construct empty.
Returns
| result | Vector |
Overload 2 of 4
DivookaTensor1D(values: IEnumerable<Number>) -> Vector
DivookaTensor1D DivookaTensor1D(IEnumerable<double> values)
Construct from (copy of) values.
Parameters
| name | type | default | description |
|---|---|---|---|
| values | IEnumerable<Number> | — |
Returns
| result | Vector |
Overload 3 of 4
DivookaTensor1D(values: Number Array) -> Vector
DivookaTensor1D DivookaTensor1D(params double[] values)
Construct from param arguments (no copy).
Parameters
| name | type | default | description |
|---|---|---|---|
| values | Number Array | — |
Returns
| result | Vector |
Overload 4 of 4
op_Implicit(values: Number Array) -> Vector
DivookaTensor1D op_Implicit(double[] values)
This node carries no documentation.
Parameters
| name | type | default | description |
|---|---|---|---|
| values | Number Array | — |
Returns
| Vector | Vector |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics
Contains
FunctionWhether any element is exactly equal to Item; see DivookaTensor1D.IndexOf for what exact means.
Contains(Vector: Vector, item: Number) -> Truth
bool Contains(DivookaTensor1D Vector, double item)
Parameters
| name | type | default | description |
|---|---|---|---|
| Vector | Vector | — | |
| item | Number | — | The value to look for. |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics
Copy
FunctionMake a copy
Copy(Vector: Vector) -> Vector
DivookaTensor1D Copy(DivookaTensor1D Vector)
Parameters
| name | type | default | description |
|---|---|---|---|
| Vector | Vector | — |
Returns
| result | Vector |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics
Copy To
FunctionCopies every element into Array, starting at Array Index.
CopyTo(Vector: Vector, array: Number Array, arrayIndex: Integer)
void CopyTo(
DivookaTensor1D Vector,
double[] array,
int arrayIndex)Parameters
| name | type | default | description |
|---|---|---|---|
| Vector | Vector | — | |
| array | Number Array | — | The array to fill; null throws System.ArgumentNullException, and one without room for every element from Array Index on throws System.ArgumentException. |
| arrayIndex | Integer | — | The position in Array to start writing at; a negative number throws System.ArgumentOutOfRangeException. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics
Count
FunctionThe number of elements; the same as DivookaTensor1D.Length.
Count(Vector: Vector) -> Integer
int Count(DivookaTensor1D Vector)
Parameters
| name | type | default | description |
|---|---|---|---|
| Vector | Vector | — |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics
Index
FunctionThe positions of the elements as numbers, 0, 1, 2 and so on, one per element; handy as the x values when plotting the vector.
Index(Vector: Vector) -> Number Array
double[] Index(DivookaTensor1D Vector)
Parameters
| name | type | default | description |
|---|---|---|---|
| Vector | Vector | — |
Returns
| result | Number Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics
Item
FunctionThe element at Index, counting from zero.
Item(Vector: Vector, index: Integer) -> Number
double Item(DivookaTensor1D Vector, int index)
Parameters
| name | type | default | description |
|---|---|---|---|
| Vector | Vector | — | |
| index | Integer | — | The zero-based position; below zero or at or past the length throws System.IndexOutOfRangeException. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics
Length
FunctionGet length of vector
Length(Vector: Vector) -> Integer
int Length(DivookaTensor1D Vector)
Parameters
| name | type | default | description |
|---|---|---|---|
| Vector | Vector | — |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics
Size
FunctionGet string representation of size.
Size(Vector: Vector) -> Text
string Size(DivookaTensor1D Vector)
Parameters
| name | type | default | description |
|---|---|---|---|
| Vector | Vector | — |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics
Get Enumerator
FunctionGoes through the elements in order.
GetEnumerator(Vector: Vector) -> IEnumerator<Number>
IEnumerator<double> GetEnumerator(DivookaTensor1D Vector)
Parameters
| name | type | default | description |
|---|---|---|---|
| Vector | Vector | — |
Returns
| result | IEnumerator<Number> |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics
Get Preview Array
FunctionThe elements as an array, for the preview display; this is the vector's own storage, not a copy.
GetPreviewArray(Vector: Vector) -> Array
Array GetPreviewArray(DivookaTensor1D Vector)
Parameters
| name | type | default | description |
|---|---|---|---|
| Vector | Vector | — |
Returns
| result | Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics
Get Preview String
FunctionThe elements as text for the preview display, one per line, written in the current culture's number format.
GetPreviewString(Vector: Vector) -> Text
string GetPreviewString(DivookaTensor1D Vector)
Parameters
| name | type | default | description |
|---|---|---|---|
| Vector | Vector | — |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics
Index Of
FunctionThe position of the first element equal to Item, counting from zero.
IndexOf(Vector: Vector, item: Number) -> Integer
int IndexOf(DivookaTensor1D Vector, double item)
Parameters
| name | type | default | description |
|---|---|---|---|
| Vector | Vector | — | |
| item | Number | — | The value to look for. |
Returns
| result | Integer |
Remarks
The match is exact, so a value that was computed slightly differently (0.1 + 0.2 against 0.3, for example) is not found.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics
Norm
FunctionAnother name for length
Norm(Vector: Vector) -> Integer
int Norm(DivookaTensor1D Vector)
Parameters
| name | type | default | description |
|---|---|---|---|
| Vector | Vector | — |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics
Shift
FunctionMoves every element along by Offset positions, giving a new vector of the same length; the original is unchanged.
Shift -> Vector
Vector: Vector
offset: Integer
fillZero: TruthDivookaTensor1D Shift(
DivookaTensor1D Vector,
int offset,
bool fillZero = true)Parameters
| name | type | default | description |
|---|---|---|---|
| Vector | Vector | — | |
| offset | Integer | — | How many positions to move; positive toward the start, negative toward the end. |
| fillZero | Truth | True | True (the default) fills the freed places with 0; false fills them with the elements that fell off the other end, rotating the vector. |
Returns
| result | Vector |
Remarks
A positive offset moves elements toward the start: the element at position i + offset lands at position i, the first Offset elements fall off, and the freed places at the end are filled. A negative offset moves elements toward the end in the same way. An offset of zero gives a copy, and an offset as large as the length or larger gives all zeros whatever Fill Zero says.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics
To Array
FunctionDefensive copy
ToArray(Vector: Vector) -> Number Array
double[] ToArray(DivookaTensor1D Vector)
Parameters
| name | type | default | description |
|---|---|---|---|
| Vector | Vector | — |
Returns
| result | Number Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics
To String
FunctionToString override
ToString(Vector: Vector) -> Text
string ToString(DivookaTensor1D Vector)
Parameters
| name | type | default | description |
|---|---|---|---|
| Vector | Vector | — |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics
Accumulate Apply
FunctionOverload 1 of 2
AccumulateApply -> (result: Number, path: Number Array)
baseValue: Number
vector: Number Array
function: Accumulate Apply Functiondouble AccumulateApply(
double baseValue,
double[] vector,
out double[] path,
DivookaTensor1D.AccumulateApplyFunction function)Applies certain operation starting from base value on top of entire vector and return the resulting vector and final value
Parameters
| name | type | default | description |
|---|---|---|---|
| baseValue | Number | — | |
| vector | Number Array | — | |
| function | Accumulate Apply Function | — |
Returns
| result | Number |
| path | Number Array |
Overload 2 of 2
AccumulateApply -> (result: Number, path: Number Array)
baseValue: Number
vector: Number Array
function: Func<Number, Number, Number>double AccumulateApply(
double baseValue,
double[] vector,
out double[] path,
Func<double, double, double> function)Starts from Base Value and combines it with each element of Vector in turn using Function, giving the final value and every value along the way; a running total is (previous, element) => previous + element.
Parameters
| name | type | default | description |
|---|---|---|---|
| baseValue | Number | — | The value to start from; it is also the answer when Vector is empty. |
| vector | Number Array | — | The elements to fold in, in order; must not be null. |
| function | Func<Number, Number, Number> | — | Given previous computed result and current element value, compute the next value |
Returns
| result | Number |
| path | Number Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics
Addition Operation
FunctionOverload 1 of 2
op_Addition(a: Vector, b: Vector) -> Vector
DivookaTensor1D op_Addition(
DivookaTensor1D a,
DivookaTensor1D b)Adds two vectors
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Vector | — | |
| b | Vector | — |
Returns
| result | Vector |
Overload 2 of 2
op_Addition(a: Vector, v: Number) -> Vector
DivookaTensor1D op_Addition(DivookaTensor1D a, double v)
Adds a scalar to every element
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Vector | — | |
| v | Number | — |
Returns
| result | Vector |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics
Bitwise Or Operation
FunctionOverload 1 of 2
op_BitwiseOr(a: Vector, v: Number) -> Vector
DivookaTensor1D op_BitwiseOr(DivookaTensor1D a, double v)
Append an element
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Vector | — | |
| v | Number | — |
Returns
| result | Vector |
Overload 2 of 2
op_BitwiseOr(a: Vector, b: Vector) -> Vector
DivookaTensor1D op_BitwiseOr(
DivookaTensor1D a,
DivookaTensor1D b)Append an entire vector
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Vector | — | |
| b | Vector | — |
Returns
| result | Vector |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics
Division Operation
FunctionOverload 1 of 2
op_Division(a: Vector, b: Vector) -> Vector
DivookaTensor1D op_Division(
DivookaTensor1D a,
DivookaTensor1D b)Divide element-wise
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Vector | — | |
| b | Vector | — |
Returns
| result | Vector |
Overload 2 of 2
op_Division(a: Vector, v: Number) -> Vector
DivookaTensor1D op_Division(DivookaTensor1D a, double v)
Multiply every element by a scalar
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Vector | — | |
| v | Number | — |
Returns
| result | Vector |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics
Exclusive Or Operation
FunctionExponent element-wise
op_ExclusiveOr(a: Vector, v: Number) -> Vector
DivookaTensor1D op_ExclusiveOr(DivookaTensor1D a, double v)
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Vector | — | |
| v | Number | — |
Returns
| result | Vector |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics
Op Implicit
FunctionThis node carries no documentation.
Overload 1 of 2
op_Implicit(values: Number Array) -> Vector
DivookaTensor1D op_Implicit(double[] values)
Parameters
| name | type | default | description |
|---|---|---|---|
| values | Number Array | — |
Returns
| result | Vector |
Overload 2 of 2
op_Implicit(vector: Vector) -> Number Array
double[] op_Implicit(DivookaTensor1D vector)
Parameters
| name | type | default | description |
|---|---|---|---|
| vector | Vector | — |
Returns
| result | Number Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics
Multiply Operation
FunctionOverload 1 of 2
op_Multiply(a: Vector, b: Vector) -> Vector
DivookaTensor1D op_Multiply(
DivookaTensor1D a,
DivookaTensor1D b)Multiply element-wise
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Vector | — | |
| b | Vector | — |
Returns
| result | Vector |
Overload 2 of 2
op_Multiply(a: Vector, v: Number) -> Vector
DivookaTensor1D op_Multiply(DivookaTensor1D a, double v)
Multiply every element by a scalar
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Vector | — | |
| v | Number | — |
Returns
| result | Vector |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics
Subtraction Operation
FunctionOverload 1 of 2
op_Subtraction(a: Vector, b: Vector) -> Vector
DivookaTensor1D op_Subtraction(
DivookaTensor1D a,
DivookaTensor1D b)Subtract two vectors
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Vector | — | |
| b | Vector | — |
Returns
| result | Vector |
Overload 2 of 2
op_Subtraction(a: Vector, v: Number) -> Vector
DivookaTensor1D op_Subtraction(DivookaTensor1D a, double v)
Subtract a scalar to every element
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Vector | — | |
| v | Number | — |
Returns
| result | Vector |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics
Unary Negation Operation
FunctionGets negative
op_UnaryNegation(a: Vector) -> Vector
DivookaTensor1D op_UnaryNegation(DivookaTensor1D a)
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Vector | — |
Returns
| result | Vector |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics
Unary Plus Operation
FunctionIdentity (no copy is made)
op_UnaryPlus(a: Vector) -> Vector
DivookaTensor1D op_UnaryPlus(DivookaTensor1D a)
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Vector | — |
Returns
| result | Vector |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- Numerics