Package

libcog

Permalink

package libcog

The Cog library.

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

Type Members

  1. type AbstractFieldMemory = cogx.platform.cpumemory.AbstractFieldMemory

    Permalink
    Definition Classes
    CogXInterface
  2. type Actuator = cogx.compiler.parser.syntaxtree.Actuator

    Permalink
    Definition Classes
    CogXInterface
  3. type BorderPolicy = cogx.platform.types.BorderPolicy

    Permalink
    Definition Classes
    CogXInterface
  4. type CheckpointerType = cogx.platform.types.CheckpointerType

    Permalink
    Definition Classes
    CogXInterface
  5. type ColorActuator = cogx.compiler.parser.syntaxtree.ColorActuator

    Permalink
    Definition Classes
    CogXInterface
  6. type ColorField = cogx.compiler.parser.syntaxtree.ColorField

    Permalink
    Definition Classes
    CogXInterface
  7. type ColorFieldReader = cogx.platform.cpumemory.readerwriter.ColorFieldReader

    Permalink
    Definition Classes
    CogXInterface
  8. type ColorFieldWriter = cogx.platform.cpumemory.readerwriter.ColorFieldWriter

    Permalink
    Definition Classes
    CogXInterface
  9. type ColorSensor = cogx.compiler.parser.syntaxtree.ColorSensor

    Permalink
    Definition Classes
    CogXInterface
  10. type Complex = cogx.cogmath.algebra.complex.Complex

    Permalink
    Definition Classes
    CogXInterface
  11. type ComplexField = cogx.compiler.parser.syntaxtree.ComplexField

    Permalink
    Definition Classes
    CogXInterface
  12. type ComplexFieldMemory = cogx.platform.cpumemory.ComplexFieldMemory

    Permalink
    Definition Classes
    CogXInterface
  13. type ComplexFieldReader = cogx.platform.cpumemory.readerwriter.ComplexFieldReader

    Permalink
    Definition Classes
    CogXInterface
  14. type ComplexFieldWriter = cogx.platform.cpumemory.readerwriter.ComplexFieldWriter

    Permalink
    Definition Classes
    CogXInterface
  15. type ComplexMatrix = cogx.cogmath.algebra.complex.ComplexMatrix

    Permalink
    Definition Classes
    CogXInterface
  16. type ComplexTensor3 = cogx.cogmath.algebra.complex.ComplexTensor3

    Permalink
    Definition Classes
    CogXInterface
  17. type ComplexVector = cogx.cogmath.algebra.complex.ComplexVector

    Permalink
    Definition Classes
    CogXInterface
  18. type ComplexVectorField = cogx.compiler.parser.syntaxtree.ComplexVectorField

    Permalink
    Definition Classes
    CogXInterface
  19. type ComplexVectorFieldReader = cogx.platform.cpumemory.readerwriter.ComplexVectorFieldReader

    Permalink
    Definition Classes
    CogXInterface
  20. type ComplexVectorFieldWriter = cogx.platform.cpumemory.readerwriter.ComplexVectorFieldWriter

    Permalink
    Definition Classes
    CogXInterface
  21. type ComputeGraph = cogx.runtime.ComputeGraph

    Permalink
    Definition Classes
    CogXInterface
  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 = cogx.platform.types.ConvolutionFFTUsePolicy

    Permalink
    Definition Classes
    CogXInterface
  25. type ConvolutionSamplingPolicy = cogx.platform.types.ConvolutionSamplingPolicy

    Permalink
    Definition Classes
    CogXInterface
  26. type ConvolutionSmallTensorUsePolicy = cogx.platform.types.ConvolutionSmallTensorUsePolicy

    Permalink
    Definition Classes
    CogXInterface
  27. type DownsampleOutputConvolution = cogx.platform.types.DownsampleOutputConvolution

    Permalink
    Definition Classes
    CogXInterface
  28. type ElementType = cogx.platform.types.ElementTypes.ElementType

    Permalink
    Definition Classes
    CogXInterface
  29. type Field = cogx.compiler.parser.syntaxtree.Field

    Permalink
    Definition Classes
    CogXInterface
  30. type FieldReader = cogx.platform.cpumemory.readerwriter.FieldReader

    Permalink
    Definition Classes
    CogXInterface
  31. type FieldType = cogx.platform.types.FieldType

    Permalink
    Definition Classes
    CogXInterface
  32. type FloatMath = libcog.floatmath.FloatMath

    Permalink
  33. type GPUArrayVariable = cogx.compiler.gpu_operator.declaration.GPUArrayVariable

    Permalink

    An array variable in a GPU kernel

    An array variable in a GPU kernel

    Definition Classes
    UserGPULibrary
  34. type GPUExpression = cogx.compiler.gpu_operator.expression.GPUExpression

    Permalink

    An expression in a GPU kernel

    An expression in a GPU kernel

    Definition Classes
    UserGPULibrary
  35. type GPUVariable = cogx.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
  36. type ImageMemory = ColorFieldMemory

    Permalink
    Definition Classes
    CogXInterface
  37. type Logarithm = cogx.cogmath.algebra.real.Logarithm

    Permalink
    Definition Classes
    CogXInterface
  38. type Matrix = cogx.cogmath.algebra.real.Matrix

    Permalink
    Definition Classes
    CogXInterface
  39. type MatrixField = cogx.compiler.parser.syntaxtree.MatrixField

    Permalink
    Definition Classes
    CogXInterface
  40. type MatrixFieldMemory = cogx.platform.cpumemory.MatrixFieldMemory

    Permalink
    Definition Classes
    CogXInterface
  41. type MatrixFieldReader = cogx.platform.cpumemory.readerwriter.MatrixFieldReader

    Permalink
    Definition Classes
    CogXInterface
  42. type MatrixFieldWriter = cogx.platform.cpumemory.readerwriter.MatrixFieldWriter

    Permalink
    Definition Classes
    CogXInterface
  43. type Operator = cogx.compiler.cpu_operator.Operator

    Permalink
    Definition Classes
    CogXInterface
  44. type Pixel = cogx.platform.types.Pixel

    Permalink
    Definition Classes
    CogXInterface
  45. type Random = cogx.utilities.Random

    Permalink
    Definition Classes
    CogXInterface
  46. type ScalarField = cogx.compiler.parser.syntaxtree.ScalarField

    Permalink
    Definition Classes
    CogXInterface
  47. type ScalarFieldReader = cogx.platform.cpumemory.readerwriter.ScalarFieldReader

    Permalink
    Definition Classes
    CogXInterface
  48. type ScalarFieldWriter = cogx.platform.cpumemory.readerwriter.ScalarFieldWriter

    Permalink
    Definition Classes
    CogXInterface
  49. type Sensor = cogx.compiler.parser.syntaxtree.Sensor

    Permalink
    Definition Classes
    CogXInterface
  50. type Shape = cogx.cogmath.geometry.Shape

    Permalink
    Definition Classes
    CogXInterface
  51. type StickTensor = libcog.fields.StickTensor

    Permalink
  52. type StickTensorField = libcog.fields.StickTensorField

    Permalink
  53. type SymmetricTensor = libcog.fields.SymmetricTensor

    Permalink
  54. type SymmetricTensorField = libcog.fields.SymmetricTensorField

    Permalink
  55. type Tensor3 = cogx.cogmath.algebra.real.Tensor3

    Permalink
    Definition Classes
    CogXInterface
  56. type UnpipelinedActuator = cogx.compiler.parser.syntaxtree.UnpipelinedActuator

    Permalink
    Definition Classes
    CogXInterface
  57. type UnpipelinedColorActuator = cogx.compiler.parser.syntaxtree.UnpipelinedColorActuator

    Permalink
    Definition Classes
    CogXInterface
  58. type UnpipelinedColorSensor = cogx.compiler.parser.syntaxtree.UnpipelinedColorSensor

    Permalink
    Definition Classes
    CogXInterface
  59. type UnpipelinedSensor = cogx.compiler.parser.syntaxtree.UnpipelinedSensor

    Permalink
    Definition Classes
    CogXInterface
  60. type UnpipelinedVectorActuator = cogx.compiler.parser.syntaxtree.UnpipelinedVectorActuator

    Permalink
    Definition Classes
    CogXInterface
  61. type UnpipelinedVectorSensor = cogx.compiler.parser.syntaxtree.UnpipelinedVectorSensor

    Permalink
    Definition Classes
    CogXInterface
  62. type UpsampleInputConvolution = cogx.platform.types.UpsampleInputConvolution

    Permalink
    Definition Classes
    CogXInterface
  63. type Vector = cogx.cogmath.algebra.real.Vector

    Permalink
    Definition Classes
    CogXInterface
  64. type VectorActuator = cogx.compiler.parser.syntaxtree.VectorActuator

    Permalink
    Definition Classes
    CogXInterface
  65. type VectorField = cogx.compiler.parser.syntaxtree.VectorField

    Permalink
    Definition Classes
    CogXInterface
  66. type VectorFieldMemory = cogx.platform.cpumemory.VectorFieldMemory

    Permalink
    Definition Classes
    CogXInterface
  67. type VectorFieldReader = cogx.platform.cpumemory.readerwriter.VectorFieldReader

    Permalink
    Definition Classes
    CogXInterface
  68. type VectorFieldWriter = cogx.platform.cpumemory.readerwriter.VectorFieldWriter

    Permalink
    Definition Classes
    CogXInterface
  69. type VectorSensor = cogx.compiler.parser.syntaxtree.VectorSensor

    Permalink
    Definition Classes
    CogXInterface

