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