Private
isCalculates the angle (in radians) from a specified point to the coordinate origin as measured from the positive x-axis. Values are returned as a float in the range from PI to -PI.
the x-coordinate(s) used for computing the arc tangent
the arc tangent of each tensor element
Private
complexEquality check against a complex tensor.
the tensor to be compared
whether the objects are equals
Equality check against a Number, p5.Vector, or Tensor.
the object to be compared
whether the objects are equals
Splits a tensor into sub tensors.
either an integer indicating the number of splits along the axis or an array of integers containing the sizes of each output tensor along the axis. If a number then it must evenly divide the axis length; otherwise the sum of sizes must match axis length.
Optional
axis: number(optional) the dimension along which to split
the split tensor
Static
complexStatic
eyeStatic
fillStatic
linspaceStatic
onesStatic
randomStatic
randomStatic
rangeStatic
stackStatic
zeros
A class to describe a tensor, a generalization of vectors and matrices. Tensors can be thought of as (possibly) multidimensional arrays that support many useful operations. They are applied throughout mathematics, physics, engineering, and computer science.