## Uses of Class
org.apache.sysds.runtime.instructions.cp.ScalarObject

Packages that use ScalarObject
org.apache.sysds.api.jmlc
org.apache.sysds.api.mlcontext
org.apache.sysds.hops.rewrite
org.apache.sysds.runtime.codegen
org.apache.sysds.runtime.compress
org.apache.sysds.runtime.controlprogram
org.apache.sysds.runtime.controlprogram.context
org.apache.sysds.runtime.controlprogram.federated
org.apache.sysds.runtime.instructions.cp
org.apache.sysds.runtime.instructions.gpu
org.apache.sysds.runtime.lineage
org.apache.sysds.runtime.matrix.data
org.apache.sysds.runtime.privacy.propagation
org.apache.sysds.runtime.util

### Uses of ScalarObject in org.apache.sysds.api.jmlc

Methods in org.apache.sysds.api.jmlc that return ScalarObject
`ScalarObject` ResultVariables.`getScalarObject(String varname)` Obtain the ScalarObject represented by the given output variable.

Methods in org.apache.sysds.api.jmlc with parameters of type ScalarObject
`void` PreparedScript.`setScalar(String varname, ScalarObject scalar, boolean reuse)` Binds a scalar object to a registered input variable.

### Uses of ScalarObject in org.apache.sysds.api.mlcontext

Methods in org.apache.sysds.api.mlcontext that return ScalarObject
`ScalarObject` MLResults.`getScalarObject(String outputName)` Obtain an output as a `Scalar` object.

### Uses of ScalarObject in org.apache.sysds.hops.rewrite

Methods in org.apache.sysds.hops.rewrite that return ScalarObject
`static ScalarObject` HopRewriteUtils.`getScalarObject(LiteralOp op)`

### Uses of ScalarObject in org.apache.sysds.runtime.codegen

Methods in org.apache.sysds.runtime.codegen that return ScalarObject
`ScalarObject` SpoofOperator.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalars)`
`ScalarObject` SpoofOuterProduct.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalarObjects)`
`ScalarObject` SpoofRowwise.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalarObjects, int k)`
`ScalarObject` SpoofOperator.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalars, int k)`
`ScalarObject` SpoofOuterProduct.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalarObjects, int numThreads)`
`ScalarObject` SpoofCellwise.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalarObjects, int k)`
`ScalarObject` SpoofCellwise.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalarObjects, int k, long rix)`
`ScalarObject` SpoofCUDARowwise.`execute(ExecutionContext ec, ArrayList<MatrixObject> inputs, ArrayList<ScalarObject> scalarObjects)`
`ScalarObject` SpoofCUDACellwise.`execute(ExecutionContext ec, ArrayList<MatrixObject> inputs, ArrayList<ScalarObject> scalarObjects)`
`ScalarObject` SpoofCUDAOperator.`execute(ExecutionContext ec, ArrayList<MatrixObject> inputs, ArrayList<ScalarObject> scalarObjects)`

Method parameters in org.apache.sysds.runtime.codegen with type arguments of type ScalarObject
`abstract int` SpoofCUDAOperator.PrecisionProxy.`exec(ExecutionContext ec, SpoofCUDAOperator op, int opID, long[] in, long[] sides, long[] out, ArrayList<ScalarObject> scalarObjects, long grix)`
`ScalarObject` SpoofOperator.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalars)`
`ScalarObject` SpoofOuterProduct.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalarObjects)`
`ScalarObject` SpoofRowwise.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalarObjects, int k)`
`ScalarObject` SpoofOperator.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalars, int k)`
`ScalarObject` SpoofOuterProduct.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalarObjects, int numThreads)`
`ScalarObject` SpoofCellwise.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalarObjects, int k)`
`ScalarObject` SpoofCellwise.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalarObjects, int k, long rix)`
`MatrixBlock` SpoofRowwise.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalarObjects, MatrixBlock out)`
`abstract MatrixBlock` SpoofOperator.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalars, MatrixBlock out)`
`MatrixBlock` SpoofMultiAggregate.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalarObjects, MatrixBlock out)`
`MatrixBlock` SpoofOuterProduct.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalarObjects, MatrixBlock out)`
`MatrixBlock` SpoofCellwise.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalarObjects, MatrixBlock out)`
`MatrixBlock` SpoofRowwise.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalarObjects, MatrixBlock out, boolean allocTmp, boolean aggIncr, long rix)`
`MatrixBlock` SpoofRowwise.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalarObjects, MatrixBlock out, int k)`
`MatrixBlock` SpoofOperator.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalars, MatrixBlock out, int k)`
`MatrixBlock` SpoofMultiAggregate.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalarObjects, MatrixBlock out, int k)`
`MatrixBlock` SpoofOuterProduct.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalarObjects, MatrixBlock out, int numThreads)`
`MatrixBlock` SpoofCellwise.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalarObjects, MatrixBlock out, int k)`
`MatrixBlock` SpoofMultiAggregate.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalarObjects, MatrixBlock out, int k, long rix)`
`MatrixBlock` SpoofCellwise.`execute(ArrayList<MatrixBlock> inputs, ArrayList<ScalarObject> scalarObjects, MatrixBlock out, int k, long rix)`
`ScalarObject` SpoofCUDARowwise.`execute(ExecutionContext ec, ArrayList<MatrixObject> inputs, ArrayList<ScalarObject> scalarObjects)`
`ScalarObject` SpoofCUDACellwise.`execute(ExecutionContext ec, ArrayList<MatrixObject> inputs, ArrayList<ScalarObject> scalarObjects)`
`ScalarObject` SpoofCUDAOperator.`execute(ExecutionContext ec, ArrayList<MatrixObject> inputs, ArrayList<ScalarObject> scalarObjects)`
`MatrixObject` SpoofCUDARowwise.`execute(ExecutionContext ec, ArrayList<MatrixObject> inputs, ArrayList<ScalarObject> scalarObjects, String outputName)`
`MatrixObject` SpoofCUDACellwise.`execute(ExecutionContext ec, ArrayList<MatrixObject> inputs, ArrayList<ScalarObject> scalarObjects, String outputName)`
`MatrixObject` SpoofCUDAOperator.`execute(ExecutionContext ec, ArrayList<MatrixObject> inputs, ArrayList<ScalarObject> scalarObjects, String outputName)`

