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