Show / Hide Table of Contents

    Struct float4

    float4

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

    Constructors

    | Improve this Doc View Source

    float4(Single)

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

    float4(Single, Single, Single, Single)

    Declaration
    public float4(float xValue, float yValue, float zValue, float wValue)
    Parameters
    Type Name Description
    System.Single xValue
    System.Single yValue
    System.Single zValue
    System.Single wValue

    Fields

    | Improve this Doc View Source

    w

    W

    Declaration
    public float w
    Field Value
    Type Description
    System.Single
    | 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
    | Improve this Doc View Source

    z

    Z

    Declaration
    public float z
    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(float4);

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

    Methods

    | Improve this Doc View Source

    Add(float4, float4)

    per element Add

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

    Add(float4, Single)

    per element Add

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

    Add(Single, float4)

    per element Add

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

    Divide(float4, float4)

    per element Divide

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

    Divide(float4, Single)

    per element Divide

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

    Divide(Single, float4)

    per element Divide

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

    Equals(float4)

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

    4

    | 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(float4, float4)

    Component wise maximum as the CUDA function fmaxf

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

    Min(float4, float4)

    Component wise minimum as the CUDA function fminf

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

    Multiply(float4, float4)

    per element Multiply

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

    Multiply(float4, Single)

    per element Multiply

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

    Multiply(Single, float4)

    per element Multiply

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

    Subtract(float4, float4)

    per element Substract

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

    Subtract(float4, Single)

    per element Substract

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

    Subtract(Single, float4)

    per element Substract

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

    per element

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

    Addition(float4, Single)

    per element

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

    Addition(Single, float4)

    per element

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

    Division(float4, float4)

    per element

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

    Division(float4, Single)

    per element

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

    Division(Single, float4)

    per element

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

    Equality(float4, float4)

    per element

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

    Inequality(float4, float4)

    per element

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

    Multiply(float4, float4)

    per element

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

    Multiply(float4, Single)

    per element

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

    Multiply(Single, float4)

    per element

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

    Subtraction(float4, float4)

    per element

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

    Subtraction(float4, Single)

    per element

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

    Subtraction(Single, float4)

    per element

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

    Implements

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