### Uses of ScalarObject in org.apache.sysds.runtime.compress

Methods in org.apache.sysds.runtime.compress with parameters of type ScalarObject
`MatrixBlock` CompressedMatrixBlock.`leftIndexingOperations(ScalarObject scalar, int rl, int cl, MatrixBlock ret, MatrixObject.UpdateType update)`

### Uses of ScalarObject in org.apache.sysds.runtime.controlprogram

Methods in org.apache.sysds.runtime.controlprogram that return ScalarObject
`ScalarObject` ProgramBlock.`executePredicate(ArrayList<Instruction> inst, Hop hops, boolean requiresRecompile, Types.ValueType retType, ExecutionContext ec)` Executes given predicate instructions (incl recompilation if required)

### Uses of ScalarObject in org.apache.sysds.runtime.controlprogram.context

Methods in org.apache.sysds.runtime.controlprogram.context that return ScalarObject
`ScalarObject` ExecutionContext.`getScalarInput(CPOperand input)`
`ScalarObject` ExecutionContext.`getScalarInput(String name, Types.ValueType vt, boolean isLiteral)`

Methods in org.apache.sysds.runtime.controlprogram.context that return types with arguments of type ScalarObject
`List<ScalarObject>` ExecutionContext.`getScalarInputs(CPOperand[] inputs)`

Methods in org.apache.sysds.runtime.controlprogram.context with parameters of type ScalarObject
`void` ExecutionContext.`setScalarOutput(String varName, ScalarObject so)`

### Uses of ScalarObject in org.apache.sysds.runtime.controlprogram.federated

Methods in org.apache.sysds.runtime.controlprogram.federated that return ScalarObject
`static ScalarObject` FederationUtils.`aggScalar(AggregateUnaryOperator aop, Future<FederatedResponse>[] ffr)`
`static ScalarObject` FederationUtils.`aggScalar(AggregateUnaryOperator aop, Future<FederatedResponse>[] ffr, FederationMap map)`
`static ScalarObject` FederationUtils.`aggScalar(AggregateUnaryOperator aop, Future<FederatedResponse>[] ffr, Future<FederatedResponse>[] meanFfr, FederationMap map)`

Methods in org.apache.sysds.runtime.controlprogram.federated with parameters of type ScalarObject
`FederatedRequest` FederationMap.`broadcast(ScalarObject scalar)`

### Uses of ScalarObject in org.apache.sysds.runtime.instructions.cp

