Struct short2
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: ManagedCuda.dll
Syntax
public struct short2 : ICudaVectorType, ICudaVectorTypeForArray
Constructors
|
Improve this Doc
View Source
short2(Int16)
Declaration
Parameters
Type |
Name |
Description |
System.Int16 |
val |
|
|
Improve this Doc
View Source
short2(Int16, Int16)
Declaration
public short2(short xValue, short yValue)
Parameters
Type |
Name |
Description |
System.Int16 |
xValue |
|
System.Int16 |
yValue |
|
Fields
|
Improve this Doc
View Source
x
Declaration
Field Value
Type |
Description |
System.Int16 |
|
|
Improve this Doc
View Source
y
Declaration
Field Value
Type |
Description |
System.Int16 |
|
Properties
|
Improve this Doc
View Source
Size
Gives the size of this type in bytes.
Is equal to Marshal.SizeOf(this);
Declaration
public uint Size { get; }
Property Value
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
SizeOf
Gives the size of this type in bytes.
Is equal to Marshal.SizeOf(short2);
Declaration
public static uint SizeOf { get; }
Property Value
Type |
Description |
System.UInt32 |
|
Methods
|
Improve this Doc
View Source
Add(short2, short2)
Declaration
public static short2 Add(short2 src, short2 value)
Parameters
Returns
|
Improve this Doc
View Source
Add(short2, Int16)
Declaration
public static short2 Add(short2 src, short value)
Parameters
Type |
Name |
Description |
short2 |
src |
|
System.Int16 |
value |
|
Returns
|
Improve this Doc
View Source
Add(Int16, short2)
Declaration
public static short2 Add(short src, short2 value)
Parameters
Type |
Name |
Description |
System.Int16 |
src |
|
short2 |
value |
|
Returns
|
Improve this Doc
View Source
Divide(short2, short2)
Declaration
public static short2 Divide(short2 src, short2 value)
Parameters
Returns
|
Improve this Doc
View Source
Divide(short2, Int16)
Declaration
public static short2 Divide(short2 src, short value)
Parameters
Type |
Name |
Description |
short2 |
src |
|
System.Int16 |
value |
|
Returns
|
Improve this Doc
View Source
Divide(Int16, short2)
Declaration
public static short2 Divide(short src, short2 value)
Parameters
Type |
Name |
Description |
System.Int16 |
src |
|
short2 |
value |
|
Returns
|
Improve this Doc
View Source
Equals(short2)
Declaration
public bool Equals(short2 value)
Parameters
Type |
Name |
Description |
short2 |
value |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
|
Improve this Doc
View Source
GetChannelNumber()
Returns the Channel number from vector type.
Declaration
public uint GetChannelNumber()
Returns
Type |
Description |
System.UInt32 |
2
|
|
Improve this Doc
View Source
Returns a matching CUArrayFormat.
Declaration
public CUArrayFormat GetCUArrayFormat()
Returns
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
|
Improve this Doc
View Source
Max(short2, short2)
Component wise maximum as the CUDA function imaxi
Declaration
public static short2 Max(short2 aValue, short2 bValue)
Parameters
Returns
|
Improve this Doc
View Source
Min(short2, short2)
Component wise minimum as the CUDA function imini
Declaration
public static short2 Min(short2 aValue, short2 bValue)
Parameters
Returns
|
Improve this Doc
View Source
Multiply(short2, short2)
Declaration
public static short2 Multiply(short2 src, short2 value)
Parameters
Returns
|
Improve this Doc
View Source
Multiply(short2, Int16)
Declaration
public static short2 Multiply(short2 src, short value)
Parameters
Type |
Name |
Description |
short2 |
src |
|
System.Int16 |
value |
|
Returns
|
Improve this Doc
View Source
Multiply(Int16, short2)
Declaration
public static short2 Multiply(short src, short2 value)
Parameters
Type |
Name |
Description |
System.Int16 |
src |
|
short2 |
value |
|
Returns
|
Improve this Doc
View Source
Subtract(short2, short2)
Declaration
public static short2 Subtract(short2 src, short2 value)
Parameters
Returns
|
Improve this Doc
View Source
Subtract(short2, Int16)
Declaration
public static short2 Subtract(short2 src, short value)
Parameters
Type |
Name |
Description |
short2 |
src |
|
System.Int16 |
value |
|
Returns
|
Improve this Doc
View Source
Subtract(Int16, short2)
Declaration
public static short2 Subtract(short src, short2 value)
Parameters
Type |
Name |
Description |
System.Int16 |
src |
|
short2 |
value |
|
Returns
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Operators
|
Improve this Doc
View Source
Addition(short2, short2)
Declaration
public static short2 operator +(short2 src, short2 value)
Parameters
Returns
|
Improve this Doc
View Source
Addition(short2, Int16)
Declaration
public static short2 operator +(short2 src, short value)
Parameters
Type |
Name |
Description |
short2 |
src |
|
System.Int16 |
value |
|
Returns
|
Improve this Doc
View Source
Addition(Int16, short2)
Declaration
public static short2 operator +(short src, short2 value)
Parameters
Type |
Name |
Description |
System.Int16 |
src |
|
short2 |
value |
|
Returns
|
Improve this Doc
View Source
Division(short2, short2)
Declaration
public static short2 operator /(short2 src, short2 value)
Parameters
Returns
|
Improve this Doc
View Source
Division(short2, Int16)
Declaration
public static short2 operator /(short2 src, short value)
Parameters
Type |
Name |
Description |
short2 |
src |
|
System.Int16 |
value |
|
Returns
|
Improve this Doc
View Source
Division(Int16, short2)
Declaration
public static short2 operator /(short src, short2 value)
Parameters
Type |
Name |
Description |
System.Int16 |
src |
|
short2 |
value |
|
Returns
|
Improve this Doc
View Source
Equality(short2, short2)
Declaration
public static bool operator ==(short2 src, short2 value)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Inequality(short2, short2)
Declaration
public static bool operator !=(short2 src, short2 value)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Multiply(short2, short2)
Declaration
public static short2 operator *(short2 src, short2 value)
Parameters
Returns
|
Improve this Doc
View Source
Multiply(short2, Int16)
Declaration
public static short2 operator *(short2 src, short value)
Parameters
Type |
Name |
Description |
short2 |
src |
|
System.Int16 |
value |
|
Returns
|
Improve this Doc
View Source
Multiply(Int16, short2)
Declaration
public static short2 operator *(short src, short2 value)
Parameters
Type |
Name |
Description |
System.Int16 |
src |
|
short2 |
value |
|
Returns
|
Improve this Doc
View Source
Subtraction(short2, short2)
Declaration
public static short2 operator -(short2 src, short2 value)
Parameters
Returns
|
Improve this Doc
View Source
Subtraction(short2, Int16)
Declaration
public static short2 operator -(short2 src, short value)
Parameters
Type |
Name |
Description |
short2 |
src |
|
System.Int16 |
value |
|
Returns
|
Improve this Doc
View Source
Subtraction(Int16, short2)
Declaration
public static short2 operator -(short src, short2 value)
Parameters
Type |
Name |
Description |
System.Int16 |
src |
|
short2 |
value |
|
Returns
Implements