Abstract Value Members

  1. abstract def getClass(): Class[_]

    Permalink
    Definition Classes
    Any

Concrete Value Members

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

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

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

    Permalink
    Definition Classes
    Any
  4. val Actuator: cogx.compiler.parser.syntaxtree.Actuator.type

    Permalink
    Definition Classes
    CogXInterface
  5. val BorderClamp: cogx.platform.types.BorderClamp.type

    Permalink
    Definition Classes
    CogXInterface
  6. val BorderCyclic: cogx.platform.types.BorderCyclic.type

    Permalink
    Definition Classes
    CogXInterface
  7. val BorderFull: cogx.platform.types.BorderFull.type

    Permalink
    Definition Classes
    CogXInterface
  8. val BorderValid: cogx.platform.types.BorderValid.type

    Permalink
    Definition Classes
    CogXInterface
  9. val BorderZero: cogx.platform.types.BorderZero.type

    Permalink
    Definition Classes
    CogXInterface
  10. val Cog: cogx.parameters.Cog.type

    Permalink
    Definition Classes
    CogXInterface
  11. val ColorActuator: cogx.compiler.parser.syntaxtree.ColorActuator.type

    Permalink
    Definition Classes
    CogXInterface
  12. val ColorField: cogx.compiler.parser.syntaxtree.ColorField.type

    Permalink
    Definition Classes
    CogXInterface
  13. val Complex: cogx.cogmath.algebra.complex.Complex.type

    Permalink
    Definition Classes
    CogXInterface
  14. val Complex16: cogx.platform.types.ElementTypes.Complex16.type

    Permalink
    Definition Classes
    CogXInterface
  15. val Complex32: cogx.platform.types.ElementTypes.Complex32.type

    Permalink
    Definition Classes
    CogXInterface
  16. val Complex64: cogx.platform.types.ElementTypes.Complex64.type

    Permalink
    Definition Classes
    CogXInterface
  17. val ComplexField: cogx.compiler.parser.syntaxtree.ComplexField.type

    Permalink
    Definition Classes
    CogXInterface
  18. val ComplexMatrix: cogx.cogmath.algebra.complex.ComplexMatrix.type

    Permalink
    Definition Classes
    CogXInterface
  19. val ComplexVector: cogx.cogmath.algebra.complex.ComplexVector.type

    Permalink
    Definition Classes
    CogXInterface
  20. val ComplexVectorField: cogx.compiler.parser.syntaxtree.ComplexVectorField.type

    Permalink
    Definition Classes
    CogXInterface
  21. val ComputeGraph: cogx.runtime.ComputeGraph.type

    Permalink
    Definition Classes
    CogXInterface
  22. val DownsampleOutputConvolution: cogx.platform.types.DownsampleOutputConvolution.type

    Permalink
    Definition Classes
    CogXInterface
  23. val FFT2D: cogx.cogmath.fft.FFT2D.type

    Permalink
    Definition Classes
    CogXInterface
  24. val Field: cogx.compiler.parser.syntaxtree.Field.type

    Permalink
    Definition Classes
    CogXInterface
  25. val FieldMemory: cogx.platform.cpumemory.FieldMemory.type

    Permalink
    Definition Classes
    CogXInterface
  26. val Float16: cogx.platform.types.ElementTypes.Float16.type

    Permalink
    Definition Classes
    CogXInterface
  27. val Float32: cogx.platform.types.ElementTypes.Float32.type

    Permalink
    Definition Classes
    CogXInterface
  28. val Float64: cogx.platform.types.ElementTypes.Float64.type

    Permalink
    Definition Classes
    CogXInterface
  29. val GPUOperator: cogx.compiler.gpu_operator.GPUOperator.type

    Permalink
    Definition Classes
    CogXInterface
  30. val Hdf5CheckpointerType: cogx.platform.types.Hdf5CheckpointerType.type

    Permalink
    Definition Classes
    CogXInterface
  31. val I: cogx.cogmath.algebra.complex.Complex

    Permalink

    Square root of -1

    Square root of -1

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

    Permalink
    Definition Classes
    CogXInterface
  33. val Int32: cogx.platform.types.ElementTypes.Int32.type

    Permalink
    Definition Classes
    CogXInterface
  34. val Int64: cogx.platform.types.ElementTypes.Int64.type

    Permalink
    Definition Classes
    CogXInterface
  35. val Int8: cogx.platform.types.ElementTypes.Int8.type

    Permalink
    Definition Classes
    CogXInterface
  36. val JavaCheckpointerType: cogx.platform.types.JavaCheckpointerType.type

    Permalink
    Definition Classes
    CogXInterface
  37. val Logarithm: cogx.cogmath.algebra.real.Logarithm.type

    Permalink
    Definition Classes
    CogXInterface
  38. val Matrix: cogx.cogmath.algebra.real.Matrix.type

    Permalink
    Definition Classes
    CogXInterface
  39. val MatrixField: cogx.compiler.parser.syntaxtree.MatrixField.type

    Permalink
    Definition Classes
    CogXInterface
  40. val NoSamplingConvolution: cogx.platform.types.NoSamplingConvolution.type

    Permalink
    Definition Classes
    CogXInterface
  41. val Random: cogx.utilities.Random.type

    Permalink
    Definition Classes
    CogXInterface
  42. val ScalarField: cogx.compiler.parser.syntaxtree.ScalarField.type

    Permalink
    Definition Classes
    CogXInterface
  43. val Shape: cogx.cogmath.geometry.Shape.type

    Permalink
    Definition Classes
    CogXInterface
  44. val StickTensor: libcog.fields.StickTensor.type

    Permalink
  45. val StickTensorField: libcog.fields.StickTensorField.type

    Permalink
  46. val SymmetricTensor: libcog.fields.SymmetricTensor.type

    Permalink
  47. val SymmetricTensorField: libcog.fields.SymmetricTensorField.type

    Permalink
  48. val Uint16: cogx.platform.types.ElementTypes.Uint16.type

    Permalink
    Definition Classes
    CogXInterface
  49. val Uint32: cogx.platform.types.ElementTypes.Uint32.type

    Permalink
    Definition Classes
    CogXInterface
  50. val Uint64: cogx.platform.types.ElementTypes.Uint64.type

    Permalink
    Definition Classes
    CogXInterface
  51. val Uint8: cogx.platform.types.ElementTypes.Uint8.type

    Permalink
    Definition Classes
    CogXInterface
  52. val Uint8Pixel: cogx.platform.types.ElementTypes.Uint8Pixel.type

    Permalink
    Definition Classes
    CogXInterface
  53. val UnpipelinedActuator: cogx.compiler.parser.syntaxtree.UnpipelinedActuator.type

    Permalink
    Definition Classes
    CogXInterface
  54. val UnpipelinedColorActuator: cogx.compiler.parser.syntaxtree.UnpipelinedColorActuator.type

    Permalink
    Definition Classes
    CogXInterface
  55. val UpsampleInputConvolution: cogx.platform.types.UpsampleInputConvolution.type

    Permalink
    Definition Classes
    CogXInterface
  56. val UseFFTAlways: cogx.platform.types.UseFFTAlways.type

    Permalink
    Definition Classes
    CogXInterface
  57. val UseFFTNever: cogx.platform.types.UseFFTNever.type

    Permalink
    Definition Classes
    CogXInterface
  58. val UseFFTWhenBest: cogx.platform.types.UseFFTWhenBest.type

    Permalink
    Definition Classes
    CogXInterface
  59. val UseSmallTensorAlways: cogx.platform.types.UseSmallTensorAlways.type

    Permalink
    Definition Classes
    CogXInterface
  60. val UseSmallTensorNever: cogx.platform.types.UseSmallTensorNever.type

    Permalink
    Definition Classes
    CogXInterface
  61. val UseSmallTensorWhenBest: cogx.platform.types.UseSmallTensorWhenBest.type

    Permalink
    Definition Classes
    CogXInterface
  62. val Vector: cogx.cogmath.algebra.real.Vector.type

    Permalink
    Definition Classes
    CogXInterface
  63. val VectorActuator: cogx.compiler.parser.syntaxtree.VectorActuator.type

    Permalink
    Definition Classes
    CogXInterface
  64. val VectorField: cogx.compiler.parser.syntaxtree.VectorField.type

    Permalink
    Definition Classes
    CogXInterface
  65. def _abs(expr: cogx.compiler.gpu_operator.expression.GPUExpression): UnaryIntExpression

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink

    Begin an anonymous block.

    Begin an anonymous block.

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    IntegerFunctions
  113. val _column: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  114. val _columns: NulleryIntExpression

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    MathFunctions
  131. def _debug: DebugStatement

    Permalink

    Debug the GPUOperator.

    Debug the GPUOperator.

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink

    Begin an "else" block.

    Begin an "else" block.

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

    Permalink

    Begin an "elseif" block.

    Begin an "elseif" block.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink

    Begin a "for" block.

    Begin a "for" block.

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

    Permalink

    Begin a "forEachTensorElement" block.

    Begin a "forEachTensorElement" block.

    Definition Classes
    BlockFunctions
  180. def _globalThreads(fieldShape: cogx.cogmath.geometry.Shape, tensorShape: cogx.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
  181. def _globalThreads(fieldShape: cogx.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
  182. val _groupColumn: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  183. val _groupLayer: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  184. val _groupRow: NulleryIntExpression

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

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

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

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

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

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

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

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

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

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

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

    Permalink

    Begin an "if" block.

    Begin an "if" block.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    RelationalFunctions
  226. val _layer: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  227. val _layers: NulleryIntExpression

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

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

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

    Permalink

    Declare an array variable to be local.

    Declare an array variable to be local.

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

    Permalink

    Declare a variable to be local.

    Declare a variable to be local.

    Definition Classes
    UserGPULibrary
  232. val _localColumn: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  233. val _localColumns: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  234. val _localLayer: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  235. val _localLayers: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  236. val _localRow: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  237. val _localRows: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  238. def _localThreads(shape: cogx.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
  239. def _log(expr: cogx.compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink

    Create a pointer to an array element.

    Create a pointer to an array element.

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

    Permalink

    Create a pointer to a variable.

    Create a pointer to a variable.

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

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

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

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

    Permalink
    Definition Classes
    CommonFunctions
  282. def _readTensor(f: cogx.compiler.parser.syntaxtree.Field, layer: cogx.compiler.gpu_operator.expression.GPUExpression, row: cogx.compiler.gpu_operator.expression.GPUExpression, column: cogx.compiler.gpu_operator.expression.GPUExpression): cogx.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
  283. def _readTensor(f: cogx.compiler.parser.syntaxtree.Field, row: cogx.compiler.gpu_operator.expression.GPUExpression, column: cogx.compiler.gpu_operator.expression.GPUExpression): cogx.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
  284. def _readTensor(f: cogx.compiler.parser.syntaxtree.Field, column: cogx.compiler.gpu_operator.expression.GPUExpression): cogx.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
  285. def _readTensor(f: cogx.compiler.parser.syntaxtree.Field): cogx.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
  286. def _readTensorElement(f: cogx.compiler.parser.syntaxtree.Field, layer: cogx.compiler.gpu_operator.expression.GPUExpression, row: cogx.compiler.gpu_operator.expression.GPUExpression, column: cogx.compiler.gpu_operator.expression.GPUExpression, element: cogx.compiler.gpu_operator.expression.GPUExpression): cogx.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
  287. def _readTensorElement(f: cogx.compiler.parser.syntaxtree.Field, row: cogx.compiler.gpu_operator.expression.GPUExpression, column: cogx.compiler.gpu_operator.expression.GPUExpression, element: cogx.compiler.gpu_operator.expression.GPUExpression): cogx.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
  288. def _readTensorElement(f: cogx.compiler.parser.syntaxtree.Field, column: cogx.compiler.gpu_operator.expression.GPUExpression, element: cogx.compiler.gpu_operator.expression.GPUExpression): cogx.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
  289. def _readTensorElement(f: cogx.compiler.parser.syntaxtree.Field, element: cogx.compiler.gpu_operator.expression.GPUExpression): cogx.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
  290. def _remainder(expr1: cogx.compiler.gpu_operator.expression.GPUExpression, expr2: cogx.compiler.gpu_operator.expression.GPUExpression): BinaryFloatExpression

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

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

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

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

    Permalink
    Definition Classes
    MathFunctions
  295. val _row: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  296. val _rows: NulleryIntExpression

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    IntegerFunctions
  312. 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
  313. 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
  314. def _tan(expr: cogx.compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

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

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

    Permalink
    Definition Classes
    MathFunctions
  317. def _tensorArray(f: cogx.compiler.parser.syntaxtree.Field, layers: cogx.compiler.gpu_operator.expression.GPUExpression, rows: cogx.compiler.gpu_operator.expression.GPUExpression, columns: cogx.compiler.gpu_operator.expression.GPUExpression): cogx.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
  318. def _tensorArray(f: cogx.compiler.parser.syntaxtree.Field, rows: cogx.compiler.gpu_operator.expression.GPUExpression, columns: cogx.compiler.gpu_operator.expression.GPUExpression): cogx.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
  319. def _tensorArray(f: cogx.compiler.parser.syntaxtree.Field, columns: cogx.compiler.gpu_operator.expression.GPUExpression): cogx.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
  320. val _tensorElement: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  321. def _tensorElementArray(f: cogx.compiler.parser.syntaxtree.Field, layers: cogx.compiler.gpu_operator.expression.GPUExpression, rows: cogx.compiler.gpu_operator.expression.GPUExpression, columns: cogx.compiler.gpu_operator.expression.GPUExpression): cogx.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
  322. def _tensorElementArray(f: cogx.compiler.parser.syntaxtree.Field, rows: cogx.compiler.gpu_operator.expression.GPUExpression, columns: cogx.compiler.gpu_operator.expression.GPUExpression): cogx.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
  323. def _tensorElementArray(f: cogx.compiler.parser.syntaxtree.Field, columns: cogx.compiler.gpu_operator.expression.GPUExpression): cogx.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
  324. def _tensorElementVar(f: cogx.compiler.parser.syntaxtree.Field): cogx.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
  325. val _tensorElements: NulleryIntExpression

    Permalink
    Definition Classes
    ConstantExpressionFunctions
  326. def _tensorVar(f: cogx.compiler.parser.syntaxtree.Field): cogx.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
  327. def _tgamma(expr: cogx.compiler.gpu_operator.expression.GPUExpression): UnaryFloatExpression

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink

    Declare an array variable to be volatile.

    Declare an array variable to be volatile.

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

    Permalink

    Declare a variable to be volatile.

    Declare a variable to be volatile.

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

    Permalink

    Begin a "while" block.

    Begin a "while" block.

    Definition Classes
    BlockFunctions
  364. def _writeTensor(index: OutFieldIndex, value: cogx.compiler.gpu_operator.expression.GPUExpression, layer: cogx.compiler.gpu_operator.expression.GPUExpression, row: cogx.compiler.gpu_operator.expression.GPUExpression, column: cogx.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
  365. def _writeTensor(index: OutFieldIndex, value: cogx.compiler.gpu_operator.expression.GPUExpression, row: cogx.compiler.gpu_operator.expression.GPUExpression, column: cogx.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
  366. def _writeTensor(index: OutFieldIndex, value: cogx.compiler.gpu_operator.expression.GPUExpression, column: cogx.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
  367. def _writeTensor(index: OutFieldIndex, value: cogx.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
  368. def _writeTensorElement(index: OutFieldIndex, value: cogx.compiler.gpu_operator.expression.GPUExpression, layer: cogx.compiler.gpu_operator.expression.GPUExpression, row: cogx.compiler.gpu_operator.expression.GPUExpression, column: cogx.compiler.gpu_operator.expression.GPUExpression, tensorElementIndex: cogx.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
  369. def _writeTensorElement(index: OutFieldIndex, value: cogx.compiler.gpu_operator.expression.GPUExpression, row: cogx.compiler.gpu_operator.expression.GPUExpression, column: cogx.compiler.gpu_operator.expression.GPUExpression, tensorElementIndex: cogx.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
  370. def _writeTensorElement(index: OutFieldIndex, value: cogx.compiler.gpu_operator.expression.GPUExpression, column: cogx.compiler.gpu_operator.expression.GPUExpression, tensorElementIndex: cogx.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
  371. def _writeTensorElement(index: OutFieldIndex, value: cogx.compiler.gpu_operator.expression.GPUExpression, tensorElementIndex: cogx.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
  372. def abs(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  373. def acos(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  374. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  375. def asin(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  376. def atan2(field: cogx.compiler.parser.syntaxtree.Field, f2: cogx.compiler.parser.syntaxtree.Field): cogx.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
  377. def backProjectFrame(field: cogx.compiler.parser.syntaxtree.Field, filter: cogx.compiler.parser.syntaxtree.Field, borderPolicy: cogx.platform.types.BorderPolicy, samplingPolicy: cogx.platform.types.ConvolutionSamplingPolicy = NoSamplingConvolution, batchSize: Int = 1): cogx.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
  378. def backwardDivergence(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  379. def backwardGradient(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  380. def blockReduceMax(field: cogx.compiler.parser.syntaxtree.Field, factor: Int): cogx.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
  381. def blockReduceMin(field: cogx.compiler.parser.syntaxtree.Field, factor: Int): cogx.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
  382. def blockReduceSum(field: cogx.compiler.parser.syntaxtree.Field, factor: Int): cogx.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
  383. def centralGradient(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  384. def colorField(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  385. def colorField(red: cogx.compiler.parser.syntaxtree.Field, green: cogx.compiler.parser.syntaxtree.Field, blue: cogx.compiler.parser.syntaxtree.Field): cogx.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
  386. def complex(real: cogx.compiler.parser.syntaxtree.Field): cogx.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
  387. def complex(real: cogx.compiler.parser.syntaxtree.Field, imaginary: cogx.compiler.parser.syntaxtree.Field): cogx.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
  388. implicit def complexToCogComplex(c: cogx.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
  389. def complexVectorField(fields: Array[cogx.compiler.parser.syntaxtree.ComplexField]): cogx.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
  390. def complexVectorField(fields: cogx.compiler.parser.syntaxtree.ComplexField*): cogx.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
  391. implicit def complexVectorTo0DComplexVectorField(v: cogx.cogmath.algebra.complex.ComplexVector): cogx.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
  392. def conjugate(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  393. def convolve(field: cogx.compiler.parser.syntaxtree.Field, filter: cogx.compiler.parser.syntaxtree.Field, borderPolicy: cogx.platform.types.BorderPolicy, samplingPolicy: cogx.platform.types.ConvolutionSamplingPolicy = NoSamplingConvolution): cogx.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
  394. def convolveFilterAdjoint(field: cogx.compiler.parser.syntaxtree.Field, filter: cogx.compiler.parser.syntaxtree.Field, borderPolicy: cogx.platform.types.BorderPolicy, samplingPolicy: cogx.platform.types.ConvolutionSamplingPolicy = NoSamplingConvolution, batchSize: Int = 1): cogx.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
  395. def convolveSeparable(field: cogx.compiler.parser.syntaxtree.Field, rowFilter: cogx.compiler.parser.syntaxtree.Field, columnFilter: cogx.compiler.parser.syntaxtree.Field, borderPolicy: cogx.platform.types.BorderPolicy): cogx.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
  396. def copy(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  397. def cos(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  398. def cosh(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  399. def crossCorrelate(field: cogx.compiler.parser.syntaxtree.Field, filter: cogx.compiler.parser.syntaxtree.Field, borderPolicy: cogx.platform.types.BorderPolicy, samplingPolicy: cogx.platform.types.ConvolutionSamplingPolicy = NoSamplingConvolution): cogx.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
  400. def crossCorrelateFilterAdjoint(field: cogx.compiler.parser.syntaxtree.Field, filter: cogx.compiler.parser.syntaxtree.Field, borderPolicy: cogx.platform.types.BorderPolicy, samplingPolicy: cogx.platform.types.ConvolutionSamplingPolicy = NoSamplingConvolution, batchSize: Int = 1): cogx.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
  401. def crossCorrelateSeparable(field: cogx.compiler.parser.syntaxtree.Field, rowFilter: cogx.compiler.parser.syntaxtree.Field, columnFilter: cogx.compiler.parser.syntaxtree.Field, borderPolicy: cogx.platform.types.BorderPolicy): cogx.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
  402. def crossDot(field: cogx.compiler.parser.syntaxtree.Field, f2: cogx.compiler.parser.syntaxtree.Field): cogx.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
  403. def dct(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  404. def dctInverse(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  405. def dctInverseTransposed(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  406. def dctTransposed(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  407. def dot(field: cogx.compiler.parser.syntaxtree.Field, f2: cogx.compiler.parser.syntaxtree.Field): cogx.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
  408. def downsample(field: cogx.compiler.parser.syntaxtree.Field, factor: Int = 2, phase: Int = 0): cogx.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
  409. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  410. def exp(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  411. def expand(field: cogx.compiler.parser.syntaxtree.Field, borderPolicy: cogx.platform.types.BorderPolicy, sizes: Int*): cogx.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
  412. def expand(field: cogx.compiler.parser.syntaxtree.Field, borderPolicy: cogx.platform.types.BorderPolicy, shape: cogx.cogmath.geometry.Shape): cogx.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
  413. def fft(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  414. def fftColumns(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  415. def fftInverse(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  416. def fftInverseColumns(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  417. def fftInverseRI(real: cogx.compiler.parser.syntaxtree.Field, imaginary: cogx.compiler.parser.syntaxtree.Field): (cogx.compiler.parser.syntaxtree.Field, cogx.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
  418. def fftInverseRows(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  419. def fftRI(real: cogx.compiler.parser.syntaxtree.Field): (cogx.compiler.parser.syntaxtree.Field, cogx.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
  420. def fftRI(real: cogx.compiler.parser.syntaxtree.Field, imaginary: cogx.compiler.parser.syntaxtree.Field): (cogx.compiler.parser.syntaxtree.Field, cogx.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
  421. def fftRows(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  422. implicit def fieldArrayToMatrixFieldArray(a: Array[cogx.compiler.parser.syntaxtree.Field]): Array[cogx.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
  423. implicit def fieldArrayToScalarFieldArray(a: Array[cogx.compiler.parser.syntaxtree.Field]): Array[cogx.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
  424. implicit def fieldArrayToVectorFieldArray(a: Array[cogx.compiler.parser.syntaxtree.Field]): Array[cogx.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
  425. def fieldReduceMax(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  426. def fieldReduceMedian(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  427. def fieldReduceMin(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  428. def fieldReduceSum(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  429. implicit def fieldToColorField(f: cogx.compiler.parser.syntaxtree.Field): cogx.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
  430. implicit def fieldToComplexField(f: cogx.compiler.parser.syntaxtree.Field): cogx.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
  431. implicit def fieldToComplexVectorField(f: cogx.compiler.parser.syntaxtree.Field): cogx.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
  432. implicit def fieldToMatrixField(f: cogx.compiler.parser.syntaxtree.Field): cogx.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
  433. implicit def fieldToScalarField(f: cogx.compiler.parser.syntaxtree.Field): cogx.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
  434. implicit def fieldToVectorField(f: cogx.compiler.parser.syntaxtree.Field): cogx.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
  435. package fields

    Permalink
  436. def flip(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  437. 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
  438. implicit def floatToComplex(d: Float): cogx.cogmath.algebra.complex.Complex

    Permalink

    Float --> Complex

    Float --> Complex

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

    Permalink

    Implicitly convert a float to an expression.

    Implicitly convert a float to an expression.

    Definition Classes
    UserGPULibrary
  440. package floatmath

    Permalink
  441. def floor(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  442. def forwardGradient(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  443. def hashCode(): Int

    Permalink
    Definition Classes
    Any
  444. def imaginaryPart(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  445. implicit def intToComplex(i: Int): cogx.cogmath.algebra.complex.Complex

    Permalink

    Int --> Complex

    Int --> Complex

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

    Permalink

    Implicitly convert an int to an expression.

    Implicitly convert an int to an expression.

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

    Permalink

    Declare an internal error described by message.

    Declare an internal error described by message.

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

    Permalink
    Definition Classes
    Any
  449. def log(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  450. def magnitude(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  451. def matrixField(fields: Array[Array[cogx.compiler.parser.syntaxtree.Field]]): cogx.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
  452. def matrixField(fields: Array[Array[cogx.compiler.parser.syntaxtree.ScalarField]]): cogx.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
  453. def matrixField(fields: Array[cogx.compiler.parser.syntaxtree.VectorField]): cogx.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
  454. def matrixField(fields: cogx.compiler.parser.syntaxtree.VectorField*): cogx.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
  455. def matrixRow(field: cogx.compiler.parser.syntaxtree.Field, index: Int): cogx.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
  456. def max(field: cogx.compiler.parser.syntaxtree.Field, f2: cogx.compiler.parser.syntaxtree.Field): cogx.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
  457. def max(field: cogx.compiler.parser.syntaxtree.Field, value: Float): cogx.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
  458. def min(field: cogx.compiler.parser.syntaxtree.Field, f2: cogx.compiler.parser.syntaxtree.Field): cogx.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
  459. def min(field: cogx.compiler.parser.syntaxtree.Field, value: Float): cogx.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
  460. def normalizeL1(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  461. def normalizeL2(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  462. def phase(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  463. def platformDescription: String

    Permalink
    Definition Classes
    CogXInterface
  464. def polarComplex(magnitude: cogx.compiler.parser.syntaxtree.Field, phase: cogx.compiler.parser.syntaxtree.Field): cogx.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
  465. def pow(field: cogx.compiler.parser.syntaxtree.Field, that: Float): cogx.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
  466. def pow(field: cogx.compiler.parser.syntaxtree.Field, that: Int): cogx.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 probe(fields: cogx.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
  468. def probe(field: cogx.compiler.parser.syntaxtree.Field, userName: String = null): cogx.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
  469. def projectFrame(field: cogx.compiler.parser.syntaxtree.Field, filter: cogx.compiler.parser.syntaxtree.Field, borderPolicy: cogx.platform.types.BorderPolicy, samplingPolicy: cogx.platform.types.ConvolutionSamplingPolicy = NoSamplingConvolution, batchSize: Int = 1): cogx.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
  470. def random(field: cogx.compiler.parser.syntaxtree.Field, bits: Int): cogx.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
  471. def realPart(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  472. def reciprocal(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  473. def reduceMax(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  474. def reduceMin(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  475. def reduceSum(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  476. def replicate(field: cogx.compiler.parser.syntaxtree.Field, shape: cogx.cogmath.geometry.Shape): cogx.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
  477. def reshape(field: cogx.compiler.parser.syntaxtree.Field, fieldShape: cogx.cogmath.geometry.Shape, tensorShape: cogx.cogmath.geometry.Shape, checkLegacyReshape: Boolean = Cog.checkLegacyReshape): cogx.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
  478. def reshape(field: cogx.compiler.parser.syntaxtree.Field, size: Int*): cogx.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
  479. def reverseCrossDot(field: cogx.compiler.parser.syntaxtree.Field, f2: cogx.compiler.parser.syntaxtree.Field): cogx.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
  480. def select[T <: cogx.compiler.parser.syntaxtree.Field](fields: Array[T], index: cogx.compiler.parser.syntaxtree.Field): cogx.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
  481. def shift(field: cogx.compiler.parser.syntaxtree.Field, rowShift: Int, colShift: Int): cogx.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
  482. def shift(field: cogx.compiler.parser.syntaxtree.Field, colShift: Int): cogx.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
  483. def shiftCyclic(field: cogx.compiler.parser.syntaxtree.Field, rowShift: Int, colShift: Int): cogx.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
  484. def shiftCyclic(field: cogx.compiler.parser.syntaxtree.Field, colShift: Int): cogx.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
  485. def signum(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  486. def sin(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  487. def sinh(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  488. def solve(field: cogx.compiler.parser.syntaxtree.Field, b: cogx.compiler.parser.syntaxtree.Field): cogx.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
  489. def sq(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  490. def sqrt(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  491. def stack[T <: cogx.compiler.parser.syntaxtree.Field](fields: Array[T]): cogx.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
  492. def stack(fields: cogx.compiler.parser.syntaxtree.Field*): cogx.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 subfield(field: cogx.compiler.parser.syntaxtree.Field, guide: cogx.compiler.parser.syntaxtree.Field, shape: cogx.cogmath.geometry.Shape, border: cogx.platform.types.BorderPolicy = BorderClamp): cogx.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
  494. def subfields(field: cogx.compiler.parser.syntaxtree.Field, diameter: Int): cogx.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
  495. def supersample(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  496. def tan(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  497. def tanh(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  498. def toColorField(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  499. def toComplexField(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  500. def toComplexVectorField(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  501. def toGenericComplexField(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  502. def toMatrixField(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  503. 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
  504. def toScalarField(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  505. def toString(): String

    Permalink
    Definition Classes
    Any
  506. def toVectorField(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  507. def transform(field: cogx.compiler.parser.syntaxtree.Field, f2: cogx.compiler.parser.syntaxtree.Field): cogx.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
  508. def transpose(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  509. def transposeMatrices(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  510. def transposeVectors(field: cogx.compiler.parser.syntaxtree.Field): cogx.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
  511. def trim(field: cogx.compiler.parser.syntaxtree.Field, resultShape: cogx.cogmath.geometry.Shape): cogx.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
  512. def upsample(field: cogx.compiler.parser.syntaxtree.Field, factor: Int = 2, phase: Int = 0): cogx.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
  513. def vectorElement(field: cogx.compiler.parser.syntaxtree.Field, index: Int): cogx.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
  514. def vectorElements(field: cogx.compiler.parser.syntaxtree.Field, indices: cogx.compiler.parser.syntaxtree.Field): cogx.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
  515. def vectorField(field: cogx.compiler.parser.syntaxtree.ColorField): cogx.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
  516. def vectorField(fields: Array[cogx.compiler.parser.syntaxtree.Field]): cogx.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
  517. def vectorField(fields: Array[cogx.compiler.parser.syntaxtree.ScalarField]): cogx.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
  518. def vectorField(fields: cogx.compiler.parser.syntaxtree.ScalarField*): cogx.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. implicit def vectorTo0DVectorField(v: cogx.cogmath.algebra.real.Vector): cogx.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
  520. def warp(field: cogx.compiler.parser.syntaxtree.Field, guide: cogx.compiler.parser.syntaxtree.Field, border: cogx.platform.types.BorderPolicy = BorderClamp): cogx.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
  521. def winnerTakeAll(field: cogx.compiler.parser.syntaxtree.Field): cogx.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: cogx.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: cogx.compiler.parser.syntaxtree.Field, spatialFilter: cogx.cogmath.algebra.real.Matrix, rangeSigma: Float): cogx.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: cogx.compiler.parser.syntaxtree.Field): cogx.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: cogx.compiler.parser.syntaxtree.Field): cogx.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: cogx.compiler.parser.syntaxtree.Field, domainTransform: cogx.compiler.parser.syntaxtree.ScalarField, boxFilterRadius: Float): cogx.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: cogx.compiler.parser.syntaxtree.Field, domainTransform: cogx.compiler.parser.syntaxtree.Field, boxFilterRadius: Float): cogx.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: cogx.compiler.parser.syntaxtree.Field, spaceSigma: Float, rangeSigma: Float): cogx.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: cogx.compiler.parser.syntaxtree.Field): cogx.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: cogx.compiler.parser.syntaxtree.Field, neighborhood: cogx.cogmath.algebra.real.Matrix): cogx.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: cogx.compiler.parser.syntaxtree.Field, neighborhood: cogx.cogmath.algebra.real.Matrix): cogx.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: cogx.compiler.parser.syntaxtree.Field, neighborhood: cogx.cogmath.algebra.real.Matrix): cogx.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: cogx.compiler.parser.syntaxtree.Field, neighborhood: cogx.cogmath.algebra.real.Matrix): cogx.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: cogx.compiler.parser.syntaxtree.Field): cogx.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: cogx.compiler.parser.syntaxtree.Field): cogx.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: cogx.compiler.parser.syntaxtree.Field): cogx.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: cogx.compiler.parser.syntaxtree.Field, orientation: cogx.compiler.parser.syntaxtree.Field): cogx.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 CogXInterface

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