Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

diag(4rheolef) [opensolaris man page]

diag(4rheolef)                                                      rheolef-6.1                                                     diag(4rheolef)

NAME
diag - get diagonal part of a matrix DESCRIPTION
This function get the diagonal part of a matrix. csr<Float> a; dia<Float> d = diag(a); TODO
Build a csr matrix from a diagonal one or from a vector: dia<Float> d; csr<Float> a = diag(d); vec<Float> u; csr<Float> b = diag(u); IMPLEMENTATION
template<class T, class M> dia<T,M> diag (const csr<T,M>& a) rheolef-6.1 rheolef-6.1 diag(4rheolef)

Check Out this Related Man Page

dia(2rheolef)							    rheolef-6.1 						     dia(2rheolef)

NAME
dia - diagonal matrix DESCRIPTION
The class implements a diagonal matrix. A declaration whithout any parametrers correspond to a null size matrix: dia<Float> d; The constructor can be invocated whith a ownership parameter (see distributor(2)): dia<Float> d(ownership); or an initialiser, either a vector (see vec(2)): dia<Float> d(v); or a csr matrix (see csr(2)): dia<Float> d(a); The conversion from dia to vec or csr is explicit. When a diagonal matrix is constructed from a csr matrix, the definition of the diagonal of matrix is @emph{always} a vector of size row_ownership which contains the elements in rows 1 to nrow of the matrix that are contained in the diagonal. If the diagonal element falls outside the matrix, i.e. ncol < nrow then it is defined as a zero entry. PRECONDITIONER INTERFACE
The class presents a preconditioner interface, as the solver(2), so that it can be used as preconditioner to the iterative solvers suite (see pcg(4)). IMPLEMENTATION
template<class T, class M = rheo_default_memory_model> class dia : public vec<T,M> { public: // typedefs: typedef typename vec<T,M>::size_type size_type; typedef typename vec<T,M>::iterator iterator; typedef typename vec<T,M>::const_iterator const_iterator; // allocators/deallocators: explicit dia (const distributor& ownership = distributor(), const T& init_val = std::numeric_limits<T>::max()); explicit dia (const vec<T,M>& u); explicit dia (const csr<T,M>& a); dia<T,M>& operator= (const T& lambda); // preconditionner interface: solves d*x=b vec<T,M> solve (const vec<T,M>& b) const; vec<T,M> trans_solve (const vec<T,M>& b) const; }; template <class T, class M> dia<T,M> operator/ (const T& lambda, const dia<T,M>& d); template <class T, class M> vec<T,M> operator* (const dia<T,M>& d, const vec<T,M>& x); SEE ALSO
distributor(2), vec(2), csr(2), solver(2), pcg(4) rheolef-6.1 rheolef-6.1 dia(2rheolef)
Man Page

15 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

Sun Hardware Diag Tools

Problem: Several possible cooked Sun U10's. Need: Sun Hardware Diag Tools. I want to pound on these boxes and see whats what. I am wondering where I could find some Diag tools that will help me diag problems. Freeware is preferred. (The magic budget of $0) (7 Replies)
Discussion started by: edkung
7 Replies

2. UNIX for Dummies Questions & Answers

Question on prtdiag output ...

Hello all , This is the output of my prtdiag command ...The speed of each of the CPUs is listed below (1281 MHz ) ..That's fine ..I'm confused about the (System clock frequency: 183 MHZ ) ..What is the difference between System Clock freq and CPU freq ...THanks.. System Configuration: Sun... (5 Replies)
Discussion started by: luft
5 Replies

3. Solaris

Prtdiag is Not working in Solaris 8 Ver

Hello Guys, :confused: I have tried Up to my Levels pls help me if u know any solution Pls look out the following O/P, Log Messages ================================================= SUN> pwd /usr/platform/SUNW,Sun-Fire-V240/sbin SUN> SUN> SUN> prtdiag -v bash: prtdiag: command not... (7 Replies)
Discussion started by: sure.solaris
7 Replies

4. Solaris

Help! Trying to install Solaris 10 on a Sunblade 100

I recently bought a sunblade 100 for $150 from a guy that posted it on craigslist. I'm trying to learn Solaris 10. Prior to giving me the system he had Ubuntu installed. He removed it for before giving it to me. I basically have a hard disk that has nothing installed in it. I tried installing... (6 Replies)
Discussion started by: haloy
6 Replies

5. Solaris

SF T2000 prtdiag problem

Hi, a couple of T2000 servers did not show the component status and the output was too short. There was a patch that needed to be installed. I also updated to the latest recommended patch cluster and OBP patch. After reboot/restart of picl, it worked ok for a couple of weeks. Then suddenly it went... (12 Replies)
Discussion started by: incredible
12 Replies

6. UNIX for Advanced & Expert Users

prtdiag -v show no output

Dear All....Help required prtdiag -v command shows no output on my V440 server. Following is the details: root@sdp16b>prtdiag -v root@sdp16b> root@sdp16b>uname -a SunOS sdp16b 5.9 Generic_122300-31 sun4u sparc SUNW,Sun-Fire-V440 root@sdp16b>echo $path /usr/sbin /usr/bin /usr/sbin... (6 Replies)
Discussion started by: Junaid
6 Replies

7. UNIX for Advanced & Expert Users

Gurus needed to diagnose severe performance degradation

Hi everyone, newbie forum poster here. I'm an Oracle DBA and I require some guidance from the Unix gurus here about how to pinpoint where a problem is within a Solaris 9 system running on an 8 CPU Fujitsu server that acts as our Oracle database server. Our sysadmins are trying their best to... (13 Replies)
Discussion started by: DBA_guy
13 Replies

8. Shell Programming and Scripting

diagonal matrix to square matrix

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

9. Solaris

Error: prtdiag failed! property not found

Hello Everyone! I have a Sun Fire E2900. When I run a prtdiag -v, it fails to give complete information. It fails with the following error message "Prtdiag failed!Property not found". Please help. # which prtdiag /usr/sbin/prtdiag # ls -l /usr/sbin/prtdiag -r-xr-xr-x 4 root bin 512... (10 Replies)
Discussion started by: pingmeback
10 Replies

10. Solaris

prtdiag output for Solaris on Fujitsu hardware shows vendor as Sun Microsystems

Hello, I was under the impression that the Header of the prtdiag output shows the hardware vendor information in the section between System Configuration and sun4u/sun4us. But on some Solaris machines which are running on Fujitsu hardware, the vendor is shown as Sun Microsystems in this... (8 Replies)
Discussion started by: chattygk
8 Replies

11. Solaris

prtdiag

Hi everyone, Please can you tell me what kind of memro we are talking about when we run : prtdiag -v Memory size: 98016 Megabytes Thank you (7 Replies)
Discussion started by: adilyos
7 Replies

12. Shell Programming and Scripting

Shell script to diagnose the network

i have learnt a little bit of shell scripting but not alot. i want to write a script to diagnose the network using ping and another script to traceroute. how would i do this? (6 Replies)
Discussion started by: stefanere2k9
6 Replies

13. Shell Programming and Scripting

Venn diagram results using awk

Hi, I have the following files 1.txt a 10 b 11 c 12 d 13 e 14 f 15 g 16 h 17 i 18 j 19 k 20 2.txt a 21 b 22 (15 Replies)
Discussion started by: jacobs.smith
15 Replies

14. Shell Programming and Scripting

Maybe by AWK: printing help diagonal matrix characters into line

Hi Experts, I want to print this charts diagonal data into straight lines. This is a matrix 24X24 Horizontal and vertical. - I want to print all the diagonal cutting characters into straight line: Data: E F S S A H A L L A T M C N O T S O B O D U Q H I W I B N L O C N I L N L A N S I N... (9 Replies)
Discussion started by: rveri
9 Replies

15. Red Hat

Separate HDD test using RAID controller

Hello, I am using Red Hat 2.6.23.1 with RAID 6 controller (card). (When I use "cat /proc/partitions" I do not see the separate HDDs in the RAID, I see one drive for the RAID itself, as it is considered 1 large drive.) I used a "dd" check to test my RAID drive speed and found it was a bit slow,... (7 Replies)
Discussion started by: Dbugy
7 Replies