search for: indexvec

Displaying 3 results from an estimated 3 matches for "indexvec".

2003 Nov 21
2
[LLVMdev] Need Help With Verifier
...GetElementPtrInst* StackerCompiler::get_stack_pointer( BasicBlock* bb ) { LoadInst* loadop = new LoadInst( TheIndex ); bb->getInstList().push_back( loadop ); std::vector<Value*> indexVec; // Index vector indexVec.push_back(loadop); // Insert single index GetElementPtrInst* gep = new GetElementPtrInst( TheStack, indexVec ); bb->getInstList().push_back( gep ); // Put GEP in Block return gep; } void StackerCompiler::push_integer(Bas...
2003 Nov 21
0
[LLVMdev] Need Help With Verifier
...t; > 1. Load the integer stack index (LoadInst) > 2. Increment the index (Add BinaryOperator) > 3. Get the address of the stack element at that index (GEP) > 4. Store the value 1 at that address (StoreInst). Yup, that sounds good. > std::vector<Value*> indexVec; // Index vector > indexVec.push_back(loadop); // Insert single index > GetElementPtrInst* gep = new GetElementPtrInst( > TheStack, indexVec ); > bb->getInstList().push_back( gep ); // Put GEP in Block This is the problem. The deal here is...
2011 Sep 30
2
remove elements from matrix
Dear all, I have a numeric vector that contains indices. I also have two matrices of [1,m] dimension and of [m,n] dimension. I want for every indexto remove the current element from the [1,m] vector an the row from the [m,n] matrix. How I can do that efficiently in R? So to say not have a for loop getting parameter after parameter and then removing row by row from the vector and the matrix. I