search for: numberofelements

Displaying 2 results from an estimated 2 matches for "numberofelements".

Did you mean: numberofelement
2012 Mar 03
1
Sliding Window in R (solved)
...out <- numeric()   elements<- numeric()   if (length(data[,1]) >= windowSize){       for (i in 1:(length(data[,1]) - windowSize +1  )) {         out[i] <- mean(data[i:(i + windowSize - 1), ])         elements[i]<-length(i:(i + windowSize - 1))       }   }   return (list(result=out , numberOfElements=elements, windowSize=windowSize )) } do_sliding_for_a_window_duty_cycle_alternative <- function(DataToAnalyse, windowSize) {     result= runmean(rowMeans(DataToAnalyse),windowSize,endrule="trim",alg="C")     return( list(result= result, windowSize=windowSize)) } DataTo...
2018 Jan 09
2
Passing Array base address/pointer to runtime function in LLVM IR
Hello LLVM, I am a beginner in LLVM My Goal is to initialize array element with random values. llvm::Type *i32_type = llvm::IntegerType::getInt32Ty(allocaInst->getContext()); llvm::Value *value = llvm::ConstantInt::get(i32_type, numberOfElement); args.push_back(getElementPtrInst->getPointerOperand()); args.push_back(value); callInst =