@Namespace(value="c10::impl") @NoOffset @Properties(inherit=torch.class) public class SizesAndStrides extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
SizesAndStrides() |
SizesAndStrides(long size)
Native array allocator.
|
SizesAndStrides(Pointer p)
Pointer cast constructor.
|
SizesAndStrides(SizesAndStrides rhs) |
Modifier and Type | Method and Description |
---|---|
SizesAndStrides |
getPointer(long i) |
SizesAndStrides |
position(long position) |
SizesAndStrides |
put(SizesAndStrides rhs) |
void |
resize(long newSize) |
void |
resizeSlowPath(long newSize,
long oldSize) |
void |
set_sizes(long... newSizes) |
void |
set_sizes(LongArrayRef newSizes) |
void |
set_strides(long... strides) |
void |
set_strides(LongArrayRef strides) |
LongPointer |
size_at_unchecked(long idx) |
LongPointer |
size_at(long idx) |
long |
size() |
LongArrayRef |
sizes_arrayref() |
long |
sizes_begin() |
LongPointer |
sizes_data() |
long |
sizes_end() |
LongPointer |
stride_at_unchecked(long idx) |
LongPointer |
stride_at(long idx) |
LongArrayRef |
strides_arrayref() |
long |
strides_begin() |
LongPointer |
strides_data() |
long |
strides_end() |
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 SizesAndStrides(Pointer p)
Pointer(Pointer)
.public SizesAndStrides(long size)
Pointer.position(long)
.public SizesAndStrides()
public SizesAndStrides(@Const @ByRef SizesAndStrides rhs)
public SizesAndStrides position(long position)
public SizesAndStrides getPointer(long i)
getPointer
in class Pointer
@ByRef @Name(value="operator =") public SizesAndStrides put(@Const @ByRef SizesAndStrides rhs)
@Cast(value="size_t") @NoException(value=true) public long size()
@Cast(value="int64_t*") @NoException(value=true) public LongPointer sizes_data()
@Cast(value="c10::impl::SizesAndStrides::sizes_iterator") @NoException(value=true) public long sizes_begin()
@Cast(value="c10::impl::SizesAndStrides::sizes_iterator") @NoException(value=true) public long sizes_end()
@ByVal @NoException(value=true) public LongArrayRef sizes_arrayref()
public void set_sizes(@ByVal LongArrayRef newSizes)
public void set_sizes(@ByVal @Cast(value={"int64_t*","c10::ArrayRef<int64_t>","std::vector<int64_t>&"}) @StdVector(value="int64_t") long... newSizes)
public void set_strides(@ByVal LongArrayRef strides)
public void set_strides(@ByVal @Cast(value={"int64_t*","c10::ArrayRef<int64_t>","std::vector<int64_t>&"}) @StdVector(value="int64_t") long... strides)
@Cast(value="int64_t*") @NoException(value=true) public LongPointer strides_data()
@Cast(value="c10::impl::SizesAndStrides::strides_iterator") @NoException(value=true) public long strides_begin()
@Cast(value="c10::impl::SizesAndStrides::strides_iterator") @NoException(value=true) public long strides_end()
@ByVal @NoException(value=true) public LongArrayRef strides_arrayref()
@Cast(value="int64_t*") @ByRef @NoException(value=true) public LongPointer size_at(@Cast(value="size_t") long idx)
@Cast(value="int64_t*") @ByRef @NoException(value=true) public LongPointer size_at_unchecked(@Cast(value="size_t") long idx)
@Cast(value="int64_t*") @ByRef @NoException(value=true) public LongPointer stride_at(@Cast(value="size_t") long idx)
@Cast(value="int64_t*") @ByRef @NoException(value=true) public LongPointer stride_at_unchecked(@Cast(value="size_t") long idx)
Copyright © 2024. All rights reserved.