Subclasses of ScalarObject in org.apache.sysds.runtime.instructions.cp
`class` `BooleanObject`
`class` `DoubleObject`
`class` `IntObject`
`class` `StringObject`

Methods in org.apache.sysds.runtime.instructions.cp that return ScalarObject
`static ScalarObject` ScalarObjectFactory.`createScalarObject(LiteralOp lit)`
`static ScalarObject` ScalarObjectFactory.`createScalarObject(Types.ValueType vt, double value)`
`static ScalarObject` ScalarObjectFactory.`createScalarObject(Types.ValueType vt, LiteralOp lit)`
`static ScalarObject` ScalarObjectFactory.`createScalarObject(Types.ValueType vt, Object obj)`
`static ScalarObject` ScalarObjectFactory.`createScalarObject(Types.ValueType vt, ScalarObject so)`
`static ScalarObject` ScalarObjectFactory.`createScalarObject(Types.ValueType vt, String value)`
`ScalarObject` CPOperand.`getLiteral()`

Methods in org.apache.sysds.runtime.instructions.cp with parameters of type ScalarObject
`static DoubleObject` ScalarObjectFactory.`castToDouble(ScalarObject so)`
`static IntObject` ScalarObjectFactory.`castToLong(ScalarObject so)`
`static LiteralOp` ScalarObjectFactory.`createLiteralOp(ScalarObject so)`
`static LiteralOp` ScalarObjectFactory.`createLiteralOp(ScalarObject so, UnaryOp cast)`
`static ScalarObject` ScalarObjectFactory.`createScalarObject(Types.ValueType vt, ScalarObject so)`
`String` CPOperand.`getLineageLiteral(ScalarObject so)`
`void` CPOperand.`setLiteral(ScalarObject literal)`

Constructors in org.apache.sysds.runtime.instructions.cp with parameters of type ScalarObject
Constructor and Description
`CPOperand(ScalarObject so)`

### Uses of ScalarObject in org.apache.sysds.runtime.instructions.gpu

Method parameters in org.apache.sysds.runtime.instructions.gpu with type arguments of type ScalarObject
`int` SpoofCUDAInstruction.SinglePrecision.`exec(ExecutionContext ec, SpoofCUDAOperator op, int opID, long[] in, long[] sides, long[] out, ArrayList<ScalarObject> scalarObjects, long grix)`
`int` SpoofCUDAInstruction.DoublePrecision.`exec(ExecutionContext ec, SpoofCUDAOperator op, int opID, long[] in, long[] sides, long[] out, ArrayList<ScalarObject> scalarObjects, long grix)`

### Uses of ScalarObject in org.apache.sysds.runtime.lineage

Methods in org.apache.sysds.runtime.lineage that return ScalarObject
`ScalarObject` LineageCacheEntry.`getSOValue()`

Methods in org.apache.sysds.runtime.lineage with parameters of type ScalarObject
`void` LineageCacheEntry.`setValue(ScalarObject val, long computetime)`

Constructors in org.apache.sysds.runtime.lineage with parameters of type ScalarObject
Constructor and Description
`LineageCacheEntry(LineageItem key, Types.DataType dt, MatrixBlock Mval, ScalarObject Sval, long computetime)`

### Uses of ScalarObject in org.apache.sysds.runtime.matrix.data

Methods in org.apache.sysds.runtime.matrix.data with parameters of type ScalarObject
`MatrixBlock` MatrixBlock.`leftIndexingOperations(ScalarObject scalar, int rl, int cl, MatrixBlock ret, MatrixObject.UpdateType update)` Explicitly allow left indexing for scalars.
`static MatrixBlock` MatrixBlock.`naryOperations(Operator op, MatrixBlock[] matrices, ScalarObject[] scalars, MatrixBlock ret)`

### Uses of ScalarObject in org.apache.sysds.runtime.privacy.propagation

Constructors in org.apache.sysds.runtime.privacy.propagation with parameters of type ScalarObject
Constructor and Description
`ListRemovePropagator(ListObject list, PrivacyConstraint listPrivacyConstraint, ScalarObject removePosition, PrivacyConstraint removePositionPrivacyConstraint)`

### Uses of ScalarObject in org.apache.sysds.runtime.util

Methods in org.apache.sysds.runtime.util that return ScalarObject
`static ScalarObject` HDFSTool.`readScalarObjectFromHDFSFile(String fname, Types.ValueType vt)`