Trait

cogx

CogXInterface

Related Doc: package cogx

Permalink

trait CogXInterface extends CogFunctionAPI with ImplicitConversions with UserGPULibrary with ComplexImplicits

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CogXInterface
  2. ComplexImplicits
  3. Serializable
  4. Serializable
  5. UserGPULibrary
  6. VectorLiteralFunctions
  7. VariableDeclarations
  8. TypeConversionFunctions
  9. RelationalFunctions
  10. MathFunctions
  11. IntegerFunctions
  12. GeometricFunctions
  13. FieldWriteFunctions
  14. FieldVariableFunctions
  15. FieldReadFunctions
  16. ConstantExpressionFunctions
  17. FloatConstantsTrait
  18. CommonFunctions
  19. BlockFunctions
  20. AtomicFunctions
  21. CogFunctionAPI
  22. ImplicitConversions
  23. SemanticError
  24. CompilerError
  25. AnyRef
  26. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. type AbstractFieldMemory = platform.cpumemory.AbstractFieldMemory

    Permalink
  2. type Actuator = compiler.parser.syntaxtree.Actuator

    Permalink
  3. type BorderPolicy = platform.types.BorderPolicy

    Permalink
  4. type CheckpointerType = platform.types.CheckpointerType

    Permalink
  5. type ColorActuator = compiler.parser.syntaxtree.ColorActuator

    Permalink
  6. type ColorField = compiler.parser.syntaxtree.ColorField

    Permalink
  7. type ColorFieldReader = platform.cpumemory.readerwriter.ColorFieldReader

    Permalink
  8. type ColorFieldWriter = platform.cpumemory.readerwriter.ColorFieldWriter

    Permalink
  9. type ColorSensor = compiler.parser.syntaxtree.ColorSensor

    Permalink
  10. type Complex = cogmath.algebra.complex.Complex

    Permalink
  11. type ComplexField = compiler.parser.syntaxtree.ComplexField

    Permalink
  12. type ComplexFieldMemory = platform.cpumemory.ComplexFieldMemory

    Permalink
  13. type ComplexFieldReader = platform.cpumemory.readerwriter.ComplexFieldReader

    Permalink
  14. type ComplexFieldWriter = platform.cpumemory.readerwriter.ComplexFieldWriter

    Permalink
  15. type ComplexMatrix = cogmath.algebra.complex.ComplexMatrix

    Permalink
  16. type ComplexTensor3 = cogmath.algebra.complex.ComplexTensor3

    Permalink
  17. type ComplexVector = cogmath.algebra.complex.ComplexVector

    Permalink
  18. type ComplexVectorField = compiler.parser.syntaxtree.ComplexVectorField

    Permalink
  19. type ComplexVectorFieldReader = platform.cpumemory.readerwriter.ComplexVectorFieldReader

    Permalink
  20. type ComplexVectorFieldWriter = platform.cpumemory.readerwriter.ComplexVectorFieldWriter

    Permalink
  21. type ComputeGraph = runtime.ComputeGraph

    Permalink
  22. case class ConstFloat0D(value: Float) extends expression.GPUExpression with Product with Serializable

    Permalink

    A Float constant as a GPUExpression.

    A Float constant as a GPUExpression.

    Definition Classes
    ConstantExpressionFunctions
  23. case class ConstInt0D(value: Int) extends expression.GPUExpression with Product with Serializable

    Permalink

    An Int constant as a GPUExpression.

    An Int constant as a GPUExpression.

    Definition Classes
    ConstantExpressionFunctions
  24. type ConvolutionFFTUsePolicy = platform.types.ConvolutionFFTUsePolicy

    Permalink
  25. type ConvolutionSamplingPolicy = platform.types.ConvolutionSamplingPolicy

    Permalink
  26. type ConvolutionSmallTensorUsePolicy = platform.types.ConvolutionSmallTensorUsePolicy

    Permalink
  27. type DownsampleOutputConvolution = platform.types.DownsampleOutputConvolution

    Permalink
  28. type ElementType = platform.types.ElementTypes.ElementType

    Permalink
  29. type Field = compiler.parser.syntaxtree.Field

    Permalink
  30. type FieldReader = platform.cpumemory.readerwriter.FieldReader

    Permalink
  31. type FieldType = platform.types.FieldType

    Permalink
  32. type GPUArrayVariable = compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink

    An array variable in a GPU kernel

    An array variable in a GPU kernel

    Definition Classes
    UserGPULibrary
  33. type GPUExpression = compiler.gpu_operator.expression.GPUExpression

    Permalink

    An expression in a GPU kernel

    An expression in a GPU kernel

    Definition Classes
    UserGPULibrary
  34. type GPUVariable = compiler.gpu_operator.declaration.GPUVariable

    Permalink

    A scalar/vector variable in a GPU kernel

    A scalar/vector variable in a GPU kernel

    Definition Classes
    UserGPULibrary
  35. type ImageMemory = ColorFieldMemory

    Permalink
  36. type Logarithm = cogmath.algebra.real.Logarithm

    Permalink
  37. type Matrix = cogmath.algebra.real.Matrix

    Permalink
  38. type MatrixField = compiler.parser.syntaxtree.MatrixField

    Permalink
  39. type MatrixFieldMemory = platform.cpumemory.MatrixFieldMemory

    Permalink
  40. type MatrixFieldReader = platform.cpumemory.readerwriter.MatrixFieldReader

    Permalink
  41. type MatrixFieldWriter = platform.cpumemory.readerwriter.MatrixFieldWriter

    Permalink
  42. type Operator = compiler.cpu_operator.Operator

    Permalink
  43. type Pixel = platform.types.Pixel

    Permalink
  44. type Random = utilities.Random

    Permalink
  45. type ScalarField = compiler.parser.syntaxtree.ScalarField

    Permalink
  46. type ScalarFieldReader = platform.cpumemory.readerwriter.ScalarFieldReader

    Permalink
  47. type ScalarFieldWriter = platform.cpumemory.readerwriter.ScalarFieldWriter

    Permalink
  48. type Sensor = compiler.parser.syntaxtree.Sensor

    Permalink
  49. type Shape = cogmath.geometry.Shape

    Permalink
  50. type Tensor3 = cogmath.algebra.real.Tensor3

    Permalink
  51. type UnpipelinedActuator = compiler.parser.syntaxtree.UnpipelinedActuator

    Permalink
  52. type UnpipelinedColorActuator = compiler.parser.syntaxtree.UnpipelinedColorActuator

    Permalink
  53. type UnpipelinedColorSensor = compiler.parser.syntaxtree.UnpipelinedColorSensor

    Permalink
  54. type UnpipelinedSensor = compiler.parser.syntaxtree.UnpipelinedSensor

    Permalink
  55. type UnpipelinedVectorActuator = compiler.parser.syntaxtree.UnpipelinedVectorActuator

    Permalink
  56. type UnpipelinedVectorSensor = compiler.parser.syntaxtree.UnpipelinedVectorSensor

    Permalink
  57. type UpsampleInputConvolution = platform.types.UpsampleInputConvolution

    Permalink
  58. type Vector = cogmath.algebra.real.Vector

    Permalink
  59. type VectorActuator = compiler.parser.syntaxtree.VectorActuator

    Permalink
  60. type VectorField = compiler.parser.syntaxtree.VectorField

    Permalink
  61. type VectorFieldMemory = platform.cpumemory.VectorFieldMemory

    Permalink
  62. type VectorFieldReader = platform.cpumemory.readerwriter.VectorFieldReader

    Permalink
  63. type VectorFieldWriter = platform.cpumemory.readerwriter.VectorFieldWriter

    Permalink
  64. type VectorSensor = compiler.parser.syntaxtree.VectorSensor

    Permalink

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 Actuator: compiler.parser.syntaxtree.Actuator.type

    Permalink
  5. val BorderClamp: platform.types.BorderClamp.type

    Permalink
  6. val BorderCyclic: platform.types.BorderCyclic.type

    Permalink
  7. val BorderFull: platform.types.BorderFull.type

    Permalink
  8. val BorderValid: platform.types.BorderValid.type

    Permalink
  9. val BorderZero: platform.types.BorderZero.type

    Permalink
  10. val Cog: parameters.Cog.type

    Permalink
  11. val ColorActuator: compiler.parser.syntaxtree.ColorActuator.type

    Permalink
  12. val ColorField: compiler.parser.syntaxtree.ColorField.type

    Permalink
  13. val Complex: cogmath.algebra.complex.Complex.type

    Permalink
  14. val Complex16: platform.types.ElementTypes.Complex16.type

    Permalink
  15. val Complex32: platform.types.ElementTypes.Complex32.type

    Permalink
  16. val Complex64: platform.types.ElementTypes.Complex64.type

    Permalink
  17. val ComplexField: compiler.parser.syntaxtree.ComplexField.type

    Permalink
  18. val ComplexMatrix: cogmath.algebra.complex.ComplexMatrix.type

    Permalink
  19. val ComplexVector: cogmath.algebra.complex.ComplexVector.type

    Permalink
  20. val ComplexVectorField: compiler.parser.syntaxtree.ComplexVectorField.type

    Permalink
  21. val ComputeGraph: runtime.ComputeGraph.type

    Permalink
  22. val DownsampleOutputConvolution: platform.types.DownsampleOutputConvolution.type

    Permalink
  23. val FFT2D: cogmath.fft.FFT2D.type

    Permalink
  24. val Field: compiler.parser.syntaxtree.Field.type

    Permalink
  25. val FieldMemory: platform.cpumemory.FieldMemory.type

    Permalink
  26. val Float16: platform.types.ElementTypes.Float16.type

    Permalink
  27. val Float32: platform.types.ElementTypes.Float32.type

    Permalink
  28. val Float64: platform.types.ElementTypes.Float64.type

    Permalink
  29. val GPUOperator: compiler.gpu_operator.GPUOperator.type

    Permalink
  30. val Hdf5CheckpointerType: platform.types.Hdf5CheckpointerType.type

    Permalink
  31. val I: cogmath.algebra.complex.Complex

    Permalink

    Square root of -1

    Square root of -1

    Definition Classes
    ComplexImplicits
  32. val Int16: platform.types.ElementTypes.Int16.type

    Permalink
  33. val Int32: platform.types.ElementTypes.Int32.type

    Permalink
  34. val Int64: platform.types.ElementTypes.Int64.type

    Permalink
  35. val Int8: platform.types.ElementTypes.Int8.type

    Permalink
  36. val JavaCheckpointerType: platform.types.JavaCheckpointerType.type

    Permalink
  37. val Logarithm: cogmath.algebra.real.Logarithm.type

    Permalink
  38. val Matrix: cogmath.algebra.real.Matrix.type

    Permalink
  39. val MatrixField: compiler.parser.syntaxtree.MatrixField.type

    Permalink
  40. val NoSamplingConvolution: platform.types.NoSamplingConvolution.type

    Permalink
  41. val Random: utilities.Random.type

    Permalink
  42. val ScalarField: compiler.parser.syntaxtree.ScalarField.type

    Permalink
  43. val Shape: cogmath.geometry.Shape.type

    Permalink
  44. val Uint16: platform.types.ElementTypes.Uint16.type

    Permalink
  45. val Uint32: platform.types.ElementTypes.Uint32.type

    Permalink
  46. val Uint64: platform.types.ElementTypes.Uint64.type

    Permalink
  47. val Uint8: platform.types.ElementTypes.Uint8.type

    Permalink
  48. val Uint8Pixel: platform.types.ElementTypes.Uint8Pixel.type

    Permalink
  49. val UnpipelinedActuator: compiler.parser.syntaxtree.UnpipelinedActuator.type

    Permalink
  50. val UnpipelinedColorActuator: compiler.parser.syntaxtree.UnpipelinedColorActuator.type

    Permalink
  51. val UpsampleInputConvolution: platform.types.UpsampleInputConvolution.type

    Permalink
  52. val UseFFTAlways: platform.types.UseFFTAlways.type

    Permalink
  53. val UseFFTNever: platform.types.UseFFTNever.type

    Permalink
  54. val UseFFTWhenBest: platform.types.UseFFTWhenBest.type

    Permalink
  55. val UseSmallTensorAlways: platform.types.UseSmallTensorAlways.type

    Permalink
  56. val UseSmallTensorNever: platform.types.UseSmallTensorNever.type

    Permalink
  57. val UseSmallTensorWhenBest: platform.types.UseSmallTensorWhenBest.type

    Permalink
  58. val Vector: cogmath.algebra.real.Vector.type

    Permalink
  59. val VectorActuator: compiler.parser.syntaxtree.VectorActuator.type

    Permalink
  60. val VectorField: compiler.parser.syntaxtree.VectorField.type

    Permalink
  61. def _abs(expr: compiler.gpu_operator.expression.GPUExpression): UnaryIntExpression

    Permalink
    Definition Classes
    IntegerFunctions
  62. def _abs_diff(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryIntExpression

    Permalink
    Definition Classes
    IntegerFunctions
  63. def _acos(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  64. def _acosh(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  65. def _acospi(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  66. def _add_sat(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryIntExpression

    Permalink
    Definition Classes
    IntegerFunctions
  67. def _as_float(e: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    TypeConversionFunctions
  68. def _as_float2(e: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    TypeConversionFunctions
  69. def _as_float3(e: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    TypeConversionFunctions
  70. def _as_float4(e: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    TypeConversionFunctions
  71. def _as_int(e: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    TypeConversionFunctions
  72. def _as_int2(e: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    TypeConversionFunctions
  73. def _as_int3(e: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    TypeConversionFunctions
  74. def _as_int4(e: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    TypeConversionFunctions
  75. def _as_uint(e: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    TypeConversionFunctions
  76. def _as_uint2(e: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    TypeConversionFunctions
  77. def _as_uint3(e: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    TypeConversionFunctions
  78. def _as_uint4(e: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    TypeConversionFunctions
  79. def _asin(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  80. def _asinh(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  81. def _asinpi(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  82. def _atan(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  83. def _atan2(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  84. def _atanh(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  85. def _atomic_add(pointer: PointerExpression, value: compiler.gpu_operator.expression.GPUExpression): BinaryAtomicExpression

    Permalink
    Definition Classes
    AtomicFunctions
  86. def _atomic_and(pointer: PointerExpression, value: compiler.gpu_operator.expression.GPUExpression): BinaryAtomicExpression

    Permalink
    Definition Classes
    AtomicFunctions
  87. def _atomic_cmpxchg(pointer: PointerExpression, value1: compiler.gpu_operator.expression.GPUExpression, value2: compiler.gpu_operator.expression.GPUExpression): TernaryAtomicExpression

    Permalink
    Definition Classes
    AtomicFunctions
  88. def _atomic_dec(pointer: PointerExpression): UnaryAtomicExpression

    Permalink
    Definition Classes
    AtomicFunctions
  89. def _atomic_inc(pointer: PointerExpression): UnaryAtomicExpression

    Permalink
    Definition Classes
    AtomicFunctions
  90. def _atomic_max(pointer: PointerExpression, value: compiler.gpu_operator.expression.GPUExpression): BinaryAtomicExpression

    Permalink
    Definition Classes
    AtomicFunctions
  91. def _atomic_min(pointer: PointerExpression, value: compiler.gpu_operator.expression.GPUExpression): BinaryAtomicExpression

    Permalink
    Definition Classes
    AtomicFunctions
  92. def _atomic_or(pointer: PointerExpression, value: compiler.gpu_operator.expression.GPUExpression): BinaryAtomicExpression

    Permalink
    Definition Classes
    AtomicFunctions
  93. def _atomic_sub(pointer: PointerExpression, value: compiler.gpu_operator.expression.GPUExpression): BinaryAtomicExpression

    Permalink
    Definition Classes
    AtomicFunctions
  94. def _atomic_xchg(pointer: PointerExpression, value: compiler.gpu_operator.expression.GPUExpression): BinaryAtomicExpression

    Permalink
    Definition Classes
    AtomicFunctions
  95. def _atomic_xor(pointer: PointerExpression, value: compiler.gpu_operator.expression.GPUExpression): BinaryAtomicExpression

    Permalink
    Definition Classes
    AtomicFunctions
  96. def _block(code: ⇒ Unit): Unit

    Permalink

    Begin an anonymous block.

    Begin an anonymous block.

    Definition Classes
    BlockFunctions
  97. def _cbrt(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  98. def _ceil(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  99. def _char2Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  100. def _char2Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  101. def _char3Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  102. def _char3Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  103. def _char4Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  104. def _char4Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  105. def _charArray(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  106. def _charVar(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  107. def _clamp(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression, expr3: compiler.gpu_operator.expression.GPUExpression): SemanticError with compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    IntegerFunctions
  108. def _clz(expr: compiler.gpu_operator.expression.GPUExpression): UnaryIntExpression

    Permalink
    Definition Classes
    IntegerFunctions
  109. val _column: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  110. val _columns: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  111. def _convert_float(e: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    TypeConversionFunctions
  112. def _convert_float2(e: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    TypeConversionFunctions
  113. def _convert_float3(e: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    TypeConversionFunctions
  114. def _convert_float4(e: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    TypeConversionFunctions
  115. def _convert_int(e: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    TypeConversionFunctions
  116. def _convert_int2(e: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    TypeConversionFunctions
  117. def _convert_int3(e: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    TypeConversionFunctions
  118. def _convert_int4(e: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    TypeConversionFunctions
  119. def _convert_uint(e: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    TypeConversionFunctions
  120. def _convert_uint2(e: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    TypeConversionFunctions
  121. def _convert_uint3(e: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    TypeConversionFunctions
  122. def _convert_uint4(e: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    TypeConversionFunctions
  123. def _copysign(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  124. def _cos(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  125. def _cosh(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  126. def _cospi(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  127. def _debug: DebugStatement

    Permalink

    Debug the GPUOperator.

    Debug the GPUOperator.

    Definition Classes
    UserGPULibrary
  128. def _degrees(expr1: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    CommonFunctions
  129. def _distance(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryFloatExpression

    Permalink
    Definition Classes
    GeometricFunctions
  130. def _dot(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryFloatExpression

    Permalink
    Definition Classes
    GeometricFunctions
  131. def _double2Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  132. def _double2Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  133. def _double3Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  134. def _double3Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  135. def _double4Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  136. def _double4Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  137. def _doubleArray(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  138. def _doubleVar(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  139. def _else(code: ⇒ Unit): Unit

    Permalink

    Begin an "else" block.

    Begin an "else" block.

    Definition Classes
    BlockFunctions
  140. def _elseif(condition: compiler.gpu_operator.expression.GPUExpression)(code: ⇒ Unit): Unit

    Permalink

    Begin an "elseif" block.

    Begin an "elseif" block.

    Definition Classes
    BlockFunctions
  141. def _erf(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  142. def _erfc(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  143. def _exp(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  144. def _exp10(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  145. def _exp2(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  146. def _expm1(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  147. def _fabs(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  148. def _fast_distance(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryFloatExpression

    Permalink
    Definition Classes
    GeometricFunctions
  149. def _fast_length(expr1: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    GeometricFunctions
  150. def _fast_normalize(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    GeometricFunctions
  151. def _fdim(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  152. def _float2(e1: compiler.gpu_operator.expression.GPUExpression, e2: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    VectorLiteralFunctions
  153. def _float2(e1: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    VectorLiteralFunctions
  154. def _float2Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  155. def _float2Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  156. def _float3(e1: compiler.gpu_operator.expression.GPUExpression, e2: compiler.gpu_operator.expression.GPUExpression, e3: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    VectorLiteralFunctions
  157. def _float3(e1: compiler.gpu_operator.expression.GPUExpression, e2: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    VectorLiteralFunctions
  158. def _float3(e1: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    VectorLiteralFunctions
  159. def _float3Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  160. def _float3Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  161. def _float4(e1: compiler.gpu_operator.expression.GPUExpression, e2: compiler.gpu_operator.expression.GPUExpression, e3: compiler.gpu_operator.expression.GPUExpression, e4: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    VectorLiteralFunctions
  162. def _float4(e1: compiler.gpu_operator.expression.GPUExpression, e2: compiler.gpu_operator.expression.GPUExpression, e3: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    VectorLiteralFunctions
  163. def _float4(e1: compiler.gpu_operator.expression.GPUExpression, e2: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    VectorLiteralFunctions
  164. def _float4(e1: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    VectorLiteralFunctions
  165. def _float4Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  166. def _float4Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  167. def _floatArray(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  168. def _floatVar(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  169. def _floor(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  170. def _fma(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression, expr3: compiler.gpu_operator.expression.GPUExpression): TernaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  171. def _fmax(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  172. def _fmin(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  173. def _fmod(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  174. def _for(pre: Assignment, condition: compiler.gpu_operator.expression.GPUExpression, post: Assignment)(code: ⇒ Unit): Unit

    Permalink

    Begin a "for" block.

    Begin a "for" block.

    Definition Classes
    BlockFunctions
  175. def _forEachTensorElement(shape: cogmath.geometry.Shape)(code: ⇒ Unit): Unit

    Permalink

    Begin a "forEachTensorElement" block.

    Begin a "forEachTensorElement" block.

    Definition Classes
    BlockFunctions
  176. def _globalThreads(fieldShape: cogmath.geometry.Shape, tensorShape: cogmath.geometry.Shape): GlobalThreadsStatement

    Permalink

    Override global thread allocation.

    Override global thread allocation. Typically used to create a thread per tensor element in a field, though the field may be illusory, not corresponding to any input or output field. This gives you raw control over thread allocation.

    Each thread can see its identity in the global thread space from the constants:

    _layer
    _row
    _column
    _tensorElement

    Basically this creates a thread for each element in a tensor field.

    fieldShape

    The shape of the global threads allocated. This may be 1D, 2D or 3D, and each thread can see its identity with the _layer, _row, and _column constants.

    tensorShape

    The shape of the tensors in the (possibly illusory) field. One thread is created for each tensor in that field.

    returns

    Statement for the global thread allocation override.

    Definition Classes
    UserGPULibrary
  177. def _globalThreads(fieldShape: cogmath.geometry.Shape): GlobalThreadsStatement

    Permalink

    Override global thread allocation.

    Override global thread allocation. Typically used to create a thread per tensor in a field, though the field may be illusory, not corresponding to any input or output field. This gives you raw control over thread allocation.

    Each thread can see its identity in the global thread space from the constants:

    _layer
    _row
    _column
    fieldShape

    The shape of the global threads allocated. This may be 1D, 2D or 3D, and each thread can see its identity with the _layer, _row, and _column constants.

    returns

    Statement for the global thread allocation override.

    Definition Classes
    UserGPULibrary
  178. val _groupColumn: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  179. val _groupLayer: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  180. val _groupRow: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  181. def _hadd(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryIntExpression

    Permalink
    Definition Classes
    IntegerFunctions
  182. def _half2Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  183. def _half2Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  184. def _half3Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  185. def _half3Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  186. def _half4Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  187. def _half4Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  188. def _halfArray(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  189. def _halfVar(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  190. def _hypot(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  191. def _if(condition: compiler.gpu_operator.expression.GPUExpression)(code: ⇒ Unit): Unit

    Permalink

    Begin an "if" block.

    Begin an "if" block.

    Definition Classes
    BlockFunctions
  192. def _int2(e1: compiler.gpu_operator.expression.GPUExpression, e2: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    VectorLiteralFunctions
  193. def _int2(e1: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    VectorLiteralFunctions
  194. def _int2Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  195. def _int2Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  196. def _int3(e1: compiler.gpu_operator.expression.GPUExpression, e2: compiler.gpu_operator.expression.GPUExpression, e3: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    VectorLiteralFunctions
  197. def _int3(e1: compiler.gpu_operator.expression.GPUExpression, e2: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    VectorLiteralFunctions
  198. def _int3(e1: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    VectorLiteralFunctions
  199. def _int3Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  200. def _int3Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  201. def _int4(e1: compiler.gpu_operator.expression.GPUExpression, e2: compiler.gpu_operator.expression.GPUExpression, e3: compiler.gpu_operator.expression.GPUExpression, e4: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    VectorLiteralFunctions
  202. def _int4(e1: compiler.gpu_operator.expression.GPUExpression, e2: compiler.gpu_operator.expression.GPUExpression, e3: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    VectorLiteralFunctions
  203. def _int4(e1: compiler.gpu_operator.expression.GPUExpression, e2: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    VectorLiteralFunctions
  204. def _int4(e1: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    VectorLiteralFunctions
  205. def _int4Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  206. def _int4Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  207. def _intArray(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  208. def _intVar(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  209. def _isequal(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryRelationalExpression

    Permalink
    Definition Classes
    RelationalFunctions
  210. def _isgreater(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryRelationalExpression

    Permalink
    Definition Classes
    RelationalFunctions
  211. def _isgreaterequal(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryRelationalExpression

    Permalink
    Definition Classes
    RelationalFunctions
  212. def _isinf(expr: compiler.gpu_operator.expression.GPUExpression): UnaryRelationalExpression

    Permalink
    Definition Classes
    RelationalFunctions
  213. def _isinfinite(expr: compiler.gpu_operator.expression.GPUExpression): UnaryRelationalExpression

    Permalink
    Definition Classes
    RelationalFunctions
  214. def _isless(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryRelationalExpression

    Permalink
    Definition Classes
    RelationalFunctions
  215. def _islessequal(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryRelationalExpression

    Permalink
    Definition Classes
    RelationalFunctions
  216. def _islessgreater(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryRelationalExpression

    Permalink
    Definition Classes
    RelationalFunctions
  217. def _isnan(expr: compiler.gpu_operator.expression.GPUExpression): UnaryRelationalExpression

    Permalink
    Definition Classes
    RelationalFunctions
  218. def _isnormal(expr: compiler.gpu_operator.expression.GPUExpression): UnaryRelationalExpression

    Permalink
    Definition Classes
    RelationalFunctions
  219. def _isnotequal(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryRelationalExpression

    Permalink
    Definition Classes
    RelationalFunctions
  220. def _isordered(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryRelationalExpression

    Permalink
    Definition Classes
    RelationalFunctions
  221. def _isunordered(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryRelationalExpression

    Permalink
    Definition Classes
    RelationalFunctions
  222. val _layer: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  223. val _layers: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  224. def _length(expr1: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    GeometricFunctions
  225. def _lgamma(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  226. def _local(variable: GPUArrayVariable): GPUArrayVariable

    Permalink

    Declare an array variable to be local.

    Declare an array variable to be local.

    Definition Classes
    UserGPULibrary
  227. def _local(variable: GPUVariable): GPUVariable

    Permalink

    Declare a variable to be local.

    Declare a variable to be local.

    Definition Classes
    UserGPULibrary
  228. val _localColumn: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  229. val _localColumns: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  230. val _localLayer: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  231. val _localLayers: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  232. val _localRow: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  233. val _localRows: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  234. def _localThreads(shape: cogmath.geometry.Shape): LocalThreadsStatement

    Permalink

    Override local thread allocation (work group size).

    Override local thread allocation (work group size).

    shape

    The shape of the work group threads.

    returns

    Statement for the local thread allocation override

    Definition Classes
    UserGPULibrary
  235. def _log(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  236. def _log10(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  237. def _log1p(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  238. def _log2(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  239. def _logb(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  240. def _long2Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  241. def _long2Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  242. def _long3Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  243. def _long3Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  244. def _long4Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  245. def _long4Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  246. def _longArray(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  247. def _longVar(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  248. def _mad(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression, expr3: compiler.gpu_operator.expression.GPUExpression): TernaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  249. def _mad24(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression, expr3: compiler.gpu_operator.expression.GPUExpression): TernaryIntExpression

    Permalink
    Definition Classes
    IntegerFunctions
  250. def _mad_hi(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression, expr3: compiler.gpu_operator.expression.GPUExpression): TernaryIntExpression

    Permalink
    Definition Classes
    IntegerFunctions
  251. def _mad_sat(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression, expr3: compiler.gpu_operator.expression.GPUExpression): TernaryIntExpression

    Permalink
    Definition Classes
    IntegerFunctions
  252. def _max(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): SemanticError with compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    IntegerFunctions
  253. def _maxmag(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  254. def _min(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): SemanticError with compiler.gpu_operator.expression.GPUExpression

    Permalink
    Definition Classes
    IntegerFunctions
  255. def _minmag(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  256. def _mix(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression, expr3: compiler.gpu_operator.expression.GPUExpression): TernaryFloatExpression

    Permalink
    Definition Classes
    CommonFunctions
  257. def _mul24(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryIntExpression

    Permalink
    Definition Classes
    IntegerFunctions
  258. def _mul_hi(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryIntExpression

    Permalink
    Definition Classes
    IntegerFunctions
  259. def _native_divide(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  260. def _nextafter(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  261. def _normalize(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    GeometricFunctions
  262. val _out0: compiler.gpu_operator.types._out0.type

    Permalink
    Definition Classes
    UserGPULibrary
  263. val _out1: compiler.gpu_operator.types._out1.type

    Permalink
    Definition Classes
    UserGPULibrary
  264. val _out2: compiler.gpu_operator.types._out2.type

    Permalink
    Definition Classes
    UserGPULibrary
  265. val _out3: compiler.gpu_operator.types._out3.type

    Permalink
    Definition Classes
    UserGPULibrary
  266. val _out4: compiler.gpu_operator.types._out4.type

    Permalink
    Definition Classes
    UserGPULibrary
  267. val _out5: compiler.gpu_operator.types._out5.type

    Permalink
    Definition Classes
    UserGPULibrary
  268. val _out6: compiler.gpu_operator.types._out6.type

    Permalink
    Definition Classes
    UserGPULibrary
  269. val _out7: compiler.gpu_operator.types._out7.type

    Permalink
    Definition Classes
    UserGPULibrary
  270. val _out8: compiler.gpu_operator.types._out8.type

    Permalink
    Definition Classes
    UserGPULibrary
  271. val _out9: compiler.gpu_operator.types._out9.type

    Permalink
    Definition Classes
    UserGPULibrary
  272. def _pointerTo(arrayElement: ArrayLValue): ArrayElementPointerExpression

    Permalink

    Create a pointer to an array element.

    Create a pointer to an array element.

    Definition Classes
    UserGPULibrary
  273. def _pointerTo(variable: GPUVariable): VariablePointerExpression

    Permalink

    Create a pointer to a variable.

    Create a pointer to a variable.

    Definition Classes
    UserGPULibrary
  274. def _pow(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  275. def _pown(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryFloatIntExpression

    Permalink
    Definition Classes
    MathFunctions
  276. def _powr(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  277. def _radians(expr1: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    CommonFunctions
  278. def _readTensor(f: compiler.parser.syntaxtree.Field, layer: compiler.gpu_operator.expression.GPUExpression, row: compiler.gpu_operator.expression.GPUExpression, column: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink

    Read the tensor in a 3D field using explicit addressing.

    Read the tensor in a 3D field using explicit addressing.

    f

    The tensor field to be read.

    layer

    The layer address of the tensor.

    row

    The row address of the tensor.

    column

    The column address of the tensor.

    returns

    The value of the tensor as an expression.

    Definition Classes
    FieldReadFunctions
  279. def _readTensor(f: compiler.parser.syntaxtree.Field, row: compiler.gpu_operator.expression.GPUExpression, column: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink

    Read the tensor in a 2D field using explicit addressing.

    Read the tensor in a 2D field using explicit addressing.

    f

    The tensor field to be read.

    row

    The row address of the tensor.

    column

    The column address of the tensor.

    returns

    The value of the tensor as an expression.

    Definition Classes
    FieldReadFunctions
  280. def _readTensor(f: compiler.parser.syntaxtree.Field, column: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink

    Read the tensor in a 1D field using explicit addressing.

    Read the tensor in a 1D field using explicit addressing.

    f

    The tensor field to be read.

    column

    The column address of the tensor.

    returns

    The value of the tensor as an expression.

    Definition Classes
    FieldReadFunctions
  281. def _readTensor(f: compiler.parser.syntaxtree.Field): compiler.gpu_operator.expression.GPUExpression

    Permalink

    Read the "current" tensor (addressed by _layer, _row, _column).

    Read the "current" tensor (addressed by _layer, _row, _column).

    f

    The tensor field to be read.

    returns

    The value of the tensor as an expression.

    Definition Classes
    FieldReadFunctions
  282. def _readTensorElement(f: compiler.parser.syntaxtree.Field, layer: compiler.gpu_operator.expression.GPUExpression, row: compiler.gpu_operator.expression.GPUExpression, column: compiler.gpu_operator.expression.GPUExpression, element: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink

    Read the tensor in a 3D field using explicit addressing.

    Read the tensor in a 3D field using explicit addressing.

    f

    The tensor field to be read.

    layer

    The layer address of the tensor.

    row

    The row address of the tensor.

    column

    The column address of the tensor.

    element

    The element (index) of the tensor to be read.

    returns

    The value of the tensor as an expression.

    Definition Classes
    FieldReadFunctions
  283. def _readTensorElement(f: compiler.parser.syntaxtree.Field, row: compiler.gpu_operator.expression.GPUExpression, column: compiler.gpu_operator.expression.GPUExpression, element: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink

    Read the tensor in a 2D field using explicit addressing.

    Read the tensor in a 2D field using explicit addressing.

    f

    The tensor field to be read.

    row

    The row address of the tensor.

    column

    The column address of the tensor.

    element

    The element (index) of the tensor to be read.

    returns

    The value of the tensor as an expression.

    Definition Classes
    FieldReadFunctions
  284. def _readTensorElement(f: compiler.parser.syntaxtree.Field, column: compiler.gpu_operator.expression.GPUExpression, element: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink

    Read the tensor in a 1D field using explicit addressing.

    Read the tensor in a 1D field using explicit addressing.

    f

    The tensor field to be read.

    column

    The column address of the tensor.

    element

    The element (index) of the tensor to be read.

    returns

    The value of the tensor as an expression.

    Definition Classes
    FieldReadFunctions
  285. def _readTensorElement(f: compiler.parser.syntaxtree.Field, element: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.expression.GPUExpression

    Permalink

    Read the "current" tensor (addressed by _layer, _row, _column).

    Read the "current" tensor (addressed by _layer, _row, _column).

    f

    The tensor field to be read.

    element

    The element (index) of the tensor to be read.

    returns

    The value of the tensor as an expression.

    Definition Classes
    FieldReadFunctions
  286. def _remainder(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  287. def _rhadd(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryIntExpression

    Permalink
    Definition Classes
    IntegerFunctions
  288. def _rint(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  289. def _rotate(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryIntExpression

    Permalink
    Definition Classes
    IntegerFunctions
  290. def _round(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  291. val _row: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  292. val _rows: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  293. def _rsqrt(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  294. def _short2Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  295. def _short2Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  296. def _short3Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  297. def _short3Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  298. def _short4Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  299. def _short4Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  300. def _shortArray(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  301. def _shortVar(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  302. def _sign(expr1: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    CommonFunctions
  303. def _sin(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  304. def _sinh(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  305. def _sinpi(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  306. def _sqrt(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  307. def _sub_sat(expr1: compiler.gpu_operator.expression.GPUExpression, expr2: compiler.gpu_operator.expression.GPUExpression): BinaryIntExpression

    Permalink
    Definition Classes
    IntegerFunctions
  308. def _syncThreadsGlobal: SyncThreadsGlobalStatement

    Permalink

    Synchronize threads with a barrier with respect to global memory.

    Synchronize threads with a barrier with respect to global memory.

    Definition Classes
    UserGPULibrary
  309. def _syncThreadsLocal: SyncThreadsLocalStatement

    Permalink

    Synchronize threads with a barrier with respect to local memory.

    Synchronize threads with a barrier with respect to local memory.

    Definition Classes
    UserGPULibrary
  310. def _tan(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  311. def _tanh(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  312. def _tanpi(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  313. def _tensorArray(f: compiler.parser.syntaxtree.Field, layers: compiler.gpu_operator.expression.GPUExpression, rows: compiler.gpu_operator.expression.GPUExpression, columns: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink

    Create a 3D array of tensors, where the tensor type is defined the type of tensors in a field.

    Create a 3D array of tensors, where the tensor type is defined the type of tensors in a field.

    f

    The tensor field to be analyzed.

    layers

    Layers in tensor array.

    rows

    Rows in tensor array.

    columns

    Columns in tensor array.

    returns

    The declaration for the array.

    Definition Classes
    FieldVariableFunctions
  314. def _tensorArray(f: compiler.parser.syntaxtree.Field, rows: compiler.gpu_operator.expression.GPUExpression, columns: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink

    Create a 2D array of tensors, where the tensor type is defined the type of tensors in a field.

    Create a 2D array of tensors, where the tensor type is defined the type of tensors in a field.

    f

    The tensor field to be analyzed.

    rows

    Rows in tensor array.

    columns

    Columns in tensor array.

    returns

    The declaration for the array.

    Definition Classes
    FieldVariableFunctions
  315. def _tensorArray(f: compiler.parser.syntaxtree.Field, columns: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink

    Create a 1D array of tensors, where the tensor type is defined the type of tensors in a field.

    Create a 1D array of tensors, where the tensor type is defined the type of tensors in a field.

    f

    The tensor field to be analyzed.

    columns

    Length of tensor array.

    returns

    The declaration for the array.

    Definition Classes
    FieldVariableFunctions
  316. val _tensorElement: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  317. def _tensorElementArray(f: compiler.parser.syntaxtree.Field, layers: compiler.gpu_operator.expression.GPUExpression, rows: compiler.gpu_operator.expression.GPUExpression, columns: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink

    Create a 3D array of tensor elements, where the element type is defined by the type of tensors in a field.

    Create a 3D array of tensor elements, where the element type is defined by the type of tensors in a field.

    f

    The tensor field to be analyzed.

    layers

    Layers in tensor array.

    rows

    Rows in tensor array.

    columns

    Columns in tensor array.

    returns

    The declaration for the array.

    Definition Classes
    FieldVariableFunctions
  318. def _tensorElementArray(f: compiler.parser.syntaxtree.Field, rows: compiler.gpu_operator.expression.GPUExpression, columns: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink

    Create a 2D array of tensor elements, where the element type is defined by the type of tensors in a field.

    Create a 2D array of tensor elements, where the element type is defined by the type of tensors in a field.

    f

    The tensor field to be analyzed.

    rows

    Rows in tensor array.

    columns

    Columns in tensor array.

    returns

    The declaration for the array.

    Definition Classes
    FieldVariableFunctions
  319. def _tensorElementArray(f: compiler.parser.syntaxtree.Field, columns: compiler.gpu_operator.expression.GPUExpression): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink

    Create a 1D array of tensor elements, where the element type is defined by the type of tensors in a field.

    Create a 1D array of tensor elements, where the element type is defined by the type of tensors in a field.

    f

    The tensor field to be analyzed.

    columns

    Length of tensor array.

    returns

    The declaration for the array.

    Definition Classes
    FieldVariableFunctions
  320. def _tensorElementVar(f: compiler.parser.syntaxtree.Field): compiler.gpu_operator.declaration.GPUVariable

    Permalink

    Create an element variable of type defined by the tensors in a field.

    Create an element variable of type defined by the tensors in a field.

    f

    The tensor field to be analyzed.

    returns

    The value of the tensor as an expression.

    Definition Classes
    FieldVariableFunctions
  321. val _tensorElements: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  322. def _tensorVar(f: compiler.parser.syntaxtree.Field): compiler.gpu_operator.declaration.GPUVariable

    Permalink

    Create a variable of type defined by the tensors in a field.

    Create a variable of type defined by the tensors in a field.

    f

    The tensor field to be analyzed.

    returns

    The value of the tensor as an expression.

    Definition Classes
    FieldVariableFunctions
  323. def _tgamma(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  324. def _trunc(expr: compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

    Permalink
    Definition Classes
    MathFunctions
  325. def _uchar2Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  326. def _uchar2Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  327. def _uchar3Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  328. def _uchar3Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  329. def _uchar4Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  330. def _uchar4Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  331. def _ucharArray(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  332. def _ucharVar(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  333. def _uint2Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  334. def _uint2Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  335. def _uint3Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  336. def _uint3Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  337. def _uint4Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  338. def _uint4Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  339. def _uintArray(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  340. def _uintVar(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  341. def _ulong2Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  342. def _ulong2Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  343. def _ulong3Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  344. def _ulong3Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  345. def _ulong4Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  346. def _ulong4Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  347. def _ulongArray(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  348. def _ulongVar(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  349. def _ushort2Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  350. def _ushort2Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  351. def _ushort3Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  352. def _ushort3Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  353. def _ushort4Array(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  354. def _ushort4Var(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  355. def _ushortArray(size: compiler.gpu_operator.expression.GPUExpression*): compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink
    Definition Classes
    VariableDeclarations
  356. def _ushortVar(): compiler.gpu_operator.declaration.GPUVariable

    Permalink
    Definition Classes
    VariableDeclarations
  357. def _volatile(variable: GPUArrayVariable): GPUArrayVariable

    Permalink

    Declare an array variable to be volatile.

    Declare an array variable to be volatile.

    Definition Classes
    UserGPULibrary
  358. def _volatile(variable: GPUVariable): GPUVariable

    Permalink

    Declare a variable to be volatile.

    Declare a variable to be volatile.

    Definition Classes
    UserGPULibrary
  359. def _while(condition: compiler.gpu_operator.expression.GPUExpression)(code: ⇒ Unit): Unit

    Permalink

    Begin a "while" block.

    Begin a "while" block.

    Definition Classes
    BlockFunctions
  360. def _writeTensor(index: OutFieldIndex, value: compiler.gpu_operator.expression.GPUExpression, layer: compiler.gpu_operator.expression.GPUExpression, row: compiler.gpu_operator.expression.GPUExpression, column: compiler.gpu_operator.expression.GPUExpression): Unit

    Permalink

    Write a tensor to an indexed location in a 3D output field.

    Write a tensor to an indexed location in a 3D output field.

    index

    The index of the output field to be written (e.g. _out0)

    value

    The tensor to be written

    layer

    The layer index of the location to be written with the tensor.

    row

    The row index of the location to be written with the tensor.

    column

    The column index of the location to be written with the tensor.

    Definition Classes
    FieldWriteFunctions
  361. def _writeTensor(index: OutFieldIndex, value: compiler.gpu_operator.expression.GPUExpression, row: compiler.gpu_operator.expression.GPUExpression, column: compiler.gpu_operator.expression.GPUExpression): Unit

    Permalink

    Write a tensor to an indexed location in a 2D output field.

    Write a tensor to an indexed location in a 2D output field.

    index

    The index of the output field to be written (e.g. _out0)

    value

    The tensor to be written

    row

    The row index of the location to be written with the tensor.

    column

    The column index of the location to be written with the tensor.

    Definition Classes
    FieldWriteFunctions
  362. def _writeTensor(index: OutFieldIndex, value: compiler.gpu_operator.expression.GPUExpression, column: compiler.gpu_operator.expression.GPUExpression): Unit

    Permalink

    Write a tensor to an indexed location in a 1D output field.

    Write a tensor to an indexed location in a 1D output field.

    index

    The index of the output field to be written (e.g. _out0)

    value

    The tensor to be written

    column

    The column index of the location to be written with the tensor.

    Definition Classes
    FieldWriteFunctions
  363. def _writeTensor(index: OutFieldIndex, value: compiler.gpu_operator.expression.GPUExpression): Unit

    Permalink

    Write a tensor to an output field using the default location for the current thread (_layer, _row, _column).

    Write a tensor to an output field using the default location for the current thread (_layer, _row, _column). Note that if this is a 0D field, though, the tensor will be written to the single location in that field regardless of the (_layer, _row, _column) thread variables.

    index

    The index of the output field to be written (e.g. _out0)

    value

    The tensor to be written

    Definition Classes
    FieldWriteFunctions
  364. def _writeTensorElement(index: OutFieldIndex, value: compiler.gpu_operator.expression.GPUExpression, layer: compiler.gpu_operator.expression.GPUExpression, row: compiler.gpu_operator.expression.GPUExpression, column: compiler.gpu_operator.expression.GPUExpression, tensorElementIndex: compiler.gpu_operator.expression.GPUExpression): Unit

    Permalink

    Write a tensor element to an indexed location in a 3D output field.

    Write a tensor element to an indexed location in a 3D output field.

    index

    The index of the output field to be written (e.g. _out0)

    value

    The tensor element to be written

    layer

    The layer index of the location to be written with the tensor element.

    row

    The row index of the location to be written with the tensor element.

    column

    The column index of the location to be written with the tensor element.

    tensorElementIndex

    The index of the element to be written; this will most commonly be _tensorElement, but it is not restricted to that.

    Definition Classes
    FieldWriteFunctions
  365. def _writeTensorElement(index: OutFieldIndex, value: compiler.gpu_operator.expression.GPUExpression, row: compiler.gpu_operator.expression.GPUExpression, column: compiler.gpu_operator.expression.GPUExpression, tensorElementIndex: compiler.gpu_operator.expression.GPUExpression): Unit

    Permalink

    Write a tensor element to an indexed location in a 2D output field.

    Write a tensor element to an indexed location in a 2D output field.

    index

    The index of the output field to be written (e.g. _out0)

    value

    The tensor element to be written

    row

    The row index of the location to be written with the tensor element.

    column

    The column index of the location to be written with the tensor element.

    tensorElementIndex

    The index of the element to be written; this will most commonly be _tensorElement, but it is not restricted to that.

    Definition Classes
    FieldWriteFunctions
  366. def _writeTensorElement(index: OutFieldIndex, value: compiler.gpu_operator.expression.GPUExpression, column: compiler.gpu_operator.expression.GPUExpression, tensorElementIndex: compiler.gpu_operator.expression.GPUExpression): Unit

    Permalink

    Write a tensor element to an indexed location in a 1D output field.

    Write a tensor element to an indexed location in a 1D output field.

    index

    The index of the output field to be written (e.g. _out0)

    value

    The tensor element to be written

    column

    The column index of the location to be written with the tensor element.

    tensorElementIndex

    The index of the element to be written; this will most commonly be _tensorElement, but it is not restricted to that.

    Definition Classes
    FieldWriteFunctions
  367. def _writeTensorElement(index: OutFieldIndex, value: compiler.gpu_operator.expression.GPUExpression, tensorElementIndex: compiler.gpu_operator.expression.GPUExpression): Unit

    Permalink

    Write a tensor element to an output field using the default location for the current thread (_layer, _row, _column).

    Write a tensor element to an output field using the default location for the current thread (_layer, _row, _column). Note that if this is a 0D field, though, the tensor will be written to the single location in that field regardless of the (_layer, _row, _column) thread variables.

    index

    The index of the output field to be written (e.g. _out0)

    value

    The tensor element to be written

    tensorElementIndex

    The index of the element to be written; this will most commonly be _tensorElement, but it is not restricted to that.

    Definition Classes
    FieldWriteFunctions
  368. def abs(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Take the absolute value of every numeric element in field.

    Take the absolute value of every numeric element in field.

    field

    The input field.

    returns

    Field equal to input field with each element, x, mapped to absoluteValue(x).

    Definition Classes
    CogFunctionAPI
  369. def acos(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Take the arccosine of every numeric element in field.

    Take the arccosine of every numeric element in field.

    field

    The input field.

    returns

    Field equal to input field with each element, x, mapped to acos(x).

    Definition Classes
    CogFunctionAPI
  370. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  371. def asin(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Take the arcsine of every numeric element in field.

    Take the arcsine of every numeric element in field.

    field

    The input field.

    returns

    Field equal to input field with each element, x, mapped to asin(x).

    Definition Classes
    CogFunctionAPI
  372. def atan2(field: compiler.parser.syntaxtree.Field, f2: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Compute atan2 of two identically shaped scalar fields.

    Compute atan2 of two identically shaped scalar fields.

    field

    The input field.

    returns

    A scalar field that's the atan2 of the two input fields.

    Definition Classes
    CogFunctionAPI
  373. def backProjectFrame(field: compiler.parser.syntaxtree.Field, filter: compiler.parser.syntaxtree.Field, borderPolicy: platform.types.BorderPolicy, samplingPolicy: platform.types.ConvolutionSamplingPolicy = NoSamplingConvolution, batchSize: Int = 1): compiler.parser.syntaxtree.Field

    Permalink

    Convolve a vector field with a vector-field filter frame.

    Convolve a vector field with a vector-field filter frame.

    field

    The input field.

    filter

    The filter to use for convolution; must be square and with odd size in each dimension.

    borderPolicy

    Policy to use for handling convolution along borders, implicitly helps to determine size of output field.

    samplingPolicy

    Upsampling, downsampling optionally embedded in the convolution, also helps to determine the size of output field.

    batchSize

    The number of logical (possibly multi-plane) images present in the input field.

    returns

    Input field convolved with filter using the supplied border and sampling policies.

    Definition Classes
    CogFunctionAPI
  374. def backwardDivergence(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Compute the backward divergence of a 2D vector field.

    Compute the backward divergence of a 2D vector field.

    This is the adjoint operator of forwardGradient.

    field

    The input field.

    returns

    A scalar field representing the backward divergence of an input vector field.

    Definition Classes
    CogFunctionAPI
  375. def backwardGradient(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Compute the backward gradient of a 2D scalar or vector field.

    Compute the backward gradient of a 2D scalar or vector field.

    field

    The input field.

    returns

    For a scalar field input, a vector field representing the forward gradient of the input; for a vector input field, an order 4 tensor field representing the forward gradient of the input.

    Definition Classes
    CogFunctionAPI
  376. def blockReduceMax(field: compiler.parser.syntaxtree.Field, factor: Int): compiler.parser.syntaxtree.Field

    Permalink

    Reduce a vector field to a shorter (by factor factor) vector field by taking the max() of the first factor input vector elements to form the first output vector element, and so forth.

    Reduce a vector field to a shorter (by factor factor) vector field by taking the max() of the first factor input vector elements to form the first output vector element, and so forth.

    field

    The input field.

    factor

    The factor by which the input field tensor length is reduced.

    returns

    A vector field with each element equal to the max() of factor components of the corresponding vector in the input field.

    Definition Classes
    CogFunctionAPI
  377. def blockReduceMin(field: compiler.parser.syntaxtree.Field, factor: Int): compiler.parser.syntaxtree.Field

    Permalink

    Reduce a vector field to a shorter (by factor factor) vector field by taking the min() of the first factor input vector elements to form the first output vector element, and so forth.

    Reduce a vector field to a shorter (by factor factor) vector field by taking the min() of the first factor input vector elements to form the first output vector element, and so forth.

    field

    The input field.

    factor

    The factor by which the input field tensor length is reduced.

    returns

    A vector field with each element equal to the min() of factor components of the corresponding vector in the input field.

    Definition Classes
    CogFunctionAPI
  378. def blockReduceSum(field: compiler.parser.syntaxtree.Field, factor: Int): compiler.parser.syntaxtree.Field

    Permalink

    Reduce a vector field to a shorter (by factor factor) vector field by summing the first factor input vector elements to form the first output vector element, and so forth.

    Reduce a vector field to a shorter (by factor factor) vector field by summing the first factor input vector elements to form the first output vector element, and so forth.

    field

    The input field.

    factor

    The factor by which the input field tensor length is reduced.

    returns

    A vector field with each element equal to the sum of factor components of the corresponding vector in the input field.

    Definition Classes
    CogFunctionAPI
  379. def centralGradient(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Compute the central gradient of a scalar of vector field.

    Compute the central gradient of a scalar of vector field.

    The central gradient at the point (x, y) is computed using the values at (x - 1, y), (x, y - 1), (x, y + 1), and (x + 1, y + 1)

    field

    The input field.

    returns

    For a scalar field input, returns a vectorField representing the central gradient of the input. For a vector field input, returns an order-4 tensor field representing the central gradient of the input.

    Definition Classes
    CogFunctionAPI
  380. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  381. def colorField(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Create a color field from either a scalar field (with an implicit assumption that the field represents a grayscale image) or a vector field (with the implicit assumption that the vector field represents the (red, green, blue) components of the color image.

    Create a color field from either a scalar field (with an implicit assumption that the field represents a grayscale image) or a vector field (with the implicit assumption that the vector field represents the (red, green, blue) components of the color image.

    field

    The input scalar or vector field.

    returns

    Composed color field.

    Definition Classes
    CogFunctionAPI
  382. def colorField(red: compiler.parser.syntaxtree.Field, green: compiler.parser.syntaxtree.Field, blue: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Create a color field from three scalar fields.

    Create a color field from three scalar fields.

    red

    The red component scalar field.

    green

    The green component scalar field.

    blue

    The blue component scalar field.

    returns

    Color field composed of (red, green, blue).

    Definition Classes
    CogFunctionAPI
  383. def complex(real: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Create a complex field from a real field.

    Create a complex field from a real field.

    real

    Real input scalar field.

    returns

    Complex version of real, with imaginary part set to zeros.

    Definition Classes
    CogFunctionAPI
  384. def complex(real: compiler.parser.syntaxtree.Field, imaginary: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Create a complex field from two scalar fields

    Create a complex field from two scalar fields

    real

    Real part of the created complex field.

    imaginary

    Imaginary part of the created complex field.

    returns

    Complex field composed of the real and imaginary inputs

    Definition Classes
    CogFunctionAPI
  385. implicit def complexToCogComplex(c: cogmath.algebra.complex.Complex): CogComplex

    Permalink

    Implicit conversion of a Complex to a CogComplex which allows for fields to be combined with floating point numbers in a simple way.

    Implicit conversion of a Complex to a CogComplex which allows for fields to be combined with floating point numbers in a simple way. This makes it possible to express commutative operations with a common syntax.

    For example

    Field + Complex

    and

    Complex + Field

    are both legal and compilable with this implicit conversion.

    c

    The Complex to be converted to a CogComplex

    returns

    The CogComplex created from c.

    Definition Classes
    ImplicitConversions
  386. def complexVectorField(fields: Array[compiler.parser.syntaxtree.ComplexField]): compiler.parser.syntaxtree.ComplexVectorField

    Permalink

    Create a complex vector field by stacking complex scalar fields.

    Create a complex vector field by stacking complex scalar fields.

    For example, this can be used to stack N complex fields to a single complex vector field where each vector is of length N.

    fields

    The complex fields to be stacked into a complex vector field.

    returns

    The resulting complex vector field.

    Definition Classes
    CogFunctionAPI
  387. def complexVectorField(fields: compiler.parser.syntaxtree.ComplexField*): compiler.parser.syntaxtree.ComplexVectorField

    Permalink

    Create a complex vector field by stacking complex scalar fields.

    Create a complex vector field by stacking complex scalar fields.

    For example, this can be used to stack N complex fields to a single complex vector field where each vector is of length N.

    fields

    The complex fields to be stacked into a complex vector field.

    returns

    The resulting complex vector field.

    Definition Classes
    CogFunctionAPI
  388. implicit def complexVectorTo0DComplexVectorField(v: cogmath.algebra.complex.ComplexVector): compiler.parser.syntaxtree.ComplexVectorField

    Permalink

    Implicit conversion of a ComplexVector to a 0D constant ComplexVectorField which allows for fields to be combined with ComplexVectors in a simple way.

    Implicit conversion of a ComplexVector to a 0D constant ComplexVectorField which allows for fields to be combined with ComplexVectors in a simple way. This makes it possible to express commutative operations with a common syntax.

    For example

    Field + ComplexVector

    and

    ComplexVector + Field

    are both legal and compilable with this implicit conversion.

    v

    The complex vector to be converted to a 0D complex vector field.

    returns

    A 0D complex vector field initialized to v.

    Definition Classes
    ImplicitConversions
  389. def conjugate(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Take the complex conjugate of each element in a complex field

    Take the complex conjugate of each element in a complex field

    field

    The input field.

    returns

    Conjugate of the input field.

    Definition Classes
    CogFunctionAPI
  390. def convolve(field: compiler.parser.syntaxtree.Field, filter: compiler.parser.syntaxtree.Field, borderPolicy: platform.types.BorderPolicy, samplingPolicy: platform.types.ConvolutionSamplingPolicy = NoSamplingConvolution): compiler.parser.syntaxtree.Field

    Permalink

    Convolve a scalar/vector/matrix field with a filter.

    Convolve a scalar/vector/matrix field with a filter.

    field

    The input field.

    filter

    The filter to use for convolution; must be square and with odd size in each dimension.

    borderPolicy

    Policy to use for handling convolution along borders, implicitly helps to determine size of output field.

    samplingPolicy

    Upsampling, downsampling optionally embedded in the convolution, also helps to determine the size of output field.

    returns

    Input field convolved with filter using the supplied border and sampling policies.

    Definition Classes
    CogFunctionAPI
  391. def convolveFilterAdjoint(field: compiler.parser.syntaxtree.Field, filter: compiler.parser.syntaxtree.Field, borderPolicy: platform.types.BorderPolicy, samplingPolicy: platform.types.ConvolutionSamplingPolicy = NoSamplingConvolution, batchSize: Int = 1): compiler.parser.syntaxtree.Field

    Permalink

    Convolve a vector field with a vector-field with "filter adjoint" plane mixing.

    Convolve a vector field with a vector-field with "filter adjoint" plane mixing.

    field

    The input field.

    filter

    The filter to use for convolution; must be square and with odd size in each dimension.

    borderPolicy

    Policy to use for handling convolution along borders, implicitly helps to determine size of output field.

    samplingPolicy

    Upsampling, downsampling optionally embedded in the convolution, also helps to determine the size of output field.

    batchSize

    The number of logical (possibly multi-plane) images present in the input field.

    returns

    Input field convolved with filter using the supplied border and sampling policies.

    Definition Classes
    CogFunctionAPI
  392. def convolveSeparable(field: compiler.parser.syntaxtree.Field, rowFilter: compiler.parser.syntaxtree.Field, columnFilter: compiler.parser.syntaxtree.Field, borderPolicy: platform.types.BorderPolicy): compiler.parser.syntaxtree.Field

    Permalink

    Convolve a scalar/vector/matrix field with a row filter and a column filter (separable convolution).

    Convolve a scalar/vector/matrix field with a row filter and a column filter (separable convolution).

    field

    The input field.

    rowFilter

    The filter to use for convolving the rows with odd size in each dimension.

    columnFilter

    The filter to use for convolving the columns with odd size in each dimension.

    borderPolicy

    Policy to use for handling convolution along borders, implicitly helps to determine size of output field.

    returns

    Input field convolved with filters using the supplied border policy.

    Definition Classes
    CogFunctionAPI
  393. def copy(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Create a copy of a field.

    Create a copy of a field. This should not be used normally in a user model, but exists as a debugging tool to help identify Cog core issues. The Cog compiler uses this method internally between pipeline stages that have no other computation between them.

    field

    The input field.

    returns

    A copy of the input field.

    Definition Classes
    CogFunctionAPI
  394. def cos(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Take the cosine of every numeric element in field.

    Take the cosine of every numeric element in field.

    field

    The input field.

    returns

    Field equal to input field with each element, x, mapped to cos(x).

    Definition Classes
    CogFunctionAPI
  395. def cosh(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Take the hyperbolic cosine of every numeric element in field.

    Take the hyperbolic cosine of every numeric element in field.

    field

    The input field.

    returns

    Field equal to input field with each element, x, mapped to cosh(x).

    Definition Classes
    CogFunctionAPI
  396. def crossCorrelate(field: compiler.parser.syntaxtree.Field, filter: compiler.parser.syntaxtree.Field, borderPolicy: platform.types.BorderPolicy, samplingPolicy: platform.types.ConvolutionSamplingPolicy = NoSamplingConvolution): compiler.parser.syntaxtree.Field

    Permalink

    Cross-correlate a scalar/vector/matrix field with a filter.

    Cross-correlate a scalar/vector/matrix field with a filter.

    field

    The input field.

    filter

    The filter to use for cross-correlation; must be square and with odd size in each dimension.

    borderPolicy

    Policy to use for handling cross-correlation along borders, implicitly helps to determine size of output field.

    samplingPolicy

    Upsampling, downsampling optionally embedded in the crossCorrelation, also helps to determine the size of output field.

    returns

    Input field cross-correlated with filter using the supplied border and sampling policies.

    Definition Classes
    CogFunctionAPI
  397. def crossCorrelateFilterAdjoint(field: compiler.parser.syntaxtree.Field, filter: compiler.parser.syntaxtree.Field, borderPolicy: platform.types.BorderPolicy, samplingPolicy: platform.types.ConvolutionSamplingPolicy = NoSamplingConvolution, batchSize: Int = 1): compiler.parser.syntaxtree.Field

    Permalink

    Cross-correlate a vector field with a vector-field with "filter adjoint" plane mixing.

    Cross-correlate a vector field with a vector-field with "filter adjoint" plane mixing.

    field

    The input field.

    filter

    The filter to use for cross-correlation; must be square and with odd size in each dimension.

    borderPolicy

    Policy to use for handling cross-correlation along borders, implicitly helps to determine size of output field.

    samplingPolicy

    Upsampling, downsampling optionally embedded in the crossCorrelation, also helps to determine the size of output field.

    batchSize

    The number of logical (possibly multi-plane) images present in the input field.

    returns

    Input field cross-correlated with filter using the supplied border and sampling policies.

    Definition Classes
    CogFunctionAPI
  398. def crossCorrelateSeparable(field: compiler.parser.syntaxtree.Field, rowFilter: compiler.parser.syntaxtree.Field, columnFilter: compiler.parser.syntaxtree.Field, borderPolicy: platform.types.BorderPolicy): compiler.parser.syntaxtree.Field

    Permalink

    Cross-correlate a scalar/vector/matrix field with a row filter and a column filter (separable convolution).

    Cross-correlate a scalar/vector/matrix field with a row filter and a column filter (separable convolution).

    field

    The input field.

    rowFilter

    The filter to use for cross-correlating the rows with odd size in each dimension.

    columnFilter

    The filter to use for cross-correlating the columns with odd size in each dimension.

    borderPolicy

    Policy to use for handling cross-correlation along borders, implicitly helps to determine size of output field.

    returns

    Input field cross-correlated with filters using the supplied border policy.

    Definition Classes
    CogFunctionAPI
  399. def crossDot(field: compiler.parser.syntaxtree.Field, f2: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Multiply a 2D matrix field, field, by a 2D scalar field, f2, to produce a 2D scalar field.

    Multiply a 2D matrix field, field, by a 2D scalar field, f2, to produce a 2D scalar field.

    The scalar field f2 must have the same shape as the matrices in field. This operator is basically pretending that the f2 scalar field is really a matrix and simply dotting that matrix with every matrix in the matrix field field, producing a scalar in the corresponding position of the result scalar field.

    field

    The input field.

    f2

    Scalar field to multiply with field.

    returns

    "cross dot" product of field and f2.

    Definition Classes
    CogFunctionAPI
  400. def dct(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Takes the DCT (discrete cosine transform) of a 2D field, producing a field with the same shape as the input.

    Takes the DCT (discrete cosine transform) of a 2D field, producing a field with the same shape as the input.

    The following sequence will return the original input, within the bounds of computational error:

    val field
    val transformed: Field =
    val restored = transformed.dctInverse
    // restored is approximately equal to field

    For a somewhat faster version, see dctTransposed.

    The DCT has several requirements:

    The number of rows and columns must each be a power of 2.

    Rows and columns are restricted to the range [256, 2048]

    field

    The input field.

    returns

    The DCT of the input.

    Definition Classes
    CogFunctionAPI
  401. def dctInverse(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Takes the inverse DCT (discrete cosine transform) of a 2D field, producing a field with the same shape as the input.

    Takes the inverse DCT (discrete cosine transform) of a 2D field, producing a field with the same shape as the input.

    The following sequence will return the original input, within the bounds of computational error:

    val field
    val transformed = field.dct
    val restored = transformed.dctInverse
    // restored is approximately equal to field

    For a somewhat faster version, see dctInverseTransposed.

    The DCT has several requirements:

    The number of rows and columns must each be a power of 2.

    Rows and columns are restricted to the range [256, 2048]

    field

    The input field.

    returns

    The DCT of the input.

    Definition Classes
    CogFunctionAPI
  402. def dctInverseTransposed(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Takes the inverse DCT (discrete cosine transform) of a 2D field, producing a field with the same shape as the input.

    Takes the inverse DCT (discrete cosine transform) of a 2D field, producing a field with the same shape as the input.

    The following sequence will return the original input, within the bounds of computational error:

    val field
    val transformed = field.dctTransposed
    val restored = transformed.dctInverseTransposed
    // restored is approximately equal to field

    This is a somewhat faster version of dctInverse where the transpose is not important to (or can be compensated within) an application.

    The DCT has several requirements:

    The number of rows and columns must each be a power of 2.

    Rows and columns are restricted to the range [256, 2048]

    field

    The input field.

    returns

    The DCT of the input.

    Definition Classes
    CogFunctionAPI
  403. def dctTransposed(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Takes the DCT (discrete cosine transform) of a 2D field and transposes it, producing a field with the same shape as the input transposed.

    Takes the DCT (discrete cosine transform) of a 2D field and transposes it, producing a field with the same shape as the input transposed.

    The following sequence will return the original input, within the bounds of computational error:

    val field
    val transformed = field.dctTransposed
    val restored = transformed.dctInverseTransposed
    // restored is approximately equal to field

    This is a somewhat faster version of dct where the transpose is not important to (or can be compensated within) an application.

    The DCT has several requirements:

    The number of rows and columns must each be a power of 2.

    Rows and columns are restricted to the range [256, 2048]

    field

    The input field.

    returns

    The DCT of the input.

    Definition Classes
    CogFunctionAPI
  404. def dot(field: compiler.parser.syntaxtree.Field, f2: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Takes the inner product of two identically shaped tensor fields to create a scalar field.

    Takes the inner product of two identically shaped tensor fields to create a scalar field.

    The tensors in both fields must have the same shape. Dotting two tensors involves multiplying corresponding elements in the two tensors and summing the products.

    field

    The input field.

    f2

    Other field to "dot" with field field.

    returns

    Scalar field where each scalar element is computed from the dot product of the tensors in the corresponding location of the two input tensor fields.

    Definition Classes
    CogFunctionAPI
  405. def downsample(field: compiler.parser.syntaxtree.Field, factor: Int = 2, phase: Int = 0): compiler.parser.syntaxtree.Field

    Permalink

    Downsample a field by taking every nth element.

    Downsample a field by taking every nth element.

    Example: for input field {1,2,3,4}

    input.downsample(2) yields {1,3}
    
    input.downsample(2,1) yields {2,4}

    Further examples of downsampling on a 2-dimensional input:

    field

    The input field.

    factor

    The sampling factor, defaults to 2.

    phase

    The offset within the scaled up field to put the input data, defaults to an offset of 0.

    Definition Classes
    CogFunctionAPI
  406. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  408. def exp(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Apply the exponential function to every numeric element in field.

    Apply the exponential function to every numeric element in field. This works for complex and real fields.

    field

    The input field.

    returns

    Field equal to input field with each element, x, mapped to exp(x).

    Definition Classes
    CogFunctionAPI
  409. def expand(field: compiler.parser.syntaxtree.Field, borderPolicy: platform.types.BorderPolicy, sizes: Int*): compiler.parser.syntaxtree.Field

    Permalink

    Expand an N-dimensional field by padding it with values per the border policy, maintaining the origin.

    Expand an N-dimensional field by padding it with values per the border policy, maintaining the origin. The supported border policies are BorderZero, BorderClamp and BorderCyclic.

    See expand(borderPolicy, shape) for a description of the border policies.

    field

    The input field.

    borderPolicy

    Policy to use for producing border values.

    sizes

    The integer dimensions of the expanded output field.

    returns

    Expanded field with new elements filled in from the nearest input edge per borderPolicy.

    Definition Classes
    CogFunctionAPI
  410. def expand(field: compiler.parser.syntaxtree.Field, borderPolicy: platform.types.BorderPolicy, shape: cogmath.geometry.Shape): compiler.parser.syntaxtree.Field

    Permalink

    Expand an N-dimensional field by padding it with values per the border policy, maintaining the origin.

    Expand an N-dimensional field by padding it with values per the border policy, maintaining the origin. The supported border policies are BorderZero, BorderClamp and BorderCyclic.

    With the BorderZero policy, the border values are all 0.

    Border Zero Example. A 3 x 4 input field:

    1  2  3  4
    5 -1 -1  6
    7  8  9  0

    If we expand this to 7 x 8, we fill the new elements with zeroes:

    1  2  3  4  0  0  0  0
    5 -1 -1  6  0  0  0  0
    7  8  9  0  0  0  0  0
    0  0  0  0  0  0  0  0
    0  0  0  0  0  0  0  0
    0  0  0  0  0  0  0  0
    0  0  0  0  0  0  0  0

    With the BorderClamp policy, the border is extended outwards into the expanded output field, wrapping around as though the output field were a torus. This is useful when doing convolution with the FFT and one wishes to minimize border effects by "border clamping".

    BorderClamp Example. A 3 x 4 input field:

    1  2  3  4
    5 -1 -1  6
    7  8  9  0

    If we expand this to 7 x 8, we extend the borders, wrapping around as though the output field were a torus:

    1  2  3  4  4  4  1  1
    5 -1 -1  6  6  6  5  5
    7  8  9  0  0  0  7  7
    7  8  9  0  0  0  0  0
    7  8  9  0  0  0  0  0
    1  2  3  4  0  0  0  0
    1  2  3  4  0  0  0  0

    With the BorderCyclic policy, the border values emulate a cyclic "wrap-around" in the original field, as though the input field were a torus. This is useful when doing cyclic convolution with the FFT and one wishes expand the field to make it a power of 2 (necessary for the FFT) while still preserving cyclic convolution

    BorderCyclic Example. A 3 x 4 input field:

    1  2  3  4
    5 -1 -1  6
    7  8  9  0

    If we expand this to 7 x 8, we extend the borders, wrapping around as though the input field were a torus:

    1  2  3  4  1  2  3  4
    5 -1 -1  6  5 -1 -1  6
    7  8  9  0  7  8  9  0
    1  2  3  4  1  2  3  4
    5 -1 -1  6  5 -1 -1  6
    5 -1 -1  6  5 -1 -1  6
    7  8  9  0  7  8  9  0
    field

    The input field.

    borderPolicy

    Policy to use for producing border values.

    shape

    The shape of the expanded output field.

    returns

    Expanded field with new elements filled in from the nearest input edge per borderPolicy.

    Definition Classes
    CogFunctionAPI
  411. def fft(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Compute the FFT of a complex field.

    Compute the FFT of a complex field.

    field

    The input field.

    returns

    FFT of the input field.

    Definition Classes
    CogFunctionAPI
  412. def fftColumns(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Compute the FFT of the columns only in a 2D complex field.

    Compute the FFT of the columns only in a 2D complex field.

    field

    The input field.

    returns

    Input with each columns transformed by the FFT.

    Definition Classes
    CogFunctionAPI
  413. def fftInverse(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Compute the inverse FFT of a complex field (includes scaling).

    Compute the inverse FFT of a complex field (includes scaling).

    field

    The input field.

    returns

    Inverse FFT of the input field.

    Definition Classes
    CogFunctionAPI
  414. def fftInverseColumns(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Compute the inverseFFT of the columns only in a 2D complex field.

    Compute the inverseFFT of the columns only in a 2D complex field.

    field

    The input field.

    returns

    Input with each columns transformed by the inverse FFT.

    Definition Classes
    CogFunctionAPI
  415. def fftInverseRI(real: compiler.parser.syntaxtree.Field, imaginary: compiler.parser.syntaxtree.Field): (compiler.parser.syntaxtree.Field, compiler.parser.syntaxtree.Field)

    Permalink

    Compute the inverse FFT of a complex field represented as separate real and imaginary fields (includes scaling).

    Compute the inverse FFT of a complex field represented as separate real and imaginary fields (includes scaling).

    real

    The real component of the complex field input.

    imaginary

    The imaginary component of the complex field input.

    returns

    Inverse FFT of the input field, returned as a Tuple2 of the real and imaginary part fields.

    Definition Classes
    CogFunctionAPI
  416. def fftInverseRows(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Compute the inverse FFT of the rows only in a 2D complex field.

    Compute the inverse FFT of the rows only in a 2D complex field.

    field

    The input field.

    returns

    Input with each row transformed by the inverse FFT.

    Definition Classes
    CogFunctionAPI
  417. def fftRI(real: compiler.parser.syntaxtree.Field): (compiler.parser.syntaxtree.Field, compiler.parser.syntaxtree.Field)

    Permalink

    Compute the FFT of a real field.

    Compute the FFT of a real field.

    real

    The real component of the input whose imaginary component is 0.

    returns

    FFT of the input, returned as a Tuple2 of the real and imaginary part fields.

    Definition Classes
    CogFunctionAPI
  418. def fftRI(real: compiler.parser.syntaxtree.Field, imaginary: compiler.parser.syntaxtree.Field): (compiler.parser.syntaxtree.Field, compiler.parser.syntaxtree.Field)

    Permalink

    Compute the FFT of a complex field that is input as two separate real and imaginary fields.

    Compute the FFT of a complex field that is input as two separate real and imaginary fields.

    real

    The real component of the complex field input.

    imaginary

    The imaginary component of the complex field input.

    returns

    FFT of the input, returned as a Tuple2 of the real and imaginary part fields.

    Definition Classes
    CogFunctionAPI
  419. def fftRows(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Compute the FFT of the rows only in a 2D complex field.

    Compute the FFT of the rows only in a 2D complex field.

    field

    The input field.

    returns

    Input with each row transformed by the FFT.

    Definition Classes
    CogFunctionAPI
  420. implicit def fieldArrayToMatrixFieldArray(a: Array[compiler.parser.syntaxtree.Field]): Array[compiler.parser.syntaxtree.MatrixField]

    Permalink

    Implicit conversion of an array of Fields to an array of ScalarFields.

    Implicit conversion of an array of Fields to an array of ScalarFields.

    a

    An array of Fields.

    returns

    An array of MatrixFields.

    Definition Classes
    ImplicitConversions
  421. implicit def fieldArrayToScalarFieldArray(a: Array[compiler.parser.syntaxtree.Field]): Array[compiler.parser.syntaxtree.ScalarField]

    Permalink

    Implicit conversion of an array of Fields to an array of ScalarFields.

    Implicit conversion of an array of Fields to an array of ScalarFields.

    a

    An array of Fields.

    returns

    An array of ScalarFields.

    Definition Classes
    ImplicitConversions
  422. implicit def fieldArrayToVectorFieldArray(a: Array[compiler.parser.syntaxtree.Field]): Array[compiler.parser.syntaxtree.VectorField]

    Permalink

    Implicit conversion of an array of Fields to an array of ScalarFields.

    Implicit conversion of an array of Fields to an array of ScalarFields.

    a

    An array of Fields.

    returns

    An array of VectorFields.

    Definition Classes
    ImplicitConversions
  423. def fieldReduceMax(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Reduce a scalar field to a 0D scalar containing a single element which is the maximum element in the input field.

    Reduce a scalar field to a 0D scalar containing a single element which is the maximum element in the input field.

    field

    The input field.

    returns

    0D scalar field holding the max value in input field.

    Definition Classes
    CogFunctionAPI
  424. def fieldReduceMedian(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Find the median value in a scalar field.

    Find the median value in a scalar field.

    field

    The input field.

    returns

    0D scalar field holding the median value of the input field.

    Definition Classes
    CogFunctionAPI
  425. def fieldReduceMin(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Reduce a scalar field to a 0D scalar containing a single element which is the minimum element in the input field.

    Reduce a scalar field to a 0D scalar containing a single element which is the minimum element in the input field.

    field

    The input field.

    returns

    0D scalar field holding the min value in input field.

    Definition Classes
    CogFunctionAPI
  426. def fieldReduceSum(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Reduce a scalar field to a 0D scalar containing the sum of all the elements in the input field.

    Reduce a scalar field to a 0D scalar containing the sum of all the elements in the input field.

    field

    The input field.

    returns

    0D scalar field holding the sum of values in input field.

    Definition Classes
    CogFunctionAPI
  427. implicit def fieldToColorField(f: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.ColorField

    Permalink

    Implicit conversion of a Field to a ColorField.

    Implicit conversion of a Field to a ColorField. Field is abstract, so this method will perform the appropriate type coercion if the field is already a ColorField but stored in a Field variable. This method also supports converting a ScalarField or VectorField to a ColorField.

    f

    A field which needs coercion to the ColorField type.

    returns

    The converted field.

    Definition Classes
    ImplicitConversions
  428. implicit def fieldToComplexField(f: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.ComplexField

    Permalink

    Implicit conversion of a Field to a ComplexField.

    Implicit conversion of a Field to a ComplexField. Field is abstract, so this method will perform the appropriate type coercion if the field is already a ComplexField but stored in a Field variable. This method also supports converting a ScalarField to a ComplexField.

    f

    A field which needs coercion to the ComplexField type.

    returns

    The converted field.

    Definition Classes
    ImplicitConversions
  429. implicit def fieldToComplexVectorField(f: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.ComplexVectorField

    Permalink

    Implicit conversion of a Field to a ComplexField.

    Implicit conversion of a Field to a ComplexField. Field is abstract, so this method will perform the appropriate type coercion if the field is already a ComplexField but stored in a Field variable. This method also supports converting a ScalarField to a ComplexField.

    f

    A field which needs coercion to the ComplexVectorField type.

    returns

    The converted field.

    Definition Classes
    ImplicitConversions
  430. implicit def fieldToMatrixField(f: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.MatrixField

    Permalink

    Implicit conversion of a Field to a MatrixField.

    Implicit conversion of a Field to a MatrixField. Since Field is abstract, the only possible conversion is if the field is already a MatrixField but is stored in a Field variable. This merely does the necessary type coercion.

    f

    A field which needs coercion to the MatrixField type.

    returns

    The converted field.

    Definition Classes
    ImplicitConversions
  431. implicit def fieldToScalarField(f: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.ScalarField

    Permalink

    Implicit conversion of a Field to a ScalarField.

    Implicit conversion of a Field to a ScalarField. Since Field is abstract, the only possible conversion is if the field is already a ScalarField but is stored in a Field variable. This merely does the necessary type coercion.

    f

    A field which needs coercion to the ScalarField type.

    returns

    The converted field.

    Definition Classes
    ImplicitConversions
  432. implicit def fieldToVectorField(f: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.VectorField

    Permalink

    Implicit conversion of a Field to a VectorField.

    Implicit conversion of a Field to a VectorField. Field is abstract, so this method will perform the appropriate type coercion if the field is already a VectorField but stored in a Field variable. This method also supports converting a ColorField to a VectorField.

    f

    A field which needs coercion to the VectorField type.

    returns

    The converted field.

    Definition Classes
    ImplicitConversions
  433. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  434. def flip(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Flip a field along every dimension.

    Flip a field along every dimension.

    Example. This 2D scalar field:

    1  2  3
    4  5  6
    7  8  9

    looks like this when flipped:

    9  8  7
    6  5  4
    3  2  1
    field

    The input field.

    returns

    A flipped version of the input field.

    Definition Classes
    CogFunctionAPI
  435. implicit def floatToCogFloat(f: Float): CogFloat

    Permalink

    Implicit conversion of a Float to a CogFloat which allows for fields to be combined with floating point numbers in a simple way.

    Implicit conversion of a Float to a CogFloat which allows for fields to be combined with floating point numbers in a simple way. This makes it possible to express commutative operations with a common syntax.

    For example

    Field + Float

    and

    Float + Field

    are both legal and compilable with this implicit conversion.

    f

    The Float to be converted to a CogFloat

    returns

    The CogFloat created from f.

    Definition Classes
    ImplicitConversions
  436. implicit def floatToComplex(d: Float): cogmath.algebra.complex.Complex

    Permalink

    Float --> Complex

    Float --> Complex

    Definition Classes
    ComplexImplicits
  437. implicit def floatToConstExpression(value: Float): GPUExpression

    Permalink

    Implicitly convert a float to an expression.

    Implicitly convert a float to an expression.

    Definition Classes
    UserGPULibrary
  438. def floor(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Map each numeric element of the input field to the largest integer which is less than or equal to that element.

    Map each numeric element of the input field to the largest integer which is less than or equal to that element.

    field

    The input field.

    returns

    Field where every number element has been "floored" to an integer.

    Definition Classes
    CogFunctionAPI
  439. def forwardGradient(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Compute the forward gradient of a 2D scalar or vector field.

    Compute the forward gradient of a 2D scalar or vector field.

    This is the adjoint operator of backwardDivergence.

    field

    The input field.

    returns

    For a scalar field input, a vector field representing the forward gradient of the input; for a vector input field, an order 4 tensor field representing the forward gradient of the input.

    Definition Classes
    CogFunctionAPI
  440. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  442. def imaginaryPart(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Extract the imaginary part of a complex field as a scalar field.

    Extract the imaginary part of a complex field as a scalar field.

    field

    The input field.

    returns

    A scalar field with the same shape as the input, with each element equal to the imaginary part of the corresponding complex element in the input.

    Definition Classes
    CogFunctionAPI
  443. implicit def intToComplex(i: Int): cogmath.algebra.complex.Complex

    Permalink

    Int --> Complex

    Int --> Complex

    Definition Classes
    ComplexImplicits
  444. implicit def intToConstExpression(value: Int): GPUExpression

    Permalink

    Implicitly convert an int to an expression.

    Implicitly convert an int to an expression.

    Definition Classes
    UserGPULibrary
  445. def internalError(message: String): Unit

    Permalink

    Declare an internal error described by message.

    Declare an internal error described by message.

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

    Permalink
    Definition Classes
    Any
  447. def log(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Apply the natural logarithm to every numeric element in field.

    Apply the natural logarithm to every numeric element in field.

    field

    The input field.

    returns

    Field equal to input field with each element, x, mapped to log(x).

    Definition Classes
    CogFunctionAPI
  448. def magnitude(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Take the magnitude of each element in a complex field

    Take the magnitude of each element in a complex field

    field

    The input field.

    returns

    Magnitude of the input field.

    Definition Classes
    CogFunctionAPI
  449. def matrixField(fields: Array[Array[compiler.parser.syntaxtree.Field]]): compiler.parser.syntaxtree.MatrixField

    Permalink

    Create a matrix field from a 2D array of scalar fields.

    Create a matrix field from a 2D array of scalar fields.

    For example, this can be used to stack N x K scalar fields to a single matrix field. Each matrix in the result will be N x K.

    fields

    The scalar fields to be stacked into a matrix field.

    returns

    The resulting matrix field.

    Definition Classes
    CogFunctionAPI
  450. def matrixField(fields: Array[Array[compiler.parser.syntaxtree.ScalarField]]): compiler.parser.syntaxtree.MatrixField

    Permalink

    Create a matrix field from a 2D array of scalar fields.

    Create a matrix field from a 2D array of scalar fields.

    For example, this can be used to stack N x K scalar fields to a single matrix field. Each matrix in the result will be N x K.

    fields

    The scalar fields to be stacked into a matrix field.

    returns

    The resulting matrix field.

    Definition Classes
    CogFunctionAPI
  451. def matrixField(fields: Array[compiler.parser.syntaxtree.VectorField]): compiler.parser.syntaxtree.MatrixField

    Permalink

    Create a matrix field from vector fields by "stacking" the vector fields.

    Create a matrix field from vector fields by "stacking" the vector fields.

    For example, this can be used to stack N vector fields to a single matrix field. If the length of the vectors in the vector fields is K, then each matrix in the result will be N x K.

    fields

    The vector fields to be stacked into a matrix field.

    returns

    The resulting matrix field.

    Definition Classes
    CogFunctionAPI
  452. def matrixField(fields: compiler.parser.syntaxtree.VectorField*): compiler.parser.syntaxtree.MatrixField

    Permalink

    Create a matrix field from vector fields by "stacking" the vector fields.

    Create a matrix field from vector fields by "stacking" the vector fields.

    For example, this can be used to stack N vector fields to a single matrix field. If the length of the vectors in the vector fields is K, then each matrix in the result will be N x K.

    fields

    The vector fields to be stacked into a matrix field.

    returns

    The resulting matrix field.

    Definition Classes
    CogFunctionAPI
  453. def matrixRow(field: compiler.parser.syntaxtree.Field, index: Int): compiler.parser.syntaxtree.Field

    Permalink

    Convert a matrix field to a vector field by stripping out one row from each matrix in the field and making it a vector.

    Convert a matrix field to a vector field by stripping out one row from each matrix in the field and making it a vector.

    field

    The input field.

    index

    The index of the desired row to strip out of each matrix and use as a vector.

    returns

    A vector field made up of the stripped out vectors from the input matrix field.

    Definition Classes
    CogFunctionAPI
  454. def max(field: compiler.parser.syntaxtree.Field, f2: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Select the maximum value of corresponding elements in two scalar fields.

    Select the maximum value of corresponding elements in two scalar fields.

    field

    The input field.

    f2

    Second scalar field to compare with field.

    returns

    Scalar field where each element is the largest corresponding elements in field or f2.

    Definition Classes
    CogFunctionAPI
  455. def max(field: compiler.parser.syntaxtree.Field, value: Float): compiler.parser.syntaxtree.Field

    Permalink

    For every element, x, in field, compute max(x, that) where 1.0f represents a "true" result and 0.0f represents a "false" result.

    For every element, x, in field, compute max(x, that) where 1.0f represents a "true" result and 0.0f represents a "false" result. The resulting field has the same field shape and tensor shape as filed.

    field

    The input field.

    value

    Operand for max operator.

    returns

    A field equal to field with each element, x, mapped to max(x, that).

    Definition Classes
    CogFunctionAPI
  456. def min(field: compiler.parser.syntaxtree.Field, f2: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Select the minimum value of corresponding elements in two scalar fields.

    Select the minimum value of corresponding elements in two scalar fields.

    field

    The input field.

    f2

    Second scalar field to compare with field.

    returns

    Scalar field where each element is the smallest corresponding elements in field or f2.

    Definition Classes
    CogFunctionAPI
  457. def min(field: compiler.parser.syntaxtree.Field, value: Float): compiler.parser.syntaxtree.Field

    Permalink

    For every element, x, in field, compute min(x, that) where 1.0f represents a "true" result and 0.0f represents a "false" result.

    For every element, x, in field, compute min(x, that) where 1.0f represents a "true" result and 0.0f represents a "false" result. The resulting field has the same field shape and tensor shape as field.

    field

    The input field.

    value

    Operand for min operator.

    returns

    A field equal to field with each element, x, mapped to min(x, that).

    Definition Classes
    CogFunctionAPI
  458. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  459. def normalizeL1(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Normalize a scalar field using the L1 norm.

    Normalize a scalar field using the L1 norm.

    field

    The input field.

    returns

    A normalized copy of the input field.

    Definition Classes
    CogFunctionAPI
  460. def normalizeL2(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Normalize a scalar field using the L2 norm.

    Normalize a scalar field using the L2 norm.

    field

    The input field.

    returns

    A normalized copy of the input field.

    Definition Classes
    CogFunctionAPI
  461. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  463. def phase(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Take the phase of each element in a complex field.

    Take the phase of each element in a complex field.

    This is also commonly called arg. This is a number in the range (-Pi, Pi]

    field

    The input field.

    returns

    Phase of the input field.

    Definition Classes
    CogFunctionAPI
  464. def platformDescription: String

    Permalink
  465. def polarComplex(magnitude: compiler.parser.syntaxtree.Field, phase: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Create a complex field from polar coordinates.

    Create a complex field from polar coordinates.

    magnitude

    Scalar field where each scalar is the magnitude of the desired complex field.

    phase

    Scalar field where each scalar is the phase of the desired complex field.

    returns

    Complex field built from magnitude and phase.

    Definition Classes
    CogFunctionAPI
  466. def pow(field: compiler.parser.syntaxtree.Field, that: Float): compiler.parser.syntaxtree.Field

    Permalink

    Raise each number in field to the power that.

    Raise each number in field to the power that. The resulting field has the same field shape and tensor shape as field.

    field

    The input field.

    that

    The exponent.

    returns

    Input field with every number raised to the power that.

    Definition Classes
    CogFunctionAPI
  467. def pow(field: compiler.parser.syntaxtree.Field, that: Int): compiler.parser.syntaxtree.Field

    Permalink

    Raise each number in field to the power that.

    Raise each number in field to the power that. The resulting field has the same field shape and tensor shape as field.

    field

    The input field.

    that

    The exponent.

    returns

    Input field with every number raised to the power that.

    Definition Classes
    CogFunctionAPI
  468. def probe(fields: compiler.parser.syntaxtree.Field*): Unit

    Permalink

    User mechanism for marking multiple fields as "probed"

    User mechanism for marking multiple fields as "probed"

    If a field is visible to reflection, it will be automatically named.

    fields

    The fields to be probed.

    Definition Classes
    CogFunctionAPI
  469. def probe(field: compiler.parser.syntaxtree.Field, userName: String = null): compiler.parser.syntaxtree.Field

    Permalink

    User mechanism for marking a field as "probed," optionally supplying a name for the field.

    User mechanism for marking a field as "probed," optionally supplying a name for the field.

    If a field is visible to reflection, it will be automatically named. In that case supplying a userName is unnecessary and not recommended.

    field

    The field to be probed.

    userName

    User's name for the field. If not supplied, the field is probed but uses system-inferred naming for the field.

    returns

    The field being probed.

    Definition Classes
    CogFunctionAPI
  470. def projectFrame(field: compiler.parser.syntaxtree.Field, filter: compiler.parser.syntaxtree.Field, borderPolicy: platform.types.BorderPolicy, samplingPolicy: platform.types.ConvolutionSamplingPolicy = NoSamplingConvolution, batchSize: Int = 1): compiler.parser.syntaxtree.Field

    Permalink

    Cross-correlate a vector field with a vector-field filter frame.

    Cross-correlate a vector field with a vector-field filter frame.

    field

    The input field.

    filter

    The filter to use for cross-correlation; must be square and with odd size in each dimension.

    borderPolicy

    Policy to use for handling cross-correlation along borders, implicitly helps to determine size of output field.

    samplingPolicy

    Upsampling, downsampling optionally embedded in the crossCorrelation, also helps to determine the size of output field.

    batchSize

    The number of logical (possibly multi-plane) images present in the input field.

    returns

    Input field cross-correlated with filter using the supplied border and sampling policies.

    Definition Classes
    CogFunctionAPI
  471. def random(field: compiler.parser.syntaxtree.Field, bits: Int): compiler.parser.syntaxtree.Field

    Permalink

    Compute a random field based on this input field using cellular automaton based RNG.

    Compute a random field based on this input field using cellular automaton based RNG. The output ranges from [0 to 1] (inclusive) and is uniformly distributed.

    field

    The input field.

    bits

    The number of bits of precision to use

    returns

    A Vector field where each point in the field is random

    Definition Classes
    CogFunctionAPI
  472. def realPart(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Extract the real part of a complex field as a scalar field.

    Extract the real part of a complex field as a scalar field.

    field

    The input field.

    returns

    A scalar field with the same shape as the input, with each element equal to the real part of the corresponding complex element in the input.

    Definition Classes
    CogFunctionAPI
  473. def reciprocal(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Perform 1/x operation on every numeric element of a field.

    Perform 1/x operation on every numeric element of a field.

    Somewhat dangerous to use if any element in the field could be zero, since the resulting element would be NaN which does not throw an exception.

    field

    The input field.

    returns

    Input field with each numeric element, x, mapped to 1/x.

    Definition Classes
    CogFunctionAPI
  474. def reduceMax(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Reduce a vector field to a scalar field by mapping each vector to the maximum of its components.

    Reduce a vector field to a scalar field by mapping each vector to the maximum of its components.

    field

    The input field.

    returns

    A scalar field with each element equal to the maximum of the components of the corresponding vector in the input field.

    Definition Classes
    CogFunctionAPI
  475. def reduceMin(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Reduce a vector field to a scalar field by mapping each vector to the minimum of its components.

    Reduce a vector field to a scalar field by mapping each vector to the minimum of its components.

    field

    The input field.

    returns

    A scalar field with each element equal to the minimum of the components of the corresponding vector in the input field.

    Definition Classes
    CogFunctionAPI
  476. def reduceSum(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Reduce a vector field to a scalar field by mapping each vector to the sum of its components.

    Reduce a vector field to a scalar field by mapping each vector to the sum of its components.

    field

    The input field.

    returns

    A scalar field with each element equal to the sum of components of the corresponding vector in the input field.

    Definition Classes
    CogFunctionAPI
  477. def replicate(field: compiler.parser.syntaxtree.Field, shape: cogmath.geometry.Shape): compiler.parser.syntaxtree.Field

    Permalink

    Replicate a scalar field as matrices in a matrix field (each matrix in the matrix field is identical to the input scalar field).

    Replicate a scalar field as matrices in a matrix field (each matrix in the matrix field is identical to the input scalar field).

    field

    The input field.

    shape

    The shape of the resulting output field.

    returns

    A matrix field with the same field shape as f2 and tensor shape the same as the input scalar field.

    Definition Classes
    CogFunctionAPI
  478. def reshape(field: compiler.parser.syntaxtree.Field, fieldShape: cogmath.geometry.Shape, tensorShape: cogmath.geometry.Shape, checkLegacyReshape: Boolean = Cog.checkLegacyReshape): compiler.parser.syntaxtree.Field

    Permalink

    Change the shape of a scalar field without changing the number of elements in it.

    Change the shape of a scalar field without changing the number of elements in it.

    This depends on the row-major ordering we use for elements in a field. Elements in any scalar field, regardless of dimension, have that linear ordering. Reshaping preserves that ordering; it really does nothing more than change the sizes of each dimension of the field.

    field

    The input field.

    fieldShape

    the output field shape to use

    tensorShape

    the output tensor shape to use

    checkLegacyReshape

    Warn of uses of reshape that had different behaviors prior to libcog 4.3

    returns

    The input field, reshaped, with the same elements in the same linear order.

    Definition Classes
    CogFunctionAPI
  479. def reshape(field: compiler.parser.syntaxtree.Field, size: Int*): compiler.parser.syntaxtree.Field

    Permalink

    Change the shape of a scalar field without changing the number of elements in it.

    Change the shape of a scalar field without changing the number of elements in it.

    This depends on the row-major ordering we use for elements in a field. Elements in any scalar field, regardless of dimension, have that linear ordering. Reshaping preserves that ordering; it really does nothing more than change the sizes of each dimension of the field.

    field

    The input field.

    size

    A sequence of new sizes for each dimensions. The product of this sequence must equal the number of elements in the input field.

    returns

    The input field, reshaped, with the same elements in the same linear order.

    Definition Classes
    CogFunctionAPI
  480. def reverseCrossDot(field: compiler.parser.syntaxtree.Field, f2: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Multiply a matrix field, field, by a scalar field, f2, to produce a scalar field.

    Multiply a matrix field, field, by a scalar field, f2, to produce a scalar field.

    The matrix field and scalar field operands must have identical field shapes. Each scalar element of the scalar field is multiplied by the corresponding element in the matrix field. These products are then summed to produce the scalar field result (which has the same shape as the matrices in the matrix field).

    field

    The input field.

    f2

    Scalar field operand which have the same field shape as field.

    returns

    Product of field and f2.

    Definition Classes
    CogFunctionAPI
  481. def select[T <: compiler.parser.syntaxtree.Field](fields: Array[T], index: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Dynamically select a scalar field from an array of scalar fields.

    Dynamically select a scalar field from an array of scalar fields.

    Example:

    val fields: Array[ScalarFieldExpr] = ...
    val index: ScalarFieldExpr
    val selected: ScalarFieldExpr = select(fields, index)
    index

    0-dimensional scalar field supplying the index for the array to be read.

    returns

    If index is in-bounds for the array, returns the selected field from that array; if index is out-of-bounds, returns a field of NaNs.

    Definition Classes
    CogFunctionAPI
  482. def shift(field: compiler.parser.syntaxtree.Field, rowShift: Int, colShift: Int): compiler.parser.syntaxtree.Field

    Permalink

    Shift a 2D scalar field in both dimensions, pulling in zeroes where necessary.

    Shift a 2D scalar field in both dimensions, pulling in zeroes where necessary. Negative shift amounts result in shifts up and to the left, while positive shift amounts result in shifts down and to the right.

    field

    The input field.

    rowShift

    Number of pixels to shift field.

    colShift

    Number of pixels to shift field.

    returns

    Shifted input field.

    Definition Classes
    CogFunctionAPI
  483. def shift(field: compiler.parser.syntaxtree.Field, colShift: Int): compiler.parser.syntaxtree.Field

    Permalink

    Shift a 1D scalar field left (negative colShift) or right (positive colShift), pulling in zeroes where necessary.

    Shift a 1D scalar field left (negative colShift) or right (positive colShift), pulling in zeroes where necessary.

    field

    The input field.

    colShift

    Number of pixels to shift field.

    returns

    Shifted input field.

    Definition Classes
    CogFunctionAPI
  484. def shiftCyclic(field: compiler.parser.syntaxtree.Field, rowShift: Int, colShift: Int): compiler.parser.syntaxtree.Field

    Permalink

    Shift a 2D scalar field in both dimensions, pulling in values from the opposite side where necessary.

    Shift a 2D scalar field in both dimensions, pulling in values from the opposite side where necessary. Negative shift amounts result in shifts up and to the left, while positive shift amounts result in shifts down and to the right.

    field

    The input field.

    rowShift

    Number of pixels to shift field.

    colShift

    Number of pixels to shift field.

    returns

    Shifted input field.

    Definition Classes
    CogFunctionAPI
  485. def shiftCyclic(field: compiler.parser.syntaxtree.Field, colShift: Int): compiler.parser.syntaxtree.Field

    Permalink

    Shift a 1D scalar field left (negative colShift) or right (positive colShift), pulling in values from the opposite side where necessary.

    Shift a 1D scalar field left (negative colShift) or right (positive colShift), pulling in values from the opposite side where necessary.

    field

    The input field.

    colShift

    Number of pixels to shift field.

    returns

    Shifted input field.

    Definition Classes
    CogFunctionAPI
  486. def signum(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Apply the signum operator to every numeric element in field.

    Apply the signum operator to every numeric element in field.

    Signum(x) is defined to be:

    1 if x > 0

    0 if x: Field =

    -1 if x < 0

    field

    The input field.

    returns

    Field equal to input field with each element, x, mapped to signum(x).

    Definition Classes
    CogFunctionAPI
  487. def sin(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Apply the sine operator to every numeric element in field.

    Apply the sine operator to every numeric element in field.

    field

    The input field.

    returns

    Field equal to input field with each element, x, mapped to sin(x).

    Definition Classes
    CogFunctionAPI
  488. def sinh(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Apply the hyperbolic sine operator to every numeric element in field.

    Apply the hyperbolic sine operator to every numeric element in field.

    field

    The input field.

    returns

    Field equal to input field with each element, x, mapped to sinh(x).

    Definition Classes
    CogFunctionAPI
  489. def solve(field: compiler.parser.syntaxtree.Field, b: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Solve Ax - b

    Solve Ax - b

    This actually solves the equation for each matrix / vector pair in the fields field and b, producing a vector field representing x. The vectors in b must be length 2 and the matrices in field must be 2 x 2. Solves the equations using the pseudo inverse

    field

    The input field.

    b

    Vector field argument.

    returns

    The solution, x, to the set of linear equations.

    Definition Classes
    CogFunctionAPI
  490. def sq(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Apply the square operator to every numeric element in field.

    Apply the square operator to every numeric element in field.

    field

    The input field.

    returns

    Field equal to input field with each element, x, mapped to (x * x).

    Definition Classes
    CogFunctionAPI
  491. def sqrt(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Apply the square root operator to every numeric element in field.

    Apply the square root operator to every numeric element in field.

    field

    The input field.

    returns

    Field equal to input field with each element, x, mapped to sqrt(x).

    Definition Classes
    CogFunctionAPI
  492. def stack[T <: compiler.parser.syntaxtree.Field](fields: Array[T]): compiler.parser.syntaxtree.Field

    Permalink

    Stack tensor fields to create a higher-order tensor field.

    Stack tensor fields to create a higher-order tensor field.

    For example, this can be used to stack N scalar fields to a single vector field where each vector is of length N.

    fields

    The fields to be stacked.

    returns

    The resulting, higher-order tensor field.

    Definition Classes
    CogFunctionAPI
  493. def stack(fields: compiler.parser.syntaxtree.Field*): compiler.parser.syntaxtree.Field

    Permalink

    Stack tensor fields to create a higher-order tensor field.

    Stack tensor fields to create a higher-order tensor field.

    For example, this can be used to stack N scalar fields to a single vector field where each vector is of length N.

    fields

    The fields to be stacked.

    returns

    The resulting, higher-order tensor field.

    Definition Classes
    CogFunctionAPI
  494. def subfield(field: compiler.parser.syntaxtree.Field, guide: compiler.parser.syntaxtree.Field, shape: cogmath.geometry.Shape, border: platform.types.BorderPolicy = BorderClamp): compiler.parser.syntaxtree.Field

    Permalink

    Extracts a window from a 1D or 2D scalar, vector or matrix field, guided by a 0D vector field called "the guide." The guide specifies the upper-left-most (or left-most for 1D fields) point of the window, and shape specifies the size of the window.

    Extracts a window from a 1D or 2D scalar, vector or matrix field, guided by a 0D vector field called "the guide." The guide specifies the upper-left-most (or left-most for 1D fields) point of the window, and shape specifies the size of the window.

    A guiding vector with value (v1, v2) means a given point (row, col) extracts the element at location (row + v1, col + v2) as its output. If that location falls outside of the field, the BorderPolicy attached to the the opcode determines how the missing value is computed. If either of the guide vector components v1 and v2 is non-integral, bilinear interpolation is used to to determine the approximate value.

    field

    The input field.

    guide

    The guide vector.

    shape

    Shape of the window.

    border

    Policy for handling border processing.

    returns

    Extracted window.

    Definition Classes
    CogFunctionAPI
  495. def subfields(field: compiler.parser.syntaxtree.Field, diameter: Int): compiler.parser.syntaxtree.Field

    Permalink

    Extract all subfields from a 2D scalar field into a 2-D vector field.

    Extract all subfields from a 2D scalar field into a 2-D vector field.

    field

    The input field.

    diameter

    Sizes (rows and columns) of each subfield. Must be odd.

    returns

    A 2-D vector field where the length of the vector equals the number of diameter x diameter subfields in the input. For example, a 4 x 4 input field has four subfields of size 3 x 3, so this operator would return a 2-D vector field of size 3 x 3 (the size of the subfields) with vectors of length 4. Each layer of the vector field is one subfield of of the input.

    Definition Classes
    CogFunctionAPI
  496. def supersample(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Supersample a scalar field by 2X in each dimension, replicating pixels to fill in the gaps.

    Supersample a scalar field by 2X in each dimension, replicating pixels to fill in the gaps.

    field

    The input field.

    returns

    Input field expanded by 2X in each dimension with pixel replication.

    Definition Classes
    CogFunctionAPI
  497. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  498. def tan(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Apply the tangent operator to every numeric element in field.

    Apply the tangent operator to every numeric element in field.

    field

    The input field.

    returns

    Field equal to input field with each element, x, mapped to tan(x).

    Definition Classes
    CogFunctionAPI
  499. def tanh(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Apply the hyperbolic tangent operator to every numeric element in field.

    Apply the hyperbolic tangent operator to every numeric element in field.

    field

    The input field.

    returns

    Field equal to input field with each element, x, mapped to tanh(x).

    Definition Classes
    CogFunctionAPI
  500. def toColorField(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.ColorField

    Permalink

    Explicit conversion of a Field to a ColorField.

    Explicit conversion of a Field to a ColorField. Field is abstract, so this method will perform the appropriate type coercion if the field is already a ColorField but stored in a Field variable. This method also supports converting a ScalarField or VectorField to a ColorField.

    field

    The input field.

    returns

    The converted field.

    Definition Classes
    CogFunctionAPI
  501. def toComplexField(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.ComplexField

    Permalink

    Explicit conversion of a Field to a ComplexField.

    Explicit conversion of a Field to a ComplexField. Field is abstract, so this method will perform the appropriate type coercion if the field is already a ComplexField but stored in a Field variable. This method also supports converting a ScalarField to a ComplexField.

    field

    The input field.

    returns

    The converted field.

    Definition Classes
    CogFunctionAPI
  502. def toComplexVectorField(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.ComplexVectorField

    Permalink

    Explicit conversion of a Field to a ComplexVectorField.

    Explicit conversion of a Field to a ComplexVectorField. Field is abstract, so this method will perform the appropriate type coercion if the field is already a ComplexVectorField but stored in a Field variable. This method also supports converting a VectorField to a ComplexVectorField.

    field

    The input field.

    returns

    The converted field.

    Definition Classes
    CogFunctionAPI
  503. def toGenericComplexField(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Another explicit conversion, this time working on both ScalarFields and VectorFields.

    Another explicit conversion, this time working on both ScalarFields and VectorFields. The return type is Field though, the common base class of both ComplexFields and ComplexScalarFields.

    field

    The input field.

    Definition Classes
    CogFunctionAPI
  504. def toMatrixField(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.MatrixField

    Permalink

    Explicit conversion of a Field to a MatrixField.

    Explicit conversion of a Field to a MatrixField. Since Field is abstract, the only possible conversion is if the field is already a MatrixField but is stored in a Field variable. This merely does the necessary type coercion.

    field

    The input field.

    returns

    The converted field.

    Definition Classes
    CogFunctionAPI
  505. 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
  506. def toScalarField(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.ScalarField

    Permalink

    Explicit conversion of a Field to a ScalarField.

    Explicit conversion of a Field to a ScalarField. Since Field is abstract, the only possible conversion is if the field is already a ScalarField but is stored in a Field variable. This merely does the necessary type coercion.

    field

    The input field.

    returns

    The converted field.

    Definition Classes
    CogFunctionAPI
  507. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  508. def toVectorField(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.VectorField

    Permalink

    Explicit conversion of a Field to a VectorField.

    Explicit conversion of a Field to a VectorField. Field is abstract, so this method will perform the appropriate type coercion if the field is already a VectorField but stored in a Field variable. This method also supports converting a ColorField to a VectorField.

    field

    The input field.

    returns

    The converted field.

    Definition Classes
    CogFunctionAPI
  509. def transform(field: compiler.parser.syntaxtree.Field, f2: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    (1) Multiply a matrix field by a matrix field to produce a matrix field; or (2) multiply a matrix field by a vector field to produce a vector field.

    (1) Multiply a matrix field by a matrix field to produce a matrix field; or (2) multiply a matrix field by a vector field to produce a vector field.

    For case (1), corresponding matrices in field and f2 are multiplied using standard matrix multiplication to produce the corresponding matrix in the resulting matrix field.

    For case (2), corresponding matrix/vector pari in field and f2 are multiplied using standard matrix/vector multiplication to produce the corresponding vector (a linear transformation of the input vector) in the resulting vector field.

    field

    The input field.

    f2

    Matrix field or vector field; must have the same field shape as field.

    returns

    Matrix field or vector representing the matrix multiplications of corresponding elements in the two input fields.

    Definition Classes
    CogFunctionAPI
  510. def transpose(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Transpose a 2D tensor field or color field.

    Transpose a 2D tensor field or color field.

    field

    The input field.

    Definition Classes
    CogFunctionAPI
  511. def transposeMatrices(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Transpose all the matrices in a matrix field to produce a new matrix field.

    Transpose all the matrices in a matrix field to produce a new matrix field.

    field

    The input field.

    returns

    Copy of input matrix field with all matrices transposed.

    Definition Classes
    CogFunctionAPI
  512. def transposeVectors(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Transpose each vector in a vector field to a single row matrix, thus creating a matrix field from a vector field

    Transpose each vector in a vector field to a single row matrix, thus creating a matrix field from a vector field

    field

    The input field.

    returns

    Copy of input matrix field with all vectors transposed to single row matrices.

    Definition Classes
    CogFunctionAPI
  513. def trim(field: compiler.parser.syntaxtree.Field, resultShape: cogmath.geometry.Shape): compiler.parser.syntaxtree.Field

    Permalink

    "Trim" a field to a smaller size by clipping off indices (maintaining the origin).

    "Trim" a field to a smaller size by clipping off indices (maintaining the origin).

    field

    The input field.

    resultShape

    Desired shape of the resulting field; must not be larger in any dimension than the corresponding dimension of the input field

    returns

    The trimmed field.

    Definition Classes
    CogFunctionAPI
  514. def upsample(field: compiler.parser.syntaxtree.Field, factor: Int = 2, phase: Int = 0): compiler.parser.syntaxtree.Field

    Permalink

    Upsample with zeroes inserted between field points, increasing the size of the input in all dimensions.

    Upsample with zeroes inserted between field points, increasing the size of the input in all dimensions.

    Example: for input field {1,2,3}

    input.upsample(2) yields {1,0,2,0,3,0}
    
    input.upsample(2,1) yields {0,1,0,2,0,3}
    field

    The input field.

    factor

    The sampling factor, defaults to 2.

    phase

    The offset within the scaled up field to put the input data, defaults to an offset of 0.

    Definition Classes
    CogFunctionAPI
  515. def vectorElement(field: compiler.parser.syntaxtree.Field, index: Int): compiler.parser.syntaxtree.Field

    Permalink

    Convert a vector field to a scalar field by extracting one element of each vector.

    Convert a vector field to a scalar field by extracting one element of each vector.

    field

    The input field.

    index

    The element of each vector to be extracted.

    returns

    Input field with tensor order reduced by one.

    Definition Classes
    CogFunctionAPI
  516. def vectorElements(field: compiler.parser.syntaxtree.Field, indices: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Convert a vector field to a smaller vector field by extracting a dynamically indexed a range of elements

    Convert a vector field to a smaller vector field by extracting a dynamically indexed a range of elements

    field

    The input field.

    returns

    Input field with tensor order reduced by one.

    Definition Classes
    CogFunctionAPI
  517. def vectorField(field: compiler.parser.syntaxtree.ColorField): compiler.parser.syntaxtree.VectorField

    Permalink

    Convert a color field to a vector field, with each vector of length 3 representing, in order, the red, green and blue components of the corresponding pixel.

    Convert a color field to a vector field, with each vector of length 3 representing, in order, the red, green and blue components of the corresponding pixel.

    field

    Color field to be converted to vector field.

    returns

    Vector field, with each vector holding the red, green, blue components.

    Definition Classes
    CogFunctionAPI
  518. def vectorField(fields: Array[compiler.parser.syntaxtree.Field]): compiler.parser.syntaxtree.VectorField

    Permalink

    Create a vector field from scalar fields by "stacking" the scalar fields.

    Create a vector field from scalar fields by "stacking" the scalar fields.

    For example, this can be used to stack N scalar fields to a single vector field where each vector is of length N.

    fields

    The scalar fields to be stacked into a vector field.

    returns

    The resulting vector field.

    Definition Classes
    CogFunctionAPI
  519. def vectorField(fields: Array[compiler.parser.syntaxtree.ScalarField]): compiler.parser.syntaxtree.VectorField

    Permalink

    Create a vector field from scalar fields by "stacking" the scalar fields.

    Create a vector field from scalar fields by "stacking" the scalar fields.

    For example, this can be used to stack N scalar fields to a single vector field where each vector is of length N.

    fields

    The scalar fields to be stacked into a vector field.

    returns

    The resulting vector field.

    Definition Classes
    CogFunctionAPI
  520. def vectorField(fields: compiler.parser.syntaxtree.ScalarField*): compiler.parser.syntaxtree.VectorField

    Permalink

    Create a vector field from scalar fields by "stacking" the scalar fields.

    Create a vector field from scalar fields by "stacking" the scalar fields.

    For example, this can be used to stack N scalar fields to a single vector field where each vector is of length N.

    fields

    The scalar fields to be stacked into a vector field.

    returns

    The resulting vector field.

    Definition Classes
    CogFunctionAPI
  521. implicit def vectorTo0DVectorField(v: cogmath.algebra.real.Vector): compiler.parser.syntaxtree.VectorField

    Permalink

    Implicit conversion of a Vector to a 0D constant VectorField which allows for fields to be combined with vectors in a simple way.

    Implicit conversion of a Vector to a 0D constant VectorField which allows for fields to be combined with vectors in a simple way. This makes it possible to express commutative operations with a common syntax.

    For example

    Field + Vector

    and

    Vector + Field

    are both legal and compilable with this implicit conversion.

    v

    The vector to be converted to a 0D vector field.

    returns

    A 0D vector field initialized to v.

    Definition Classes
    ImplicitConversions
  522. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  525. def warp(field: compiler.parser.syntaxtree.Field, guide: compiler.parser.syntaxtree.Field, border: platform.types.BorderPolicy = BorderClamp): compiler.parser.syntaxtree.Field

    Permalink

    Warps a 2D scalar, vector or matrix field, guided by a vector field called "the guide." The guide must either be zero-dimensional, in which case the input field is translated uniformly, or must be a 2D vector field with exactly the same shape as the input.

    Warps a 2D scalar, vector or matrix field, guided by a vector field called "the guide." The guide must either be zero-dimensional, in which case the input field is translated uniformly, or must be a 2D vector field with exactly the same shape as the input.

    The guiding vector with value (v1, v2) at a given point (row, col) extracts the element at location (row - v1, col - v2) as its output. If that location falls outside of the field, the BorderPolicy attached to the the opcode determines how the missing value is computed. If either of the guide vector components v1 and v2 is non-integral, bilinear interpolation is used to to determine the approximate value.

    field

    The input field.

    guide

    The guiding vector field.

    border

    Policy for handling borders.

    returns

    Input field, warped by the guide.

    Definition Classes
    CogFunctionAPI
  526. def winnerTakeAll(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Compute the "winner" of a scalar field by mapping its largest element to 1.0f and the other elements to 0.0f

    Compute the "winner" of a scalar field by mapping its largest element to 1.0f and the other elements to 0.0f

    This is not well-defined when multiple elements share the maximum value, so beware.

    field

    The input field.

    returns

    A scalar field with the same shape as the input, with a single element containing 1.0f and the rest containing 0.0f.

    Definition Classes
    CogFunctionAPI

Deprecated Value Members

  1. def _globalThreads(fieldType: platform.types.FieldType): GlobalThreadsStatement

    Permalink

    Override global thread allocation.

    Override global thread allocation.

    fieldType

    The field type on which to model thread allocation; the thread allocator will treat this as though the output tensor field were of this type, which typically means you'll get a thread per tensor (or tensor element in some cases)

    returns

    Statement for the global thread allocation override.

    Definition Classes
    UserGPULibrary
    Annotations
    @deprecated
    Deprecated

    (Since version Cog 4.1) use _globalThreads(Shape) or _globalThreads(Shape, Shape) instead

  2. def bilateralFilter(field: compiler.parser.syntaxtree.Field, spatialFilter: cogmath.algebra.real.Matrix, rangeSigma: Float): compiler.parser.syntaxtree.Field

    Permalink

    Perform bilateral filtering using spatialFilter for spatial filtering (typically this will be a truncated Gaussian) and a Gaussian with width rangeSigma for range filtering.

    Perform bilateral filtering using spatialFilter for spatial filtering (typically this will be a truncated Gaussian) and a Gaussian with width rangeSigma for range filtering.

    WARNING: This is an old algorithm that is not very efficient. Consider a newer algorithm such as domain transform filtering.

    field

    The input field.

    Definition Classes
    CogFunctionAPI
    Annotations
    @deprecated
    Deprecated

    (Since version 4.1.1) inefficient, use domain transform filter instead

  3. def conditionNumber(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Given a matrix field, compute the condition number for each matrix in that field.

    Given a matrix field, compute the condition number for each matrix in that field. This is currently limited to fields containing 2 x 2 matrices.

    field

    The input field.

    returns

    Scalar field holding the condition numbers for the corresponding matrices in the input matrix field.

    Definition Classes
    CogFunctionAPI
    Annotations
    @deprecated
    Deprecated

    (Since version 4.1.1) will be moved to a library

  4. def determinant(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Compute the determinant of every matrix in a matrix field.

    Compute the determinant of every matrix in a matrix field.

    field

    The input field.

    returns

    Scalar field holding the determinants for the corresponding matrices in the input matrix field.

    Definition Classes
    CogFunctionAPI
    Annotations
    @deprecated
    Deprecated

    (Since version 4.1.1) will be moved to a library

  5. def domainFilterColumns(field: compiler.parser.syntaxtree.Field, domainTransform: compiler.parser.syntaxtree.ScalarField, boxFilterRadius: Float): compiler.parser.syntaxtree.Field

    Permalink

    Perform a "domain filter" on the columns of a color field as a step in edge-aware normalized convolution.

    Perform a "domain filter" on the columns of a color field as a step in edge-aware normalized convolution. This "correlates" an adaptive box filter with each pixel in the columns of the color field, guided by domainTransform.

    This operation works only on color fields and is an optimization. The following code sequences, A and B, are functionally identical:

    // Prepare for filtering
    val rowTransform: Field =
    val colTransform: Field =
    
    // Sequence A (slower)
    var smooth = colorImage
    smooth = smooth.domainFilterRows(rowTransform, ...)
    smooth = smooth.transpose.domainFilterRows(colTransform, ...).transpose
    
    // Sequence B, using this operation (faster, no transposes)
    var smooth = colorImage
    smooth = smooth.domainFilterRows(rowTransform, ...)
    smooth = smooth.domainFilterColumns(colTransform, ...)

    For details, see the paper "Domain transform for edge-aware image and video processing," Gastal and Oliveira, 2011. Normally this is not useful for end-users, but you're welcome to try it if you would like to write your own edge-aware filters.

    field

    The input field.

    domainTransform

    The cumulative domain transform for the image.

    boxFilterRadius

    Radius of box filter.

    returns

    The domain transform of the columns (equation 11) in the Gastal paper as a scalar field.

    Definition Classes
    CogFunctionAPI
    Annotations
    @deprecated
    Deprecated

    (Since version 4.1.1) will be moved to a library

  6. def domainFilterRows(field: compiler.parser.syntaxtree.Field, domainTransform: compiler.parser.syntaxtree.Field, boxFilterRadius: Float): compiler.parser.syntaxtree.Field

    Permalink

    Perform a "domain filter" on the rows of a tensor or color field as a step in edge-aware normalized convolution.

    Perform a "domain filter" on the rows of a tensor or color field as a step in edge-aware normalized convolution. This "correlates" an adaptive box filter with each pixel in the rows of the color field, guided by domainTransform.

    For details, see the paper "Domain transform for edge-aware image and video processing," Gastal and Oliveira, 2011. Normally this is not useful for end-users, but you're welcome to try it if you would like to write your own edge-aware filters.

    field

    The input field.

    domainTransform

    The cumulative domain transform for the image.

    boxFilterRadius

    Radius of box filter.

    returns

    The domain transform of the rows (equation 11) in the Gastal paper as a scalar field.

    Definition Classes
    CogFunctionAPI
    Annotations
    @deprecated
    Deprecated

    (Since version 4.1.1) will be moved to a library

  7. def domainTransformRows(field: compiler.parser.syntaxtree.Field, spaceSigma: Float, rangeSigma: Float): compiler.parser.syntaxtree.Field

    Permalink

    Perform a "domain transform" on the rows of a color field or tensor field as a step in edge-aware normalized convolution.

    Perform a "domain transform" on the rows of a color field or tensor field as a step in edge-aware normalized convolution.

    For details, see the paper "Domain transform for edge-aware image and video processing," Gastal and Oliveira, 2011. Normally this is not useful for end-users, but you're welcome to try it if you would like to write your own edge-aware filters.

    field

    The input field.

    spaceSigma

    Width of filter in space.

    rangeSigma

    Width of filter in range.

    returns

    The domain transform of the rows (equation 11) in the Gastal paper as a scalar field.

    Definition Classes
    CogFunctionAPI
    Annotations
    @deprecated
    Deprecated

    (Since version 4.1.1) will be moved to a library

  8. def invertMatrices(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Invert all matrices in a matrix field using Gauss-Jordan elimination.

    Invert all matrices in a matrix field using Gauss-Jordan elimination.

    This is numerically stable only for small matrices, and let's not even get in to singular matrices. Be careful.

    field

    The input field.

    returns

    A matrix field where each matrix is the (approximate) inverse of the corresponding matrix in the input matrix field.

    Definition Classes
    CogFunctionAPI
    Annotations
    @deprecated
    Deprecated

    (Since version 4.1.1) will be moved to a library

  9. def localMax(field: compiler.parser.syntaxtree.Field, neighborhood: cogmath.algebra.real.Matrix): compiler.parser.syntaxtree.Field

    Permalink

    Find the local maximum of a neighborhood centered on each pixel in a 2D scalar field.

    Find the local maximum of a neighborhood centered on each pixel in a 2D scalar field.

    For each point in the input 2D scalar field, this searches a small neighborhood of that point and extracts the largest scalar found.

    The neighborhood is defined by a matrix which is centered on the point. A non-zero value in the kernel means the corresponding point in the field is part of the neighborhood, while a zero implies the point should be ignored.

    For example, the kernel

    1 1 0
    1 1 0
    0 0 0

    specifies the 2 x 2 neighborhood for the maximum value search.

    field

    The input field.

    neighborhood

    An odd-sized matrix describing the neighborhood for doing the local max search. TO DO: This will become a field rather than a matrix. XXX

    returns

    A scalar field with the same shape as the input, where each element is equal to the local max of the input field as defined by neighborhood.

    Definition Classes
    CogFunctionAPI
    Annotations
    @deprecated
    Deprecated

    (Since version 4.1.1) will be moved to a library

  10. def localMaxPosition(field: compiler.parser.syntaxtree.Field, neighborhood: cogmath.algebra.real.Matrix): compiler.parser.syntaxtree.Field

    Permalink

    For a scalar field, find the relative position of the local maximum of a neighborhood centered on the current pixel.

    For a scalar field, find the relative position of the local maximum of a neighborhood centered on the current pixel. This is returned as vector field, with each vector's tail at the current pixel and the head pointing at the pixel containing the neighborhood's local maximum.

    The neighborhood is defined by a matrix which is centered on the point. A non-zero value in the kernel means the corresponding point in the field is part of the neighborhood, while a zero implies the point should be ignored.

    For example, the kernel

    1 1 0
    1 1 0
    0 0 0

    specifies the 2 x 2 neighborhood for the maximum value search.

    field

    The input field.

    neighborhood

    An odd-sized matrix describing the neighborhood for doing the local max search. TO DO: This will become a field rather than a matrix. XXX

    returns

    A vector field with the same field shape as the input scalar field, with each vector pointing to the maximum value in the neighborhood relative to the center of the neighborhood.

    Definition Classes
    CogFunctionAPI
    Annotations
    @deprecated
    Deprecated

    (Since version 4.1.1) will be moved to a library

  11. def localMin(field: compiler.parser.syntaxtree.Field, neighborhood: cogmath.algebra.real.Matrix): compiler.parser.syntaxtree.Field

    Permalink

    Find the local minimum of a neighborhood centered on each pixel in a 2D scalar field.

    Find the local minimum of a neighborhood centered on each pixel in a 2D scalar field.

    For each point in the input 2D scalar field, this searches a small neighborhood of that point and extracts the smallest scalar found.

    The neighborhood is defined by a matrix which is centered on the point. A non-zero value in the kernel means the corresponding point in the field is part of the neighborhood, while a zero implies the point should be ignored.

    For example, the kernel

    1 1 0
    1 1 0
    0 0 0

    specifies the 2 x 2 neighborhood for the minimum value search.

    field

    The input field.

    neighborhood

    An odd-sized matrix describing the neighborhood for doing the local max search. TO DO: This will become a field rather than a matrix. XXX

    returns

    A scalar field with the same shape as the input, where each element is equal to the local min of the input field as defined by neighborhood.

    Definition Classes
    CogFunctionAPI
    Annotations
    @deprecated
    Deprecated

    (Since version 4.1.1) will be moved to a library

  12. def localMinPosition(field: compiler.parser.syntaxtree.Field, neighborhood: cogmath.algebra.real.Matrix): compiler.parser.syntaxtree.Field

    Permalink

    For a scalar field, find the relative position of the local minimum of a neighborhood centered on the current pixel.

    For a scalar field, find the relative position of the local minimum of a neighborhood centered on the current pixel. This is returned as vector field, with each vector's tail at the current pixel and the head pointing at the pixel containing the neighborhood's local manimum.

    The neighborhood is defined by a matrix which is centered on the point. A non-zero value in the kernel means the corresponding point in the field is part of the neighborhood, while a zero implies the point should be ignored.

    For example, the kernel

    1 1 0
    1 1 0
    0 0 0

    specifies the 2 x 2 neighborhood for the minimum value search.

    field

    The input field.

    neighborhood

    An odd-sized matrix describing the neighborhood for doing the local min search. TO DO: This will become a field rather than a matrix. XXX

    returns

    A vector field with the same field shape as the input scalar field, with each vector pointing to the minimum value in the neighborhood relative to the center of the neighborhood.

    Definition Classes
    CogFunctionAPI
    Annotations
    @deprecated
    Deprecated

    (Since version 4.1.1) will be moved to a library

  13. def maxPosition(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Find the location/position of the maximum element in a scalar field.

    Find the location/position of the maximum element in a scalar field.

    field

    The input field.

    returns

    A 0D vector field containing a vector holding the indices of the maximum element.

    Definition Classes
    CogFunctionAPI
    Annotations
    @deprecated
    Deprecated

    (Since version 4.1.1) will be moved to a library

  14. def medianFilter(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Filter a 2D input scalar field with a 3 x 3 median filter.

    Filter a 2D input scalar field with a 3 x 3 median filter.

    field

    The input field.

    returns

    A 2D scalar field with the same field shape as the input, with each element median filtered.

    Definition Classes
    CogFunctionAPI
    Annotations
    @deprecated
    Deprecated

    (Since version 4.1.1) will be moved to a library

  15. def nonMaximumSuppression(field: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Forces locally non-maximum pixels to zero for both scalar fields and vector fields.

    Forces locally non-maximum pixels to zero for both scalar fields and vector fields.

    Locality is defined to be the 8 nearest neighbors to a given pixel. If a pixel is greater than or equal to any of those neighbors, its value is left intact on the output, otherwise it's set to zero. Note that border pixels have only 5 nearest neighbors and corner pixels have only 3 nearest neighbors, so those are the only ones checked.

    Vector fields are treated as though they were an array of scalar fields, so non-maximum suppression is executed independently on each.

    field

    The input field.

    returns

    A copy of the input field with locally non-maximum values set to zero.

    Definition Classes
    CogFunctionAPI
    Annotations
    @deprecated
    Deprecated

    (Since version 4.1.1) will be moved to a library

  16. def orientedNonMaximumSuppression(field: compiler.parser.syntaxtree.Field, orientation: compiler.parser.syntaxtree.Field): compiler.parser.syntaxtree.Field

    Permalink

    Forces locally non-maximum pixels to zero for calar fields, but only when comparing the pixels on either side of a given pixel, using orientation to define where to look for the two pixels for comparison.

    Forces locally non-maximum pixels to zero for calar fields, but only when comparing the pixels on either side of a given pixel, using orientation to define where to look for the two pixels for comparison.

    field

    The input field.

    orientation

    A scalar field holding the local orientation of the input field at every point. Orientation ranges from -Pi/2 to Pi/2, where the corresponding orientation rotates clockwise from horizontal (-Pi/2) to vertical (0) to horizontal (Pi/2).

    returns

    A copy of the input field with locally non-maximum values set to zero.

    Definition Classes
    CogFunctionAPI
    Annotations
    @deprecated
    Deprecated

    (Since version 4.1.1) will be moved to a library

Inherited from ComplexImplicits

Inherited from Serializable

Inherited from Serializable

Inherited from UserGPULibrary

Inherited from VectorLiteralFunctions

Inherited from VariableDeclarations

Inherited from TypeConversionFunctions

Inherited from RelationalFunctions

Inherited from MathFunctions

Inherited from IntegerFunctions

Inherited from GeometricFunctions

Inherited from FieldWriteFunctions

Inherited from FieldVariableFunctions

Inherited from FieldReadFunctions

Inherited from FloatConstantsTrait

Inherited from CommonFunctions

Inherited from BlockFunctions

Inherited from AtomicFunctions

Inherited from CogFunctionAPI

Inherited from ImplicitConversions

Inherited from SemanticError

Inherited from CompilerError

Inherited from AnyRef

Inherited from Any

Ungrouped