-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
go = nFunction(
fun = function() {
y <- rbeta(1,1,1)[1]
return(y)
},
returnType = 'numericScalar'
)
cgo <- nCompile(go)
nCompiler_units_12.cpp:26:114: error: no match for ‘operator[]’ (operand types are ‘recyclingGenerator<double(double, double), double, Eigen::Tensor<double, 1>, Eigen::Tensor<double, 1, 0, long int> >::GeneratorXprType’ {aka ‘Eigen::TensorCwiseRecyclingFunctorOp<double(double, double), Eigen::TensorCwiseRecyclingOp<Eigen::Tensor<double, 1>, Eigen::TensorMap<Eigen::Tensor<double, 1> > >, Eigen::TensorCwiseRecyclingOp<Eigen::Tensor<double, 1, 0, long int>, Eigen::TensorMap<Eigen::Tensor<double, 1, 0, long int>, 0, Eigen::MakePointer> > >’} and ‘long int’)
26 | flex_(y) = nCompiler::tensorArgDist::rbeta(1.0, createTensor<double, 1>(1.0, 1), createTensor<double, 1>(1.0, 1))[(static_cast<long>(1.0)) - 1];
| ^
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels