10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello Everyone,
I am very new to the world of regular expressions. I am trying to use grep/sed for the following:
Input file is something like this and there are multiple such files:
abc
1
2
3
4
5
***END***
abc
6
7
8
9
***END***
abc
10 (2 Replies)
Discussion started by: shellnewuser
2 Replies
2. UNIX for Beginners Questions & Answers
Hello,
I have the following data and I want to use awk to transpose each value to a certain column , so in case the value is not available the column should be empty.
Example:
Box Name: BoxA
Weight: 1
Length :2
Depth :3
Color: red
Box Name: BoxB
Weight: 3
Length :4
Color: Yellow... (5 Replies)
Discussion started by: rahman.ahmed
5 Replies
3. Shell Programming and Scripting
hello,
I have a server that collect some performance statistics of 4 servers in the following input file :
$ cat inputfile
Time,A,Server1,KPI1,data1
Time,A,Server1,KPI2,data2
Time,A,Server1,KPI3,data3
Time,A,Server1,KPI4,data4
Time,A,Server1,KPI5,data5
Time,A,Server2,KPI1,data6... (9 Replies)
Discussion started by: capitain25
9 Replies
4. Shell Programming and Scripting
Dear all,
Plz let me know syntax for transposing rows into column in perl,
I am having 30 csv files which are merged into a single xls sheet.
but i want to transpose each row into column in excel sheet in each tab (1 CSV = 1tab in xls sheet)
example is as below
... (0 Replies)
Discussion started by: sagar_1986
0 Replies
5. Shell Programming and Scripting
How to change the uploaded weekly file data to the following format?
New Well_Id,Old Well_Id,District,Thana,Date,Data,R.L,WellType,Lati.,Longi.
BAG001,PT006,BARGUNA,AMTALI,1/2/1978,1.81,2.29,Piezometer,220825,901430
BAG001,PT006,BARGUNA,AMTALI,1/9/1978,1.87,2.29,Piezometer,220825,901430... (3 Replies)
Discussion started by: sara.nowreen
3 Replies
6. Shell Programming and Scripting
I can no longer find my commands, but I use to be able to transpose data with common fields from a single column to rows using a command line. My data is separated as follows:
NAME=BOB
ADDRESS=COLORADO
PET=CAT
NAME=SUSAN
ADDRESS=TEXAS
PET=BIRD
NAME=TOM
ADDRESS=UTAH
PET=DOG
I would... (7 Replies)
Discussion started by: docdave78
7 Replies
7. Shell Programming and Scripting
Gurus:
How can I transpose the output below to a format in which I can plot a graph to show VSZ memory usage by PIDs?
stdout:
Tue Jan 22 07:29:19 CUT 2013
42336296 1841272 java wilyadm
21889232 438616 jlaunch sidadm
42532994 414336 jlaunch sidadm
Tue Jan 22 07:49:20 CUT 2013... (1 Reply)
Discussion started by: ux4me
1 Replies
8. Shell Programming and Scripting
Hi Experts,
Can you please help me in transposing Datefield from rows to column and calculate the time difference for each of the Jobids:
Input File:
08/23/2012 12:36:09,JOB_5340
08/23/2012 12:36:14,JOB_5340
08/23/2012 12:36:22,JOB_5350
08/23/2012 12:36:26,JOB_5350
Required Output:... (6 Replies)
Discussion started by: asnandhakumar
6 Replies
9. Shell Programming and Scripting
Need to transpose in awk rows to column like this:
input:
A1,6,5,4 3,2,1,
A2,8,7,9,10,11,12,13,14
A3,1,2,3,5,7,8,9
A4,9,4,8,1,5,3,
output:
A1,1
A1,2
A1,4
...
A2,7
A2,8
...
A3,1
A3,2
...
A4,1
A4,3 (5 Replies)
Discussion started by: sdf
5 Replies
10. Shell Programming and Scripting
Hi,
Am trying to transpose a set of rows into a set of comma separated values.
For eg. if the output of
ps -ef | tail +2 | awk 'BEGIN{ FS=" " } { print $2 }'
is
0
1
3
4
I need to transpose it to -
'0','1','3','4'
Am currently trying - (4 Replies)
Discussion started by: iamwha1am
4 Replies
MPSMatrixVectorMultiplication(3) MetalPerformanceShaders.framework MPSMatrixVectorMultiplication(3)
NAME
MPSMatrixVectorMultiplication
SYNOPSIS
#import <MPSMatrixMultiplication.h>
Inherits MPSMatrixBinaryKernel.
Instance Methods
(nonnull instancetype) - initWithDevice:transpose:rows:columns:alpha:beta:
(nonnull instancetype) - initWithDevice:rows:columns:
(nonnull instancetype) - initWithDevice:
(void) - encodeToCommandBuffer:inputMatrix:inputVector:resultVector:
Additional Inherited Members
Detailed Description
This depends on Metal.framework.
A matrix-vector multiplication kernel.
A MPSMatrixVectorMultiplication object computes:
y = alpha * op(A) * x + beta * y
A is a matrix represented by a MPSMatrix object. alpha and beta
are scalar values (of the same data type as values of y) which are
applied as shown above. A may have an optional transposition
operation applied.
A MPSMatrixVectorMultiplication object is initialized with the transpose
operator to apply to A, sizes for the operation to perform,
and the scalar values alpha and beta.
Method Documentation
- (void) encodeToCommandBuffer: (nonnull id< MTLCommandBuffer >) commandBuffer(MPSMatrix *__nonnull) inputMatrix(MPSVector *__nonnull)
inputVector(MPSVector *__nonnull) resultVector
Encode a MPSMatrixVectorMultiplication object to a command buffer.
Parameters:
commandBuffer A valid MTLCommandBuffer to receive the encoded kernel.
inputMatrix A valid MPSMatrix object which specifies the input matrix A.
inputVector A valid MPSVector object which specifies the input vector x.
resultVector A valid MPSVector object which specifies the addend vector which will also be overwritten by the result.
The left input matrix must be large enough to hold an array of size (rows x columns) elements beginning at primarySourceMatrixOrigin.
The input vector must be large enough to hold an array of size (columns) elements beginning at secondarySourceMatrixOrigin.x
secondarySourceMatrixOrigin.y and secondarySourceMatrixOrigin.z must be zero.
The result vector must be large enough to hold an array of size (rows) elements beginning at resultMatrixOrigin.x. resultMatrixOrigin.y and
resultMatrixOrigin.z must be zero.
- (nonnull instancetype) initWithDevice: (nonnull id< MTLDevice >) device
Use the above initialization method instead.
Reimplemented from MPSKernel.
- (nonnull instancetype) initWithDevice: (nonnull id< MTLDevice >) device(NSUInteger) rows(NSUInteger) columns
Convenience initialization for a matrix-vector multiplication with no transposition, unit scaling of the product, and no accumulation of
the result. The scaling factors alpha and beta are taken to be 1.0 and 0.0 respectively.
Parameters:
device The device on which the kernel will execute.
rows The number of rows in the input matrix A, and the number of elements in the vector y.
columns The number of columns in the input matrix A, and the number of elements in the input vector x.
Returns:
A valid MPSMatrixVectorMultiplication object or nil, if failure.
- (nonnull instancetype) initWithDevice: (nonnull id< MTLDevice >) device(BOOL) transpose(NSUInteger) rows(NSUInteger) columns(double)
alpha(double) beta
Initialize an MPSMatrixVectorMultiplication object on a device for a given size and desired transpose and scale values.
Parameters:
device The device on which the kernel will execute.
transpose A boolean value which indicates if the input matrix should be used in transposed form. if 'YES' then op(A) == A**T, otherwise
op(A) == A.
rows The number of rows in the input matrix op(A), and the number of elements in the vector y.
columns The number of columns in the input matrix op(A), and the number of elements in the input vector x.
alpha The scale factor to apply to the product. Specified in double precision. Will be converted to the appropriate precision in the
implementation subject to rounding and/or clamping as necessary.
beta The scale factor to apply to the initial values of y. Specified in double precision. Will be converted to the appropriate
precision in the implementation subject to rounding and/or clamping as necessary.
Returns:
A valid MPSMatrixVectorMultiplication object or nil, if failure.
Author
Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.
Version MetalPerformanceShaders-100 Thu Feb 8 2018 MPSMatrixVectorMultiplication(3)