ILGPU  0.9.0
ILGPU.Util.Double4 Struct Reference

Represents a combined structure type to hold multiple primitive values of the same type. More...

Inheritance diagram for ILGPU.Util.Double4:

Public Member Functions

 Double4 (double value)
 Constructs a new data container. More...
 
 Double4 (double x, double y, double z, double w)
 Constructs a new data container. More...
 
 Double4 (DataBlock< double, double, double, double > block)
 Constructs a new data block. More...
 
double ToValueTuple ()
 
bool Equals (Double4 other)
 
override bool Equals (object obj)
 Returns true if the given object is equal to the current one. More...
 
override int GetHashCode ()
 Returns the combined hash code of all items. More...
 
override string ToString ()
 Returns the string representation of this view. More...
 

Static Public Member Functions

static Double4 operator* (Double4 left, Double4 right)
 Executes an arithmetic * operation on all elements. More...
 
static Double4 operator/ (Double4 left, Double4 right)
 Executes an arithmetic / operation on all elements. More...
 
static Double4 operator- (Double4 left, Double4 right)
 Executes an arithmetic - operation on all elements. More...
 
static Double4 operator+ (Double4 left, Double4 right)
 Executes an arithmetic + operation on all elements. More...
 
static implicit operator Double4 (double value)
 Converts the given single value into its container representation. More...
 
static implicit operator (double, double, double, double)(Double4 value)
 Converts the given value into its tuple representation. More...
 
static implicit operator DataBlock< double, double, double, double > (Double4 value)
 Converts the given value into its data block representation. More...
 
static bool operator== (Double4 left, Double4 right)
 Returns true if both data blocks represent the same elements. More...
 
static bool operator!= (Double4 left, Double4 right)
 Returns true if both data blocks do not represent the same elements. More...
 

Public Attributes

DataBlock< double, double, double, doubleDataBlock => dataBlock
 The underlying raw data block. More...
 
 double
 Returns a value tuple that stores all items. More...
 

Static Public Attributes

static readonly int ElementSize = Interop.SizeOf<Double4>()
 Represents the native size of a single element. More...
 

Properties

double X [get, set]
 Returns the i-th element. More...
 
double Y [get, set]
 Returns the i-th element. More...
 
double Z [get, set]
 Returns the i-th element. More...
 
double W [get, set]
 Returns the i-th element. More...
 

Detailed Description

Represents a combined structure type to hold multiple primitive values of the same type.

Constructor & Destructor Documentation

ILGPU.Util.Double4.Double4 ( double  value)

Constructs a new data container.

ILGPU.Util.Double4.Double4 ( double  x,
double  y,
double  z,
double  w 
)

Constructs a new data container.

ILGPU.Util.Double4.Double4 ( DataBlock< double, double, double, double block)

Constructs a new data block.

Member Function Documentation

bool ILGPU.Util.Double4.Equals ( Double4  other)

override bool ILGPU.Util.Double4.Equals ( object  obj)

Returns true if the given object is equal to the current one.

Parameters
objThe other object.
Returns
True, if the given object is equal to the current one.
override int ILGPU.Util.Double4.GetHashCode ( )

Returns the combined hash code of all items.

Returns
The hash code of all items.
static implicit ILGPU.Util.Double4.operator ( double  ,
double  ,
double  ,
double   
)
static

Converts the given value into its tuple representation.

Parameters
valueThe value to convert.
static implicit ILGPU.Util.Double4.operator DataBlock< double, double, double, double > ( Double4  value)
static

Converts the given value into its data block representation.

Parameters
valueThe value to convert.
static implicit ILGPU.Util.Double4.operator Double4 ( double  value)
static

Converts the given single value into its container representation.

Parameters
valueThe value to convert.
static bool ILGPU.Util.Double4.operator!= ( Double4  left,
Double4  right 
)
static

Returns true if both data blocks do not represent the same elements.

Parameters
leftThe left block.
rightThe right block.
Returns
True, if both data block do not represent the same elements.
static Double4 ILGPU.Util.Double4.operator* ( Double4  left,
Double4  right 
)
static

Executes an arithmetic * operation on all elements.

Parameters
leftThe left operand.
rightThe right operand.
Returns
The resulting value.
static Double4 ILGPU.Util.Double4.operator+ ( Double4  left,
Double4  right 
)
static

Executes an arithmetic + operation on all elements.

Parameters
leftThe left operand.
rightThe right operand.
Returns
The resulting value.
static Double4 ILGPU.Util.Double4.operator- ( Double4  left,
Double4  right 
)
static

Executes an arithmetic - operation on all elements.

Parameters
leftThe left operand.
rightThe right operand.
Returns
The resulting value.
static Double4 ILGPU.Util.Double4.operator/ ( Double4  left,
Double4  right 
)
static

Executes an arithmetic / operation on all elements.

Parameters
leftThe left operand.
rightThe right operand.
Returns
The resulting value.
static bool ILGPU.Util.Double4.operator== ( Double4  left,
Double4  right 
)
static

Returns true if both data blocks represent the same elements.

Parameters
leftThe left block.
rightThe right block.
Returns
True, if both data block represent the same elements.
override string ILGPU.Util.Double4.ToString ( )

Returns the string representation of this view.

Returns
The string representation of this view.
double ILGPU.Util.Double4.ToValueTuple ( )

Member Data Documentation

DataBlock<double, double, double, double> ILGPU.Util.Double4.DataBlock => dataBlock

The underlying raw data block.

ILGPU.Util.Double4.double

Returns a value tuple that stores all items.

Returns
The constructed value tuple.
readonly int ILGPU.Util.Double4.ElementSize = Interop.SizeOf<Double4>()
static

Represents the native size of a single element.

Property Documentation

double ILGPU.Util.Double4.W
getset

Returns the i-th element.

double ILGPU.Util.Double4.X
getset

Returns the i-th element.

double ILGPU.Util.Double4.Y
getset

Returns the i-th element.

double ILGPU.Util.Double4.Z
getset

Returns the i-th element.


The documentation for this struct was generated from the following file: