01-25-2011
I have thousands of such files
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello, all!
I am struggling with a short script to read a diagonal matrix for later retrieval.
1.000 0.234 0.435 0.123 0.012 0.102 0.325 0.412 0.087 0.098
1.000 0.111 0.412 0.115 0.058 0.091 0.190 0.045 0.058
1.000 0.205 0.542 0.335 0.054 0.117 0.203 0.125
1.000 0.587 0.159 0.357... (11 Replies)
Discussion started by: yifangt
11 Replies
2. Shell Programming and Scripting
Hi experts
How to construct a rectangular matrix for a text file with 6012 rows and 2221 columns.
Thank You (1 Reply)
Discussion started by: riyabio
1 Replies
3. Ubuntu
Hi all,
Is there a way to convert full data matrix to linearised left data matrix?
e.g full data matrix
Bh1 Bh2 Bh3 Bh4 Bh5 Bh6 Bh7
Bh1 0 0.241058 0.236129 0.244397 0.237479 0.240767 0.245245
Bh2 0.241058 0 0.240594 0.241931 0.241975 ... (8 Replies)
Discussion started by: evoll
8 Replies
4. Programming
I have the code below in C++ and am trying to understand what these do and how to call them.
template <class Type>
class Matrix {
public:
Matrix();
Matrix(
const int m,
const int n );
Matrix(
const Matrix& A );
~Matrix(); (0 Replies)
Discussion started by: kristinu
0 Replies
5. Shell Programming and Scripting
Hi everyone
I am very new at awk but think that that might be the best strategy for this. I have a matrix very similar to a correlation matrix and in practical terms I need to convert it into a list containing the values from the matrix (one value per line) with the first field of the line (row... (5 Replies)
Discussion started by: stonemonkey
5 Replies
6. Shell Programming and Scripting
Hi,
I have a table in the format:
1 0 -1 1 0
2 0 1 -1 0 0 0
3 0 1 1 0 0 0 0 0 0
etc.
I am trying to input this to a program, however it is complaining about the fact that it is not in matrix format. How do I add 0's to end of the rows to make them even?
Thanks in advance! (2 Replies)
Discussion started by: Rhavin
2 Replies
7. Shell Programming and Scripting
Hello All,
I need your help in the following problem. I have a matrix of 500 columns and 1000 rows and in each cell, it is having a value range from 0 to 9. I would like to convert each column in to a matrix, according to the value in each cell (ie) 0 to 9.
For each column, I need a matrix... (5 Replies)
Discussion started by: Fredrick
5 Replies
8. Shell Programming and Scripting
Hello friends,
A big question for the UNIX INTELLIGENCE
I have a CSV file as follows:
VALUE,USER1,relatedUSER1,relatedUSER2
-1,userA,userB,userC
1,userN,userD,userB
0,userF,userH,userG
0,userT,userH,userB
1,userN,userB,userA
-1,userA,userF,userC
0,userF,userH,userG... (15 Replies)
Discussion started by: kraterions
15 Replies
9. UNIX for Dummies Questions & Answers
I want to go from
1,a,1a
1,b,1b
1,c,1c
2,a,2a
2,b,2b
3,a,3a
to
a,b,c
1,1a,1b,1c
2,2a,2b,-
3,3a,-,-
Here is what I tried
awk -F, 'BEGIN {OFS = ","} (4 Replies)
Discussion started by: senhia83
4 Replies
LEARN ABOUT DEBIAN
numconv
NUMCONV(1) User Commands NUMCONV(1)
NAME
numconv - convert numbers from one number system to another
SYNOPSIS
Numconv <options>
DESCRIPTION
numconv is a filter that converts integers from one number system to another. For example, it can convert from Roman Numerals such as
"CCLVI" to ordinary Western numbers such as "256" or from Western numbers to Chinese. The great majority of number systems, both modern
and ancient, are supported, including numerous variants.
If the input number system is 'all', the number system will be autodetected.
numconv is a command line interface to libuninum a library for converting between textual representations of numbers and machine-internal
representations. Further information about the conversions performed is available in the documentation for this library.
OPTIONS
-i <input file>
Read input from the specified file.
-o <output file>
Write output into the specified file.
-I Identify the number system of the input.
-c List the available number system cover terms.
-l List the available number systems.
-f <input number system>
Specify the number system of the input.
-t <output number system>
Specify the number system of the output.
-b <input base>
Specify the input base for Western numbers. The base must be in the range [1,36].
-B <output base>
Specify the output base for Western numbers. The base must be in the range [1,36].
-g <output general group size>
Specify the size of digit groups other than the ow-order group. The default is 3.
-G <output low group size>
Specify the size of the low-order group of digits. The default is 3.
-s <output group separator character>
Specify character to use as "thousands separator". The default is a comma.
-L Set the output grouping parameters, general group size, first group size, and group separator character, according to the current
locale.
-m When generating Roman numerals, use unit characters with superscript macron for thousands greater than one instead of Ms.
-h Print help information.
-v Print version information.
EXAMPLES
To convert from Roman Numerals to ordinary Western numbers:
numconv -f Roman -t Western_Lower
To convert from ordinary Western numbers to the variety of number in current use in the People's Republic of China:
numconv -f Western -t Mandarin_Regular_Simplified
To convert from ordinary Western numbers to Western numbers in base 2:
numconv -f Western_Lower -t Western_Lower -B 2
To convert from Urdu numbers to Hindi numbers with the traditional Indian grouping:
numconv -f Perso_Arabic -t Devanagari -g 2
SEE ALSO
libuninum (3)
AUTHOR
Bill Poser (billposer@alum.mit.edu)
LICENSE
GNU General Public License, version 2. (http://www.gnu.org/licenses/gpl.txt)
numconv September 2007 NUMCONV(1)