Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~5K People Reached
Favorite Forums
Favorite Tags
c++ x 13
java x 3
Member Avatar for onako

I store matrix entries in std::vector<double>, such that the reading is row by row. This means, for matrix 1 3 4 8 9 3 3 6 8 1 1 2 2 0 9 8 7 6 the std::vector<double> would have entries: {1,3,4,8,9,3,3,6,8,1,1,2,2,0,9,8,7,6}. To transpose the matrix I use the naive …

Member Avatar for princess cesxo
0
157
Member Avatar for onako

My file needs to be updated frequently, meaning that new data has to be appended, but in a very specific way. The following is the sample content of my "file.txt" (2 vectors of length 6): [code] 1 2 3 4 5 6 7 8 3 4 5 6 [/code] After …

Member Avatar for onako
0
159
Member Avatar for onako

I wonder whether there is a faster way (faster then the obvious one a=a*a) to square the content of a vector of floats. I remember that bit shifting could be used somehow, but I'm not sure whether this works for floats. Any suggestions on how to achieve this are welcome …

Member Avatar for NathanOliver
0
72
Member Avatar for onako

My templated function look as follows: [code] template <typename MatTypeOne, typename MatTypeTwo> void funct(MatTypeOne& m1, MatTypeTwo& m2) { //here I would need to check whether m1 and m2 are of the same "type", //meaning that MatTypeOne is the same as MatTypeTwo } [/code] What is the way to check whether …

Member Avatar for LordNemrod
0
112
Member Avatar for onako

I'm implementing an application that should decide whether to move computations to external memory, depending on RAM memory consumption. Is there a C++ function that computes my maximal RAM memory capacity, and the amount of currently consumed portion (in MB, perhaps). Any other suggestions on how to obtain these values …

Member Avatar for manojwali
0
286
Member Avatar for onako

My current c++ application is compiled by calling "make", and invoked by calling "./fileName.bin". Now, I want to add the functionality of cairo library into the application. Note that the the program written specifically for testing cairo (outside my application) is compiled by "g++ -o fileX $(pkg-config --cflags --libs cairo) …

Member Avatar for Stefano Mtangoo
0
127
Member Avatar for onako

After I performed some operations on the vector of structs, I need to free the memory. I suppose clear() will not be sufficient, but I'm not sure how to perform individual delete. [code] typedef std::vector<VertexRAM> VecVertexRAM; // definition of a vector of structs template <typename type> void freeFromMemory(std::vector<type>& myVec) { …

Member Avatar for mike_2000_17
0
4K
Member Avatar for onako

I store matrix entries in std::vector<double>, such that the reading is row by row. This means, for matrix 1 3 4 8 9 3 3 6 8 1 1 2 2 0 9 8 7 6 the std::vector<double> would have entries: {1,3,4,8,9,3,3,6,8,1,1,2,2,0,9,8,7,6}. To transpose the matrix I use the naive …

Member Avatar for jon.kiparsky
0
108