Hi!
I pass a parameter to a script code and I have to make it upper case before use:
$ MyShell aBcDe
script code:
UpperVariable=function($1)
I can't know how make function, maybe some sed option?
Thank You,
PARIDE (1 Reply)
Hi,
I have to reshape some ascii files. I have many ascii files that have collapsed the lower triangular of my matrix into row. I simply want to convert them back to the proper matrix form. So, my current data looks like this:
11 21 22 31 32
33 41 42 43 44
...
This is five columns of... (2 Replies)
I want to code a triangular window in an array. The array size is an odd number and indices start from 1.
For example Having the number of elements N = 13
The middle position 7, the value will be 1.0 Then things decrease to zero using a rectangular variation.
Having problem how to code it. (2 Replies)
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)
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)
Hi,
I think this is a weird problem.
I have two files...one with all UPPER case and the other one with a mix of upper and lower.
Match each record in file1 against record in file2, if they match, then change the record in file1 to that of record in file2.
Thanks in advance. (2 Replies)
I have a string like below. Now i want to split this string like below and put the value in the array using awk. I am able to do it using bash but getting no clue for doing it in awk
O/P
A=0
A=01
A=014
A=0143
A=01438
A=014387
A=0143876
A=01438765
A=014387650
... (7 Replies)
I have a file that has a pattern 2 lines, blanktwo line
If encountering the first line, the 2nd line need to be converted to UPPERCASE...or...conver the 2nd line after ablank into uppercase
Is there a 'tr' function in awk..(probably the best tool over sed) ?
i.e.
......................... (6 Replies)
Hi,
I'm writing a BBS telnet program. I'm having issues with it not displaying lower ASCII characters. For example, instead of displaying the "smiley face" character (Ctrl-B), it displays ^B. Is this because i'm using Ncurses? If so, is there any way around this?
Thanks. (3 Replies)
Discussion started by: ignatius
3 Replies
LEARN ABOUT REDHAT
dtrti2
DTRTI2(l) ) DTRTI2(l)
NAME
DTRTI2 - compute the inverse of a real upper or lower triangular matrix
SYNOPSIS
SUBROUTINE DTRTI2( UPLO, DIAG, N, A, LDA, INFO )
CHARACTER DIAG, UPLO
INTEGER INFO, LDA, N
DOUBLE PRECISION A( LDA, * )
PURPOSE
DTRTI2 computes the inverse of a real upper or lower triangular matrix. This is the Level 2 BLAS version of the algorithm.
ARGUMENTS
UPLO (input) CHARACTER*1
Specifies whether the matrix A is upper or lower triangular. = 'U': Upper triangular
= 'L': Lower triangular
DIAG (input) CHARACTER*1
Specifies whether or not the matrix A is unit triangular. = 'N': Non-unit triangular
= 'U': Unit triangular
N (input) INTEGER
The order of the matrix A. N >= 0.
A (input/output) DOUBLE PRECISION array, dimension (LDA,N)
On entry, the triangular matrix A. If UPLO = 'U', the leading n by n upper triangular part of the array A contains the upper tri-
angular matrix, and the strictly lower triangular part of A is not referenced. If UPLO = 'L', the leading n by n lower triangular
part of the array A contains the lower triangular matrix, and the strictly upper triangular part of A is not referenced. If DIAG =
'U', the diagonal elements of A are also not referenced and are assumed to be 1.
On exit, the (triangular) inverse of the original matrix, in the same storage format.
LDA (input) INTEGER
The leading dimension of the array A. LDA >= max(1,N).
INFO (output) INTEGER
= 0: successful exit
< 0: if INFO = -k, the k-th argument had an illegal value
LAPACK version 3.0 15 June 2000 DTRTI2(l)