Search:

Type: Posts; User: kjohansen; Keyword(s):

Page 1 of 10 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    1
    Views
    1,791

    SAS Append in Data step

    I dont know if there are any SAS people here but...

    If I have something like the below which reads all files in a directory and makes a data set out of it. But each file has observations for the...
  2. Re: Is there a system call other than 'open' for opening very large files?

    look at the bottom of this page for compiling instructions:

    http://coding.debuntu.org/c-handling-large-files-2g-standard-c
  3. Replies
    11
    Views
    1,932

    Re: Text replacement algorithm

    there are more efficient string searching algorithms than pure brute force, things like knuth-morris-pratt, and boyer-moore...

    they basically work by knowing after a miss where the next possible...
  4. Replies
    1
    Views
    320

    Re: Will people switch to OpenCL

    As a current CUDA user I know I am looking into OpenCL.

    NVIDIA is very close to releasing final support, I believe the estimate is within the year.

    Feature I like the most over CUDA: JIT...
  5. Thread: Flubuntu

    by kjohansen
    Replies
    7
    Views
    2,058

    Re: Flubuntu

    I was thinking the same thing.

    Is it a UI to an install running on a server somewhere, or is it going to be run locally? I think this is what virtual machines exist for.
  6. Replies
    6
    Views
    952

    Re: noob needs help compiling for c++

    if you open a terminal in your home file you can type:



    g++ filename.cpp -o filename


    This assumes that you have build-essetials installed.
  7. Re: Robust/Ultimate CamelCase method - string algorithms

    what about words that are made up from two words?

    racecar, pineapple, angel, heart...

    there is no way to have a completely robust solution...
  8. Re: Looking for Java Library with Normalization Functions

    to do a z transform you do not need to do a linear scale first.

    you simply do

    [x-E(x)]/stdev(x).

    So you need to calculate the mean and the standard deviaiton of the samples, and then from...
  9. Replies
    11
    Views
    1,138

    Re: programming with threads

    openmp is also very easy to work with...
  10. Replies
    4
    Views
    8,427

    Re: Matrix Inversion on CUDA

    I am doing a low rank decomposition of a kernel matrix.

    The decomposition becomes k_hat=k_lm*(k_mm)^-1*k_ml.

    The idea is that k is too large to fit into the GPU memory, thus I can store three...
  11. Replies
    5
    Views
    339

    Re: Basic C++ help

    You have more close "}" than you have open "{".

    so you end the main function and then have more lines of code that are not in any function. you also need "<<" before the endls



    Functioning...
  12. Replies
    4
    Views
    8,427

    Matrix Inversion on CUDA

    I need to find the inverso of a dense symmetric semipositive definite matrix on the GPU using CUDA.

    There is a lot of literature out there from suggesting cholseky or LU decompositions to Lanzcos...
  13. Replies
    12
    Views
    716

    Re: Conditional Formatting

    not in html...

    you could write a javascript function to read through the table and check the condition.
  14. Re: ow to install intel C++ compiler in Ubuntu 8.04

    That is for g++ the poster wants icc

    http://crazyprogrammerblog.blogspot.com/2008/11/install-intel-compilericc-in-ubuntu-810.html
  15. Replies
    3
    Views
    288

    Re: Function pointers

    Try getting rid of the * in "*array[0]()"




    typedef void (*ptr2fn) ();

    void func_1() {
    }
  16. Replies
    6
    Views
    621

    Re: Job Hunting Question

    if they are word for word the same, i would assume they copied the posting from the actual company and are trying to get a commision. search for specific parts of the listing and see if you can find...
  17. Replies
    3
    Views
    12,049

    Makefile says always up to date

    I have this makefile



    legion.o:
    g++ LEGION.h legion_glut.cpp -lglut -o legion.o
    clean:
    rm legion.o
  18. Re: c++ code to count the number of rows and coloumns

    unless you have delimiters in the text file you cant do it. How do I know if 101010 is 1,0,1,0,1,0, or 10,10,10 or 101,010, or you get the point. You will need to store the file with commas or...
  19. Replies
    2
    Views
    316

    Re: Default template parameters

    Problem: I was modifying an exisiting class that had a header and an implementation file. Template classes cannot have separate implementation files...
  20. Replies
    2
    Views
    316

    Default template parameters

    EDIT:When I break this down into a small test it seems to work, so it must be some other part of the code I am working on....


    I came...
  21. Thread: G++ formulas

    by kjohansen
    Replies
    9
    Views
    850

    Re: G++ formulas

    Not to be rude, but you could have easily searched for your answer...




    #include <cmath>


    ....
    float myvar=some value;
  22. Replies
    5
    Views
    355

    Re: Neural Nets in python

    Prediction is an easier step than training.

    Are you using backpropagation for training or something else? If you are using backpropagation for training, the first half of the training is the code...
  23. Replies
    4
    Views
    534

    Re: Parametric Fireworks?

    Processing is a cross platform language that makes for easy visualization... There are some good tutorials at processing.org.
  24. Replies
    6
    Views
    825

    Re: Reading file backwards in Java

    why not just read the whole text file into an array of lines or some other container and then you can easily go back in forth in an array or a vector or whatever...
  25. Replies
    9
    Views
    1,006

    Re: Java dictionary lookups

    you should read in the text file and have it build the map... there is no need to type each one out...
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4