Programming :: C - Create 2 Vectors From 1 Matrix?
Mar 20, 2011
i did this code:
reads 1 matrix 2x2 and print!
Code:
# include <stdio.h>
int main()
{
int t, i, M[2][2];
int big[2];
[Code]....
Now i want to create 2 vectors:
1 vector: has the biggest number of every line on the matrix
2 vector: has the lowest number of every column on the matrix
View 1 Replies
ADVERTISEMENT
Apr 13, 2011
I just can't find... why is my code seg-faulting?
PHP Code:
/*
Code name: Assignment #7.
File name: slice.c
Program name: Matrix multiplication (parallel version).
Version: 1.
[Code]...
Is giving my a seg-fault right at the ending point where I do the final gather from the MASTER processor.
View 9 Replies
View Related
Jul 31, 2011
Dear Linux/c++/g++ programmers: the run result on my system, ubuntuLinux10.04(kernel2.6.35-25), gcc4.5.2 is not what book predict
source code
http://examples.oreilly.com/9780596007614/
11-28
11-29
11-24
#include "matrix.hpp"
[Code]...
View 13 Replies
View Related
Apr 30, 2010
I'm writing a command-line flash card program in Python. I've tried many existing applications, but none fit my specialized needs.
All of the words I'd like to study are manually added to a text file (study.txt). Each time the software is loaded, it checks for new words in that file and also compares them to a dictionary (a tab-separated file, dictionary.txt), and adds that to a matrix. The flash cards are thus automatically generated from study.txt and dictionary.txt.
Now, the software must manage lots of information about each word I'd like to study and add new information made while interacting with the program (such as when that word should be studied next).
That seems easy to put into a matrix. But what is the best way to put that information in a place where I can pull it back when I run the software tomorrow? Do I need to save the matrix to a CSV file, then convert the CSV file back to a matrix the next time the application is run?
View 1 Replies
View Related
Dec 8, 2010
This is one of the strangest problems I've run into while programming. Maybe there's just something wrong with my version of gcc or something.
The main problem comes at this point in the code:
Code:
po = makePoFromScorbotXYZPR(X, Y, Z, P, R);
h = makeHB2GFromPo(po);
printf("%le", *h[1][0]); //##################################### Here it has the right value
printf("%s", "
[Code].....
View 2 Replies
View Related
Feb 5, 2010
I need to control matrix 5x4 keypad, on a processor
i am doing by making one row low at a time, and keeping all other rows high,
by scaning coloums, the corresponding key value becomes low.
my problems is that it is taking much time to respond, like to make gpio
low to high and high to low...
View 1 Replies
View Related
May 26, 2011
I have a 10x2 matrix, I create said matrix and fill it one column with zeros and the other with ones, now when I print the matrix I get this:
column 1:
0,0,0,0,0,0,0,0,1,1
column 2:
1,1,1,1,1,1,1,1,1,1
The first two rows of the second column are being replaced into the last two rows of the first column, now I even checked in visual studio and it works fine there. A friend tried my code and he gets it even worse:
column 1:
0,0,0,0,1,1,1,1,1,1
column 2:
1,1,1,1,1,1,1,1,1,1
As far as I've seen it must be a problem with GCC, unfortunately I need to have this up and running in GCC no matter what.
[Code].....
View 6 Replies
View Related
Sep 2, 2010
I'm making a multimedia library to speedup vector and matrix computation. But I'm getting a strange error, in this code
[Code]....
View 4 Replies
View Related
Jan 29, 2011
I have a .txt file with the format
0.01
0.04
0.07
...
0.83
I am wanting to load this into octave and perform operations on the data.
[Code]...
View 2 Replies
View Related
Jun 26, 2011
In the following code, I am trying to define a matrix in CCS (which is equivalent to CSR for a symmetric matrix, right ?) in ARPACK++.
I have installed and patched ARPACK++. (The matrix is not sparse, but still it should not give an error)
[code]...
Why is this so ? I have checked the values of ia and ja by running intel MKl on the matrix to find the CSR (again, CSR=CCS for symmetric matrix, right ?--I am asking this because ARPACK++ uses CCS, not CSR), and the values are the same. Is this some problem of 0 and 1 indexing ? Does ARPACK++ use 1 indexing?
View 1 Replies
View Related
Aug 11, 2010
I use Codeblocks as IDE environment for my C programs. I recently added the matrix library Meschach, but unfortunately the headers are not found during compiling/linking process.For instance, my generic program is the one below:
Code:
#include <stdio.h>
#include <stdlib.h>
#include <matrix.h>
[code]...
This program generates the following error during compilation:
Quote:
main.c|3|error: matrix.h: No such file or directory|
And the declaration <matrix.h> is supposed to include the Meschach library, according to the instruction on the below link:
[URL]
Furthermore, I see on folder /usr/include the following:File stdio.h;
Filestdlib.h;
Folder "Meschach", which contains the file "matrix.h".
View 1 Replies
View Related
May 22, 2010
I have installed fresh fedora 12 & installed many softwares in rpm & tar forms , also i used yum to do installation, all these attempts were successful. But i could not install & configure Epson Dot matrix FX-2175 printer. Epson Dot matrix FX-2175 printer worked fine in my earlier distro fc11.
View 4 Replies
View Related
Jun 1, 2010
I have a parallel port Epsom LX 400 dot matrix printer. In the printer proprieties menu it says for make and model Epson 9-Pin Series which it what it is.It's ok when I print directly to the port.
cat file >/dev/lp0
Using Mandriva 2010
View 4 Replies
View Related
Jun 24, 2010
I have a matrix of dimensions 100 x 100. It is a sparse matrix. It has 460 non-zero values (9540 are zero values).
I want to find inverse of this matrix.
View 14 Replies
View Related
Apr 25, 2010
Ubuntu 2.6.31 - 14 generic
Problem began with RAID0 failure using 2 WD FALS1001 HDDs. I was unable to boot so I replaced the drives with 2 new FALS1001. Installed Win7 64 Ult, installed/updated all drivers/OS and had the same problem with one of the RAID drives again. Usually blue screens with Kernel_stack_inpage_error. I have Intel Matrix Storage version 8.5.0.1030 and can usually boot back into windows even when one disk out of the array shows unknown error (0) and reset the disk to normal. Now it seems to be progressing worse and hit or miss, I can get Windows to load 1 time out of 20 posts.
Sometimes the array shows normal, sometimes failed, sometimes unknown error (0) and other times, everything shows normal and healthy and attempts to boot windows but has read errors or unable to find OS errors. I simply want to access my data via Ubuntu so I can back it up and wipe the drives for re-installation. I see that Intel shows support for Linux but I'm lost as to what I need to do next. Intel link: [URL]. I currently see one of my drives listed in Ubuntu as a RAID component and the other is listed as a hard drive with unknown information. I have loaded mdadm but I'm unfamiliar with how to use it.
View 1 Replies
View Related
Feb 25, 2011
I am trying to install a program and it spews out an error about the .obj/matrix.o file.
The output is quoted here:
Code:
The program I was trying to install is a robot simulator which performs lots of matrix manipulation and linear system solving. I followed every step in the installation guide, except for this one:
On Ubuntu, all you need to do is install the following packages from the package manager:
libblas-dev
liblapack-dev
As shown above, I am using RHEL 6, which has different libraries with Ubuntu. I tried "yum search" and installed these libraries instead: lapack.x86_64 : Numerical linear algebra package libraries blas.x86_64 : The Basic Linear Algebra Subprograms library.
View 2 Replies
View Related
Dec 4, 2010
I want to interface GPIO driven matrix keypad(4X4) to my linux box.
I saw a driver source file
linux-2.6.32.2/drivers/input/keyboard/matrix_keypad.c
How can I use this to achieve what I want?
View 3 Replies
View Related
May 14, 2010
I've been using Slackware 13.0 32-bit because of a problem supporting RAID 0 metadata for Intel Matrix Storage Manager. I would like to move to 64-bit with Slackware 13.1 but I can't see any way to use a 64-bit kernel with my RAID setup. Because the "mdadm" in Slackware does not support the "-e imsm" option to read Intel Matrix Storage Manager Metadata I have been using "dmraid". Unfortunately I'm having trouble finding a way to make "dmraid" (a 32-bit application) work on 64-bit Linux. It appears that "dmraid" may be unsupported now, and I can't find a good place to get current source to compile on a 64-bit system. Essentially "dmraid" is only a program to interpret metadata and then configure the standard Linux device mapper to set up the required mirror or stripe mapping. So, it actually does not have to interact directly with the kernel.
I believe it only issues I/O requests to read disks and configure "dm" devices. So far I have not had to rebuild "dmriad" since Slackware 10. I don't know if 32-bit libraries are an option, or if those can be added to an initrd image (required to use dmraid before booting). People claim that "mdadm" will work with Intel Matrix Storage RAID 0 but I have never found any detailed information about how to do that. When I've tried the few examples I've run across on Slackware I just get an error that the "imsm" metadata format is not supported. I have not been able to locate a site to browse Slackware packages. I was hoping to find "dmraid" in the 64-bit packages. I think "dmraid" was at one time in Slackware but perhaps not any longer.
View 13 Replies
View Related
Jun 21, 2011
trying to configure an old Epson LX 400 dot matrix printer with cups. I really need this printer to print vauchers. System is Debian SID, latest cups 1.4.3 cups was recently change to reject lsusb printing and now uses libusb. lsusb sees printer, but does not name it:
$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 1a40:0201 TERMINUS TECHNOLOGY INC.
[code]....
View 2 Replies
View Related
Mar 28, 2010
I recently bought a new system that has an Intel Matrix Storage Manager "RAID controller" (ICH10R/DO) on it. I'm a bit baffled over what this really is. I see at [URL] that this controller is supported by the Linux dmraid and mdadm commands and supported in the 2.6 kernel version for quite a while. This looks as though it is some sort of convergence of a brain-dead hardware chipset that requires software installed in the OS to manage it. Kind of reminds me of the wimpy Windows modems of the past. How I deployed. I set up two Seagate ST31500541AS disks as a mirrored pair in the hardware controller interface (CTL-I setup after POST).
I installed Fedora 12 in the usual fashion, though was confusing considering I expected a single "RAID device" to be seen by Anaconda. I went ahead and set up the two native /dev/sda and /dev/sdb as a mirrored RAID device on installation (mdadm under the cover). Recently, Palimpsest is insisting that I have a disk problem with "Disk has many bad sectors" error on /dev/sdb. When I run "dmraid -s" it tells me that the meta device is OK and I see no hardware errors in the messages log. I'm not having kernel panics as others seem to have had on RHEL 5.x.
View 4 Replies
View Related
Aug 28, 2010
I now that there is a an effect that arrange all your windows nicely in a matrix (all windows have the same size). What effect is that?
View 3 Replies
View Related
Feb 3, 2011
where can i download linux drivers / PPD file for epson lq-590 dot matrix printer? I have tried printing with the driver for epson lq-570+ but the print quality is not up to the mark
View 1 Replies
View Related
Mar 10, 2011
i am using rhel5 & want to install wipro lq540 dot matrix printer on my system , i don't have product cd suggest me the right way to install printer manually, also this printer name is not listed in the printers list of rhel5 printer configuration menu
View 1 Replies
View Related
Feb 24, 2011
I am trying to install a program and it spews out an error about the .obj/matrix.o file. The output is quoted here:
[code]...
The program I was trying to install is a robot simulator which performs lots of matrix manipulation and linear system solving. I followed every step in the installation guide, except for this one:
[code]...
View 14 Replies
View Related
Oct 22, 2010
I have recently installed Octave on my desktop and I am very busy with RTFM ATM.However, this manual is huge and I could not find an answer to my problem. What I basically want to do is initialize a vector like
Code:
a=[]
for i 1:100
a = [ a i ]
endfor
Now my problem is that this will call the pager and I have to hit 'q' to get my prompt back. I know I can turn it off but the screen will still get cluttered with tons of output.Is there a way to initialize 'a' quietly without any screen output?
View 2 Replies
View Related
Jun 17, 2010
I am trying to install ubuntu 10.04 to my raid 1+0 array. Install just sees four different hd:s
main-0
main-1
storage-0
storage-1
There is not showing any size or anything. I have set two raid arrays: main and storage, both with 4-hard-driver (raid10). Storage array is partitioned to 1TB and 400GB partitions, 400GB partition is where i want to install ubuntu. Main array has windows already. Where to go next?
root@ubuntu:~/src# dmraid -ay
RAID set "isw_beieefiehj_main" already active
RAID set "isw_beieefiehj_storage" already active
RAID set "isw_beieefiehj_main1" already active
RAID set "isw_beieefiehj_storage1" already active
root@ubuntu:~/src# parted_devices .....
View 2 Replies
View Related
Jan 3, 2011
I have installed ubuntu 10.10 netbook remix on my eMachines 350 netbook.. so far, it works good aside from the printer and the built-in SDcard reader.
1. I have tried installing the database driver for epson( dot-matrix printers) but i was out of luck until i have installed the SCP(sorry if I forgot/misrepresented the name) driver which made my printer working.. However, the print quality is a total mess.. broken letters and etc.. (ribbon is brand new) Can someone tell me how to solve this?
2. Having said that I finally solved issue #1, and the printer prints the way it should be, how would I configure my netbook to print wirelessly via a wifi router.. (I was able to do this with windows computers wherein a printer is shared on the network) however, I find it hard to do this in ubuntu since I am not that familiar with this. Note that when I go to system>admin>printing it shows the windows 7 computers in the homegroup but when I search for a shared printer, nothing shows up.. (I know, I'm a NOOB!)
3. This is the last one, I would feel great if we could at least solve this together.. the built in CARD READER is not working on my eMachines EM350 netbook..
View 1 Replies
View Related
Dec 22, 2010
I have installed CUDA-BLASTP on C2050.It is giving me an Error:"Bad address Error opening matrix file (null) for reading" while i am running with following query file and dataset:
./CUDA-BLASTP -i ./data/raimondii_contigs.fasta -d ./data/DB_sorted.fasta
and i am using BLOSUM62 as a matrix file which is already present in package.
And getting the error:"Error happened when the number of GPUs is 0" while i am running CUDABLASTP with a part of dataset taking as a query file and dataset is same. above mentioned error is comming from file "CUDA_Blast.cu" included in package.
else
{
printf("Error happened when the number of GPUs is %d
", localGPU_N);
exit(0);
}
View 2 Replies
View Related
Jul 3, 2009
I got opensuse 11 running on a dedicated HDD and got another 4 HDDs created as RAID 10 via the Intel Matrix RAID Controller of the ICH10 southbridge. I simulated a device failure and disconnected one of the drives and during POST the controller simply says that I need to rebuilt the array from the OS. So how am I supposed to do that since there were no usable raid utitlities for openSuSe delivered out of the box.
View 8 Replies
View Related
Jul 11, 2010
i got to build my own linux shell for my project
View 5 Replies
View Related