Show / Hide Table of Contents

    Struct float2

    float2

    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 float2 : ICudaVectorType, ICudaVectorTypeForArray

    Constructors

    | Improve this Doc View Source

    float2(Single)

    Declaration
    public float2(float val)
    Parameters
    Type Name Description
    System.Single val
    | Improve this Doc View Source

    float2(Single, Single)

    Declaration
    public float2(float xValue, float yValue)
    Parameters
    Type Name Description
    System.Single xValue
    System.Single yValue

    Fields

    | Improve this Doc View Source

    x

    X

    Declaration
    public float x
    Field Value
    Type Description
    System.Single
    | Improve this Doc View Source

    y

    Y

    Declaration
    public float y
    Field Value
    Type Description
    System.Single

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

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

    Methods

    | Improve this Doc View Source

    Add(float2, float2)

    per element Add

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

    Add(float2, Single)

    per element Add

    Declaration
    public static float2 Add(float2 src, float value)
    Parameters
    Type Name Description
    float2 src
    System.Single value
    Returns
    Type Description
    float2
    | Improve this Doc View Source

    Add(Single, float2)

    per element Add

    Declaration
    public static float2 Add(float src, float2 value)
    Parameters
    Type Name Description
    System.Single src
    float2 value
    Returns
    Type Description
    float2
    | Improve this Doc View Source

    Divide(float2, float2)

    per element Divide

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

    Divide(float2, Single)

    per element Divide

    Declaration
    public static float2 Divide(float2 src, float value)
    Parameters
    Type Name Description
    float2 src
    System.Single value
    Returns
    Type Description
    float2
    | Improve this Doc View Source

    Divide(Single, float2)

    per element Divide

    Declaration
    public static float2 Divide(float src, float2 value)
    Parameters
    Type Name Description
    System.Single src
    float2 value
    Returns
    Type Description
    float2
    | Improve this Doc View Source

    Equals(float2)

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

    Component wise maximum as the CUDA function fmaxf

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

    Min(float2, float2)

    Component wise minimum as the CUDA function fminf

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

    Multiply(float2, float2)

    per element Multiply

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

    Multiply(float2, Single)

    per element Multiply

    Declaration
    public static float2 Multiply(float2 src, float value)
    Parameters
    Type Name Description
    float2 src
    System.Single value
    Returns
    Type Description
    float2
    | Improve this Doc View Source

    Multiply(Single, float2)

    per element Multiply

    Declaration
    public static float2 Multiply(float src, float2 value)
    Parameters
    Type Name Description
    System.Single src
    float2 value
    Returns
    Type Description
    float2
    | Improve this Doc View Source

    Subtract(float2, float2)

    per element Substract

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

    Subtract(float2, Single)

    per element Substract

    Declaration
    public static float2 Subtract(float2 src, float value)
    Parameters
    Type Name Description
    float2 src
    System.Single value
    Returns
    Type Description
    float2
    | Improve this Doc View Source

    Subtract(Single, float2)

    per element Substract

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

    per element

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

    Addition(float2, Single)

    per element

    Declaration
    public static float2 operator +(float2 src, float value)
    Parameters
    Type Name Description
    float2 src
    System.Single value
    Returns
    Type Description
    float2
    | Improve this Doc View Source

    Addition(Single, float2)

    per element

    Declaration
    public static float2 operator +(float src, float2 value)
    Parameters
    Type Name Description
    System.Single src
    float2 value
    Returns
    Type Description
    float2
    | Improve this Doc View Source

    Division(float2, float2)

    per element

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

    Division(float2, Single)

    per element

    Declaration
    public static float2 operator /(float2 src, float value)
    Parameters
    Type Name Description
    float2 src
    System.Single value
    Returns
    Type Description
    float2
    | Improve this Doc View Source

    Division(Single, float2)

    per element

    Declaration
    public static float2 operator /(float src, float2 value)
    Parameters
    Type Name Description
    System.Single src
    float2 value
    Returns
    Type Description
    float2
    | Improve this Doc View Source

    Equality(float2, float2)

    per element

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

    Inequality(float2, float2)

    per element

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

    Multiply(float2, float2)

    per element

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

    Multiply(float2, Single)

    per element

    Declaration
    public static float2 operator *(float2 src, float value)
    Parameters
    Type Name Description
    float2 src
    System.Single value
    Returns
    Type Description
    float2
    | Improve this Doc View Source

    Multiply(Single, float2)

    per element

    Declaration
    public static float2 operator *(float src, float2 value)
    Parameters
    Type Name Description
    System.Single src
    float2 value
    Returns
    Type Description
    float2
    | Improve this Doc View Source

    Subtraction(float2, float2)

    per element

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

    Subtraction(float2, Single)

    per element

    Declaration
    public static float2 operator -(float2 src, float value)
    Parameters
    Type Name Description
    float2 src
    System.Single value
    Returns
    Type Description
    float2
    | Improve this Doc View Source

    Subtraction(Single, float2)

    per element

    Declaration
    public static float2 operator -(float src, float2 value)
    Parameters
    Type Name Description
    System.Single src
    float2 value
    Returns
    Type Description
    float2

    Implements

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