Create an actuator for an nD scalar field source
whose update callback
function takes an Iterator[Float] as an argument.
Create an actuator for an nD scalar field source
whose update callback
function takes an Iterator[Float] as an argument.
Init supplied: NO Reset supplied: YES
Some extra implicit arg had to added here to disambiguate this constructor's signature from the above-seen:
apply(source: Field, update: ScalarFieldReaderFunc, resetHook: () => Unit)
The field to written output to an array each clock cycle.
A callback function that is called after each new value is available.
An callback function that is called upon reset.
An actuator that writes source
to output
each cycle.
Create an actuator for an nD scalar field source
whose update callback
function takes a ScalarFieldReader as an argument.
Create an actuator for an nD scalar field source
whose update callback
function takes a ScalarFieldReader as an argument.
Init supplied: NO Reset supplied: YES
The field to written output to an array each clock cycle.
A callback function that is called after each new value is available.
An callback function that is called upon reset.
An actuator that writes source
to output
each cycle.
Create an actuator for an nD scalar field source
whose target can be
a function(ScalarFieldReader), function(Iterator[Float]) or an nD array of Floats.
Create an actuator for an nD scalar field source
whose target can be
a function(ScalarFieldReader), function(Iterator[Float]) or an nD array of Floats.
Init supplied: NO Reset supplied: NO
The field to written output to an array each clock cycle.
Receiver of the data, a function of a ScalarFieldReader or Iterator[Float].
An actuator that writes source
to output
each cycle.
Create an actuator for a 3D scalar field source
that writes the
output of that field to the array output
which the user can access.
Create an actuator for a 3D scalar field source
that writes the
output of that field to the array output
which the user can access.
Init supplied: NO Reset supplied: YES
The field to written output to an array each clock cycle.
The output array where field is written.
An optional callback function that is called upon reset.
An actuator that writes source
to output
each cycle.
Create an actuator for a 3D scalar field source
that writes the
output of that field to the array output
which the user can access.
Create an actuator for a 3D scalar field source
that writes the
output of that field to the array output
which the user can access.
Init supplied: YES Reset supplied: NO
The field to written output to an array each clock cycle.
Receiver of the data, either an Array[ Array[ Array[Float] ] ] or function of a ScalarFieldReader.
Function providing initial values upon reset.
An actuator that writes source
to output
each cycle.
Create an actuator for a 3D scalar field source
that writes the
output of that field to the array output
which the user can access.
Create an actuator for a 3D scalar field source
that writes the
output of that field to the array output
which the user can access.
Init supplied: YES Reset supplied: YES
The use of TypeTag's here was used to coerce what would have been two distinct apply() method signatures into one. The problem with having two signatures is that the Scala compiler then started refusing to convert fairly generic init function actual arguments of the form (say):
(l,r,c) => l + r + c
into the required Function3[Int,Int,Int,Float] type, requiring the user to instead write:
(l:Int, r:Int, c:Int) => (l + r + c).toFloat
Rather than break the existing codebase, we put up with the fact that the type checking on the target parameter is now done at runtime, rather than at compile time.
The field to written output to an array each clock cycle.
Receiver of the data, either an Array[ Array[ Array[Float] ] ] or function of a ScalarFieldReader.
Function providing initial values upon reset.
An optional callback function that is called upon reset.
An actuator that writes source
to output
each cycle.
Create an actuator for a 2D scalar field source
that writes the
output of that field to the array output
which the user can access.
Create an actuator for a 2D scalar field source
that writes the
output of that field to the array output
which the user can access.
The actuator outputs 0's upon reset.
Init supplied: NO Reset supplied: YES
The field to written output to an array each clock cycle.
The output array where field is written.
An optional callback function that is called upon reset.
An actuator that writes source
to output
each cycle.
Create an actuator for a 2D scalar field source
that invokes a
callback function 'update' that is passed a ScalarFieldReader.
Create an actuator for a 2D scalar field source
that invokes a
callback function 'update' that is passed a ScalarFieldReader.
Init supplied: YES Reset supplied: NO
The field to written output to an array each clock cycle.
Receiver of the data, either an Array[ Array[Float] ] or function of a ScalarFieldReader.
Function providing initial value upon reset.
An actuator that writes source
to output
each cycle.
Create an actuator for a 2D scalar field source
that invokes a
callback function 'update' that is passed a ScalarFieldReader.
Create an actuator for a 2D scalar field source
that invokes a
callback function 'update' that is passed a ScalarFieldReader.
Init supplied: YES Reset supplied: YES
The use of TypeTag's here was used to coerce what would have been two distinct apply() method signatures into one. The problem with having two signatures is that the Scala compiler then started refusing to convert fairly generic init function actual arguments of the form (say):
(r,c) => r + c
into the required Function2[Int,Int,Float] type, requiring the user to instead write:
(r:Int, c:Int) => (r + c).toFloat
Rather than break the existing codebase, we put up with the fact that the type checking on the target parameter is now done at runtime, rather than at compile time.
The field to written output to an array each clock cycle.
Receiver of the data, either an Array[ Array[Float] ] or function of a ScalarFieldReader.
Function providing initial value upon reset.
An actuator that writes source
to output
each cycle.
Create an actuator for a 0D or 1D scalar field source
that writes the
output of that field to the array output
which the user can access.
Create an actuator for a 0D or 1D scalar field source
that writes the
output of that field to the array output
which the user can access.
The actuator outputs 0's upon reset.
Init supplied: NO Reset supplied: YES
Some extra implicit arg had to added here to disambiguate this constructor's signature from the above-seen:
apply(source: Field, output: Array[Float], init: () => Float)
The field to be written to an array each clock cycle.
The output array where field is written.
An optional callback function that is called upon reset.
An actuator that writes source
to output
each cycle.
Create an actuator for a 1D scalar field source
that writes the
output of that field to the array output
which the user can access.
Create an actuator for a 1D scalar field source
that writes the
output of that field to the array output
which the user can access.
Init supplied: YES Reset supplied: NO
The field to be written to an array each clock cycle.
Receiver of the data, either an Array[Float] or function of a ScalarFieldReader.
Function providing initial values upon reset.
An actuator that writes source
to output
each cycle.
Create an actuator for a 1D scalar field source
that writes the
output of that field to the array output
which the user can access.
Create an actuator for a 1D scalar field source
that writes the
output of that field to the array output
which the user can access.
Init supplied: YES Reset supplied: YES
The use of TypeTag's here was used to coerce what would have been two distinct apply() method signatures into one. The problem with having two signatures is that the Scala compiler then started refusing to convert fairly generic init function actual arguments of the form (say):
(c) => c + 1
into the required Function1[Int,Float] type, requiring the user to instead write:
(c:Int) => c + 1f
The field to be written to an array each clock cycle.
Receiver of the data, either an Array[Float] or function of a ScalarFieldReader.
Function providing initial values upon reset.
An optional callback function that is called upon reset.
An actuator that writes source
to output
each cycle.
Create an actuator for a 0D scalar field source
that writes the
output of that field to the array output
which the user can access.
Create an actuator for a 0D scalar field source
that writes the
output of that field to the array output
which the user can access.
Init supplied: YES (supplied as Float) Reset supplied: NO
The field to be written to an array each clock cycle.
Receiver of the data, either an Array[Array[Float] or function of a ScalarFieldReader.
Initial value upon reset.
An actuator that writes source
to output
each cycle.
Create an actuator for a 0D scalar field source
that writes the
output of that field to the array output
which the user can access.
Create an actuator for a 0D scalar field source
that writes the
output of that field to the array output
which the user can access.
Init supplied: YES (supplied as Float) Reset supplied: YES
The field to be written to an array each clock cycle.
Receiver of the data, either an Array[Float] or function of a ScalarFieldReader.
Initial value upon reset.
An optional callback function that is called upon reset.
An actuator that writes source
to output
each cycle.
Create an actuator for a 0D scalar field source
that writes the
output of that field to the array output
which the user can access.
Create an actuator for a 0D scalar field source
that writes the
output of that field to the array output
which the user can access.
Init supplied: YES Reset supplied: NO
The field to be written to an array each clock cycle.
Receiver of the data, either an Array[Array[Float] or function of a ScalarFieldReader.
Function providing initial value upon reset.
An actuator that writes source
to output
each cycle.
Create an actuator for a 0D scalar field source
that writes the
output of that field to the array output
which the user can access.
Create an actuator for a 0D scalar field source
that writes the
output of that field to the array output
which the user can access.
Init supplied: YES (supplied as () => Float) Reset supplied: YES
The use of TypeTag's here was used to coerce what would have been two distinct apply() method signatures into one. The problem with having two signatures is that the Scala compiler then started refusing to convert fairly generic init function actual arguments of the form (say):
() => 1
into the required Function0[Float] type, requiring the user to instead write:
() => 1f
The field to be written to an array each clock cycle.
Receiver of the data, either an Array[Float] or function of a ScalarFieldReader.
Function providing initial value upon reset.
An optional callback function that is called upon reset.
An actuator that writes source
to output
each cycle.
Declare an internal error described by message
.
Declare an internal error described by message
.
Create an actuator "update" function that takes a ScalarFieldReader and returns Unit.
Create an actuator "update" function that takes a ScalarFieldReader and returns Unit.
The field supplying the data seen by the Actuator.
Receiver of the data, either an nD Float Array or function of a ScalarFieldReader.
The update function
Adapter useful in expanding the functionality of Actuators.
Adapter useful in expanding the functionality of Actuators. Originally, the Actuator update() was a user function that would take an Iterator[Float]. To enable bulk copies of the Actuator data to a user Array[Float], the callback has been generalized from an Iterator[Float] to a ScalarFieldReader (from which one can extract an iterator if one wants, or invoke the bulk copier function get()).
This wrapper converts the legacy 'update' function signature to the current more capable one.
Old style form of update() that takes an Iterator[Float]
new style form of update() that takes a ScalarFieldReader
Create a ConstantScalarOp that inits the field to all zeros.
Factory for creating actuators that write fields to Scala arrays.