Numy v0.1.2 Numy.Vc protocol View Source
Interface to Vector
Link to this section Summary
Functions
Add 2 vectors, cᵢ ← aᵢ + bᵢ
Step function, aᵢ ← 0 if aᵢ < 0 else 1
f(x) = 1/(1 + e⁻ˣ)
Assign 1.0 to each element of the vector.
Assign random values to the elements.
Assign 0.0 to each element of the vector.
Get value of N-th element by index, return default in case of error.
Average (∑aᵢ)/length
Get data as a list
Divide 2 vectors, cᵢ ← aᵢ÷bᵢ
Dot product of 2 vectors, ∑aᵢ×bᵢ
Return true if vector is empty.
Check if elements of 2 vectors are practically the same.
Return max value
Return index of max value
Return min value
Return index of min value
Multiply 2 vectors, cᵢ ← aᵢ×bᵢ
Add a constant to each element, aᵢ ← aᵢ + offset
Multiply each element by a constant, aᵢ ← aᵢ×scale_factor
Subtract one vector from other, cᵢ ← aᵢ - bᵢ
Sum of all elements, ∑aᵢ
Link to this section Types
Link to this section Functions
Add 2 vectors, cᵢ ← aᵢ + bᵢ
Step function, aᵢ ← 0 if aᵢ < 0 else 1
f(x) = 1/(1 + e⁻ˣ)
Assign 1.0 to each element of the vector.
Assign random values to the elements.
Assign 0.0 to each element of the vector.
Get value of N-th element by index, return default in case of error.
Average (∑aᵢ)/length
Get data as a list
Divide 2 vectors, cᵢ ← aᵢ÷bᵢ
Dot product of 2 vectors, ∑aᵢ×bᵢ
Return true if vector is empty.
Check if elements of 2 vectors are practically the same.
Return max value
Return index of max value
Return min value
Return index of min value
Multiply 2 vectors, cᵢ ← aᵢ×bᵢ
Add a constant to each element, aᵢ ← aᵢ + offset
Multiply each element by a constant, aᵢ ← aᵢ×scale_factor
Subtract one vector from other, cᵢ ← aᵢ - bᵢ
Sum of all elements, ∑aᵢ