@NoOffset @Properties(inherit=cudart.class) public class __half extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
__half(__half_raw hr)
Constructor from \p __half_raw.
|
__half(__nv_bfloat16 f)
Construct \p __half from \p __nv_bfloat16 input using default round-to-nearest-even rounding mode.
|
__half()
Constructor by default.
|
__half(double f)
Construct \p __half from \p double input using default round-to-nearest-even rounding mode.
|
__half(float f)
Construct \p __half from \p float input using default round-to-nearest-even rounding mode.
|
__half(int val)
Construct \p __half from \p int input using default round-to-nearest-even rounding mode.
|
__half(long val)
Construct \p __half from \p long input using default round-to-nearest-even rounding mode.
|
__half(Pointer p)
Pointer cast constructor.
|
__half(short val)
Construct \p __half from \p short integer input using default round-to-nearest-even rounding mode.
|
| Modifier and Type | Method and Description |
|---|---|
__half_raw |
as__half_raw()
Type cast to \p __half_raw operator.
|
boolean |
asBoolean()
Conversion operator to \p bool data type.
|
byte |
asByte()
Conversion operator to \p signed \p char data type.
|
float |
asFloat()
Type cast to \p float operator.
|
int |
asInt()
Conversion operator to \p int data type.
|
long |
asLong()
Conversion operator to \p long data type.
|
short |
asShort()
Conversion operator to \p short data type.
|
__half |
put(__half_raw hr)
Assignment operator from \p __half_raw.
|
__half |
put(double f)
Type cast to \p __half assignment operator from \p double input using default round-to-nearest-even rounding mode.
|
__half |
put(float f)
Type cast to \p __half assignment operator from \p float input using default round-to-nearest-even rounding mode.
|
__half |
put(int val)
Type cast from \p int assignment operator, using default round-to-nearest-even rounding mode.
|
__half |
put(long val)
Type cast from \p long \p long assignment operator, using default round-to-nearest-even rounding mode.
|
__half |
put(short val)
Type cast from \p short assignment operator, using default round-to-nearest-even rounding mode.
|
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, zeropublic __half(Pointer p)
Pointer(Pointer).public __half()
public __half(@Const @ByRef __half_raw hr)
public __half(@Const @ByVal __nv_bfloat16 f)
public __half(float f)
public __half(double f)
public __half(short val)
public __half(int val)
public __half(long val)
@ByRef @Name(value="operator =") public __half put(@Const @ByRef __half_raw hr)
@ByVal @Name(value="operator __half_raw") public __half_raw as__half_raw()
@ByRef @Name(value="operator =") public __half put(float f)
@ByRef @Name(value="operator =") public __half put(double f)
@Name(value="operator signed char") public byte asByte()
@Name(value="operator short") public short asShort()
@Name(value="operator int") public int asInt()
@Name(value="operator long") public long asLong()
@ByRef @Name(value="operator =") public __half put(short val)
@ByRef @Name(value="operator =") public __half put(int val)
@ByRef @Name(value="operator =") public __half put(long val)
Copyright © 2024. All rights reserved.