Length of the array.
Number of dimensions of the array.
Get the raw pointer of the array.
Size (equivalent to shape
in numpy
's terms) of the array.
Get data at the given index.
Julia data at the given index, wrapped in a JuliaValue
object.
The index (starting from 0) to be fetched.
Map the given function to the array and get a new array.
Function to be mapped.
Pop the last element of the array and return it.
Reshape the array with the given shape and get a new array.
Note that the new array shares the underlying memory with the original array.
So if you have reshaped an array, you cannot perform pop()
or push()
operations
on it since this will affect the arrays that share data with the current array.
Rest
...shape: number[]Static
fromCreate a JuliaArray
from a BunArray
(TypedArray | BigInt64Array | BigUint64Array
).
Static
fromCreate a JuliaArray
from a JS Array
with arbitrary types.
Static
initCreate a JuliaArray
with given element type and length.
Element type of the array.
Length of the array.
Generated using TypeDoc
Wrapper for Julia
Array
.