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