@Name(value="c10::ArrayRef<jint>") @NoOffset @Properties(inherit=torch.class) public class IntArrayRef extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
IntArrayRef()
\name Constructors
\{
|
IntArrayRef(int[] begin,
int[] end) |
IntArrayRef(int[] data,
long length) |
IntArrayRef(IntBuffer begin,
IntBuffer end) |
IntArrayRef(IntBuffer data,
long length) |
IntArrayRef(IntPointer begin,
IntPointer end)
Construct an ArrayRef from a range.
|
IntArrayRef(IntPointer data,
long length)
Construct an ArrayRef from a pointer and length.
|
IntArrayRef(long size)
Native array allocator.
|
IntArrayRef(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
at(long Index)
Vector compatibility
|
int |
back()
back - Get the last element.
|
IntPointer |
begin()
\}
\name Simple Operations
\{
|
IntPointer |
cbegin() |
IntPointer |
cend() |
IntPointer |
data() |
boolean |
empty()
empty - Check if the array is empty.
|
IntPointer |
end() |
boolean |
equals(int... RHS) |
boolean |
equals(IntArrayRef RHS)
equals - Check for element-wise equality.
|
int |
front()
front - Get the first element.
|
int |
get(long Index)
\}
\name Operator Overloads
\{
|
IntArrayRef |
getPointer(long i) |
IntArrayRef |
position(long position) |
long |
size()
size - Get the array size.
|
IntArrayRef |
slice(long N)
slice(n) - Chop off the first N elements of the array.
|
IntArrayRef |
slice(long N,
long M)
slice(n, m) - Take M elements of the array starting at element N
|
IntPointer |
vec()
\}
\name Expensive Operations
\{
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic IntArrayRef(Pointer p)
Pointer(Pointer).public IntArrayRef(long size)
Pointer.position(long).public IntArrayRef()
Construct an empty ArrayRef.
public IntArrayRef(@Const IntPointer data, @Cast(value="size_t") long length)
public IntArrayRef(@Const IntPointer begin, @Const IntPointer end)
public IntArrayRef position(long position)
public IntArrayRef getPointer(long i)
getPointer in class Pointer@Const public IntPointer begin()
@Const public IntPointer end()
@Const public IntPointer cbegin()
@Const public IntPointer cend()
@Const public IntPointer data()
public int front()
public int back()
@Cast(value="const bool") public boolean equals(@ByVal IntArrayRef RHS)
@Cast(value="const bool") public boolean equals(@ByVal @Cast(value={"jint*","c10::ArrayRef<jint>","std::vector<jint>&"}) @StdVector(value="jint") int... RHS)
@Const @ByVal public IntArrayRef slice(@Cast(value="size_t") long N, @Cast(value="size_t") long M)
@Const @ByVal public IntArrayRef slice(@Cast(value="size_t") long N)
@Name(value="operator []") public int get(@Cast(value="size_t") long Index)
@StdVector public IntPointer vec()
Copyright © 2024. All rights reserved.