sgthr man page on OpenIndiana

Man page or keyword search:  
man Server   20441 pages
apropos Keyword Search (all sections)
Output format
OpenIndiana logo
[printable version]

sgthr(3P)		    Sun Performance Library		     sgthr(3P)

NAME
       sgthr - Gathers specified elements from y into x.

SYNOPSIS
	SUBROUTINE SGTHR(NZ, Y, X, INDX)

	REAL Y(*), X(*)
	INTEGER NZ
	INTEGER INDX(*)

	SUBROUTINE SGTHR_64(NZ, Y, X, INDX)

	REAL Y(*), X(*)
	INTEGER*8 NZ
	INTEGER*8 INDX(*)

   F95 INTERFACE
	SUBROUTINE GTHR([NZ], Y, X, INDX)

	REAL, DIMENSION(:) :: Y, X
	INTEGER :: NZ
	INTEGER, DIMENSION(:) :: INDX

	SUBROUTINE GTHR_64([NZ], Y, X, INDX)

	REAL, DIMENSION(:) :: Y, X
	INTEGER(8) :: NZ
	INTEGER(8), DIMENSION(:) :: INDX

   C INTERFACE
       #include <sunperf.h>

       void sgthr (const int nz, const float* y, float* x, const int* indx);

       void sgthr_64 (const long nz, const float* y, float* x, const long*
		 indx);

PURPOSE
       SGTHR - Gathers the specified elements from a vector y in full storage
       form into a vector x in compressed form.	 Only the elements of y whose
       indices are listed in indx are referenced.

	do i = 1, n
	  x(i) = y(indx(i))
	enddo

ARGUMENTS
       NZ (input) - INTEGER
	       Number of elements in the compressed form.  Unchanged on exit.

       Y (input)
	       Vector in full storage form.  Unchanged on exit.

       X (output)
	       Vector in compressed form.  Contains elements of y whose
	       indices are listed in indx on exit.

       INDX (input) - INTEGER
	       Vector containing the indices of the compressed form.  It is
	       assumed that the elements in INDX are distinct and greater than
	       zero.  Unchanged on exit.

3rd Berkeley Distribution	  6 Mar 2009			     sgthr(3P)
[top]

List of man pages available for OpenIndiana

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net