@Name(value="c10::ArrayRef<int64_t>") @NoOffset @Properties(inherit=torch.class) public class LongArrayRef extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
LongArrayRef()
\name Constructors
\{
|
LongArrayRef(long size)
Native array allocator.
|
LongArrayRef(long[] data,
long length) |
LongArrayRef(long[] begin,
long[] end) |
LongArrayRef(LongBuffer data,
long length) |
LongArrayRef(LongBuffer begin,
LongBuffer end) |
LongArrayRef(LongPointer data,
long length)
Construct an ArrayRef from a pointer and length.
|
LongArrayRef(LongPointer begin,
LongPointer end)
Construct an ArrayRef from a range.
|
LongArrayRef(LongVector vec)
Construct an ArrayRef from a std::vector.
|
LongArrayRef(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
at(long Index)
Vector compatibility
|
long |
back()
back - Get the last element.
|
LongPointer |
begin()
\}
\name Simple Operations
\{
|
LongPointer |
cbegin() |
LongPointer |
cend() |
LongPointer |
data() |
boolean |
empty()
empty - Check if the array is empty.
|
LongPointer |
end() |
boolean |
equals(long... RHS) |
boolean |
equals(LongArrayRef RHS)
equals - Check for element-wise equality.
|
long |
front()
front - Get the first element.
|
long |
get(long Index)
\}
\name Operator Overloads
\{
|
LongArrayRef |
getPointer(long i) |
LongArrayRef |
position(long position) |
long |
size()
size - Get the array size.
|
LongArrayRef |
slice(long N)
slice(n) - Chop off the first N elements of the array.
|
LongArrayRef |
slice(long N,
long M)
slice(n, m) - Take M elements of the array starting at element N
|
LongVector |
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, zero
public LongArrayRef(Pointer p)
Pointer(Pointer)
.public LongArrayRef(long size)
Pointer.position(long)
.public LongArrayRef()
Construct an empty ArrayRef.
public LongArrayRef(@Cast(value="const int64_t*") LongPointer data, @Cast(value="size_t") long length)
public LongArrayRef(@Cast(value="const int64_t*") LongBuffer data, @Cast(value="size_t") long length)
public LongArrayRef(@Cast(value="const int64_t*") long[] data, @Cast(value="size_t") long length)
public LongArrayRef(@Cast(value="const int64_t*") LongPointer begin, @Cast(value="const int64_t*") LongPointer end)
public LongArrayRef(@Cast(value="const int64_t*") LongBuffer begin, @Cast(value="const int64_t*") LongBuffer end)
public LongArrayRef(@Cast(value="const int64_t*") long[] begin, @Cast(value="const int64_t*") long[] end)
public LongArrayRef(@ByRef LongVector vec)
public LongArrayRef position(long position)
public LongArrayRef getPointer(long i)
getPointer
in class Pointer
@Const public LongPointer begin()
@Const public LongPointer end()
@Const public LongPointer cbegin()
@Const public LongPointer cend()
@Cast(value="const int64_t*") public LongPointer data()
@Cast(value="const bool") public boolean equals(@ByVal LongArrayRef RHS)
@Cast(value="const bool") public boolean equals(@ByVal @Cast(value={"int64_t*","c10::ArrayRef<int64_t>","std::vector<int64_t>&"}) @StdVector(value="int64_t") long... RHS)
@Const @ByVal public LongArrayRef slice(@Cast(value="size_t") long N, @Cast(value="size_t") long M)
@Const @ByVal public LongArrayRef slice(@Cast(value="size_t") long N)
@Cast(value="const int64_t") @Name(value="operator []") public long get(@Cast(value="size_t") long Index)
@Cast(value="const int64_t") public long at(@Cast(value="size_t") long Index)
@ByVal @Cast(value="std::vector<int64_t>*") public LongVector vec()
Copyright © 2024. All rights reserved.