Class

cogx.compiler.gpu_operator.declaration

GPUArrayConstant

Related Doc: package declaration

Permalink

class GPUArrayConstant extends GPUArrayVariable with SemanticError with FloatConstantsTrait

A constant array declaration. This currently supports only arrays of floats.

NOTE: These have been disabled since constant arrays may only be declared at program scope and we don't yet have a mechanism for doing that.

Linear Supertypes
FloatConstantsTrait, GPUArrayVariable, Constraints, SemanticError, CompilerError, Declaration, Statement, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. GPUArrayConstant
  2. FloatConstantsTrait
  3. GPUArrayVariable
  4. Constraints
  5. SemanticError
  6. CompilerError
  7. Declaration
  8. Statement
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GPUArrayConstant(matrix: cogmath.algebra.real.Matrix)

    Permalink
  2. new GPUArrayConstant(values: Float*)

    Permalink
  3. new GPUArrayConstant(size: Array[Int], values: AnyRef)

    Permalink

    size

    The dimensions of the array.

    values

    The constant values held in the array. This must be Array[Float] for 1D array, Array[Array[Float] ] for a 2D array, and Array[Array[Array[Float] ] ] for a 3D array.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val MaxArrayDimensions: Int

    Permalink

    Upper bound on number of dimensions for an array.

    Upper bound on number of dimensions for an array.

    Definition Classes
    Constraints
  5. val MaxTensorSize: Int

    Permalink

    Maximum size of tensor, minimizing register pressure for kernel fusion.

    Maximum size of tensor, minimizing register pressure for kernel fusion.

    Definition Classes
    Constraints
  6. def apply(index: expression.GPUExpression*): ArrayLValue

    Permalink

    Array indexing, uses Scala convention of apply.

    Array indexing, uses Scala convention of apply.

    Definition Classes
    GPUArrayVariable
  7. def apply(index: Array[expression.GPUExpression]): ArrayLValue

    Permalink

    Array indexing, uses Scala convention of apply.

    Array indexing, uses Scala convention of apply.

    Definition Classes
    GPUArrayVariable
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. val baseType: GPUType

    Permalink

    Fundamental vector type of the variable.

    Fundamental vector type of the variable. In OpenCL float, float2, float3, ... are all fundamental types. Vectors and scalars are not really distinguished.

    Definition Classes
    GPUArrayVariable
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def constructed(): Unit

    Permalink

    Called by subclasses to signal that construction is complete.

    Called by subclasses to signal that construction is complete. This is used for debugging.

    Attributes
    protected
    Definition Classes
    Statement
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. def internalError(message: String): Unit

    Permalink

    Declare an internal error described by message.

    Declare an internal error described by message.

    Definition Classes
    CompilerError
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. var isShared: Boolean

    Permalink

    True if variable is shared (local).

    True if variable is shared (local).

    Definition Classes
    GPUArrayVariable
  20. var isVolatile: Boolean

    Permalink

    True if variable is volatile.

    True if variable is volatile.

    Definition Classes
    GPUArrayVariable
  21. val name: String

    Permalink

    Unique name for the variable.

    Unique name for the variable.

    Definition Classes
    GPUArrayVariable
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. val size: Array[expression.GPUExpression]

    Permalink

    The dimensions of the array.

    The dimensions of the array.

    Definition Classes
    GPUArrayVariable
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toOpenCLString(f: Float): String

    Permalink

    Converts Float constants to their OpenCL equivalents, including the special cases.

    Converts Float constants to their OpenCL equivalents, including the special cases.

    Definition Classes
    FloatConstantsTrait
  28. def toString(): String

    Permalink

    Create GPU code for the constant array declaration.

    Create GPU code for the constant array declaration.

    Definition Classes
    GPUArrayConstantGPUArrayVariable → AnyRef → Any
  29. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from FloatConstantsTrait

Inherited from GPUArrayVariable

Inherited from Constraints

Inherited from SemanticError

Inherited from CompilerError

Inherited from Declaration

Inherited from Statement

Inherited from AnyRef

Inherited from Any

Ungrouped