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