@Namespace(value="c10") @NoOffset @Properties(inherit=torch.class) public class Scalar extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Scalar() |
Scalar(BFloat16 vv) |
Scalar(byte vv) |
Scalar(double vv) |
Scalar(DoubleComplex vv) |
Scalar(float vv) |
Scalar(Float8_e4m3fn vv) |
Scalar(Float8_e5m2 vv) |
Scalar(FloatComplex vv) |
Scalar(Half vv) |
Scalar(int vv) |
Scalar(long vv) |
Scalar(Pointer p)
Pointer cast constructor.
|
Scalar(Scalar rhs) |
Scalar(short vv) |
Scalar(SymBool sb) |
Scalar(SymFloat sd) |
Scalar(SymInt si) |
Modifier and Type | Method and Description |
---|---|
Scalar |
conj() |
Pointer |
data_ptr() |
void |
destroy() |
boolean |
equal(boolean num) |
boolean |
isBoolean() |
boolean |
isComplex() |
boolean |
isFloatingPoint() |
boolean |
isIntegral(boolean includeBool) |
boolean |
isSymbolic() |
boolean |
isSymBool() |
boolean |
isSymFloat() |
boolean |
isSymInt() |
Scalar |
log() |
Scalar |
put(Scalar other) |
Scalar |
subtract() |
BFloat16 |
toBFloat16() |
boolean |
toBool() |
byte |
toByte() |
byte |
toChar() |
DoubleComplex |
toComplexDouble() |
FloatComplex |
toComplexFloat() |
HalfComplex |
toComplexHalf() |
double |
toDouble() |
float |
toFloat() |
Float8_e4m3fn |
toFloat8_e4m3fn() |
Float8_e5m2 |
toFloat8_e5m2() |
Half |
toHalf() |
int |
toInt() |
long |
toLong() |
short |
toShort() |
SymBool |
toSymBool() |
SymFloat |
toSymFloat() |
SymInt |
toSymInt() |
torch.ScalarType |
type() |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public Scalar(Pointer p)
Pointer(Pointer)
.public Scalar()
public Scalar(short vv)
public Scalar(int vv)
public Scalar(float vv)
public Scalar(double vv)
public Scalar(@ByVal Float8_e5m2 vv)
public Scalar(@ByVal Float8_e4m3fn vv)
public Scalar(@ByVal FloatComplex vv)
public Scalar(@ByVal DoubleComplex vv)
public void destroy()
public byte toChar()
public short toShort()
public int toInt()
public float toFloat()
public double toDouble()
@ByVal public HalfComplex toComplexHalf()
@ByVal public FloatComplex toComplexFloat()
@ByVal public DoubleComplex toComplexDouble()
@ByVal public Float8_e5m2 toFloat8_e5m2()
@ByVal public Float8_e4m3fn toFloat8_e4m3fn()
@ByRef @Name(value="operator =") @NoException(value=true) public Scalar put(@ByRef(value=true) Scalar other)
public torch.ScalarType type()
Copyright © 2024. All rights reserved.