Show / Hide Table of Contents

    Struct char2

    char2

    Implements
    ICudaVectorType
    ICudaVectorTypeForArray
    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: ManagedCuda.VectorTypes
    Assembly: ManagedCuda.dll
    Syntax
    public struct char2 : ICudaVectorType, ICudaVectorTypeForArray

    Constructors

    | Improve this Doc View Source

    char2(SByte)

    Declaration
    public char2(sbyte val)
    Parameters
    Type Name Description
    System.SByte val
    | Improve this Doc View Source

    char2(SByte, SByte)

    Declaration
    public char2(sbyte xValue, sbyte yValue)
    Parameters
    Type Name Description
    System.SByte xValue
    System.SByte yValue

    Fields

    | Improve this Doc View Source

    x

    X

    Declaration
    public sbyte x
    Field Value
    Type Description
    System.SByte
    | Improve this Doc View Source

    y

    Y

    Declaration
    public sbyte y
    Field Value
    Type Description
    System.SByte

    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(char2);

    Declaration
    public static uint SizeOf { get; }
    Property Value
    Type Description
    System.UInt32

    Methods

    | Improve this Doc View Source

    Add(char2, char2)

    per element Add

    Declaration
    public static char2 Add(char2 src, char2 value)
    Parameters
    Type Name Description
    char2 src
    char2 value
    Returns
    Type Description
    char2
    | Improve this Doc View Source

    Add(char2, SByte)

    per element Add

    Declaration
    public static char2 Add(char2 src, sbyte value)
    Parameters
    Type Name Description
    char2 src
    System.SByte value
    Returns
    Type Description
    char2
    | Improve this Doc View Source

    Add(SByte, char2)

    per element Add

    Declaration
    public static char2 Add(sbyte src, char2 value)
    Parameters
    Type Name Description
    System.SByte src
    char2 value
    Returns
    Type Description
    char2
    | Improve this Doc View Source

    Divide(char2, char2)

    per element Divide

    Declaration
    public static char2 Divide(char2 src, char2 value)
    Parameters
    Type Name Description
    char2 src
    char2 value
    Returns
    Type Description
    char2
    | Improve this Doc View Source

    Divide(char2, SByte)

    per element Divide

    Declaration
    public static char2 Divide(char2 src, sbyte value)
    Parameters
    Type Name Description
    char2 src
    System.SByte value
    Returns
    Type Description
    char2
    | Improve this Doc View Source

    Divide(SByte, char2)

    per element Divide

    Declaration
    public static char2 Divide(sbyte src, char2 value)
    Parameters
    Type Name Description
    System.SByte src
    char2 value
    Returns
    Type Description
    char2
    | Improve this Doc View Source

    Equals(char2)

    Declaration
    public bool Equals(char2 value)
    Parameters
    Type Name Description
    char2 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

    GetCUArrayFormat()

    Returns a matching CUArrayFormat.

    Declaration
    public CUArrayFormat GetCUArrayFormat()
    Returns
    Type Description
    CUArrayFormat
    | 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(char2, char2)

    Component wise maximum as the CUDA function imaxi

    Declaration
    public static char2 Max(char2 aValue, char2 bValue)
    Parameters
    Type Name Description
    char2 aValue
    char2 bValue
    Returns
    Type Description
    char2
    | Improve this Doc View Source

    Min(char2, char2)

    Component wise minimum as the CUDA function imini

    Declaration
    public static char2 Min(char2 aValue, char2 bValue)
    Parameters
    Type Name Description
    char2 aValue
    char2 bValue
    Returns
    Type Description
    char2
    | Improve this Doc View Source

    Multiply(char2, char2)

    per element Multiply

    Declaration
    public static char2 Multiply(char2 src, char2 value)
    Parameters
    Type Name Description
    char2 src
    char2 value
    Returns
    Type Description
    char2
    | Improve this Doc View Source

    Multiply(char2, SByte)

    per element Multiply

    Declaration
    public static char2 Multiply(char2 src, sbyte value)
    Parameters
    Type Name Description
    char2 src
    System.SByte value
    Returns
    Type Description
    char2
    | Improve this Doc View Source

    Multiply(SByte, char2)

    per element Multiply

    Declaration
    public static char2 Multiply(sbyte src, char2 value)
    Parameters
    Type Name Description
    System.SByte src
    char2 value
    Returns
    Type Description
    char2
    | Improve this Doc View Source

    Subtract(char2, char2)

    per element Substract

    Declaration
    public static char2 Subtract(char2 src, char2 value)
    Parameters
    Type Name Description
    char2 src
    char2 value
    Returns
    Type Description
    char2
    | Improve this Doc View Source

    Subtract(char2, SByte)

    per element Substract

    Declaration
    public static char2 Subtract(char2 src, sbyte value)
    Parameters
    Type Name Description
    char2 src
    System.SByte value
    Returns
    Type Description
    char2
    | Improve this Doc View Source

    Subtract(SByte, char2)

    per element Substract

    Declaration
    public static char2 Subtract(sbyte src, char2 value)
    Parameters
    Type Name Description
    System.SByte src
    char2 value
    Returns
    Type Description
    char2
    | 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(char2, char2)

    per element

    Declaration
    public static char2 operator +(char2 src, char2 value)
    Parameters
    Type Name Description
    char2 src
    char2 value
    Returns
    Type Description
    char2
    | Improve this Doc View Source

    Addition(char2, SByte)

    per element

    Declaration
    public static char2 operator +(char2 src, sbyte value)
    Parameters
    Type Name Description
    char2 src
    System.SByte value
    Returns
    Type Description
    char2
    | Improve this Doc View Source

    Addition(SByte, char2)

    per element

    Declaration
    public static char2 operator +(sbyte src, char2 value)
    Parameters
    Type Name Description
    System.SByte src
    char2 value
    Returns
    Type Description
    char2
    | Improve this Doc View Source

    Division(char2, char2)

    per element

    Declaration
    public static char2 operator /(char2 src, char2 value)
    Parameters
    Type Name Description
    char2 src
    char2 value
    Returns
    Type Description
    char2
    | Improve this Doc View Source

    Division(char2, SByte)

    per element

    Declaration
    public static char2 operator /(char2 src, sbyte value)
    Parameters
    Type Name Description
    char2 src
    System.SByte value
    Returns
    Type Description
    char2
    | Improve this Doc View Source

    Division(SByte, char2)

    per element

    Declaration
    public static char2 operator /(sbyte src, char2 value)
    Parameters
    Type Name Description
    System.SByte src
    char2 value
    Returns
    Type Description
    char2
    | Improve this Doc View Source

    Equality(char2, char2)

    per element

    Declaration
    public static bool operator ==(char2 src, char2 value)
    Parameters
    Type Name Description
    char2 src
    char2 value
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Inequality(char2, char2)

    per element

    Declaration
    public static bool operator !=(char2 src, char2 value)
    Parameters
    Type Name Description
    char2 src
    char2 value
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Multiply(char2, char2)

    per element

    Declaration
    public static char2 operator *(char2 src, char2 value)
    Parameters
    Type Name Description
    char2 src
    char2 value
    Returns
    Type Description
    char2
    | Improve this Doc View Source

    Multiply(char2, SByte)

    per element

    Declaration
    public static char2 operator *(char2 src, sbyte value)
    Parameters
    Type Name Description
    char2 src
    System.SByte value
    Returns
    Type Description
    char2
    | Improve this Doc View Source

    Multiply(SByte, char2)

    per element

    Declaration
    public static char2 operator *(sbyte src, char2 value)
    Parameters
    Type Name Description
    System.SByte src
    char2 value
    Returns
    Type Description
    char2
    | Improve this Doc View Source

    Subtraction(char2, char2)

    per element

    Declaration
    public static char2 operator -(char2 src, char2 value)
    Parameters
    Type Name Description
    char2 src
    char2 value
    Returns
    Type Description
    char2
    | Improve this Doc View Source

    Subtraction(char2, SByte)

    per element

    Declaration
    public static char2 operator -(char2 src, sbyte value)
    Parameters
    Type Name Description
    char2 src
    System.SByte value
    Returns
    Type Description
    char2
    | Improve this Doc View Source

    Subtraction(SByte, char2)

    per element

    Declaration
    public static char2 operator -(sbyte src, char2 value)
    Parameters
    Type Name Description
    System.SByte src
    char2 value
    Returns
    Type Description
    char2

    Implements

    ICudaVectorType
    ICudaVectorTypeForArray
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX