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