eye(2rheolef) rheolef-6.1 eye(2rheolef)NAME
eye - the identity matrix
DESCRIPTION
Following matlab, the name eye() is used in place of I to denote identity matrices because I is often used as a subscript or as sqrt(-1).
The dimensions of eye() are determined by context. The preconditioner interface is usefull when calling algorithms without any precondi-
tioners, e.g.
int status = pcg (a, x, b, eye(), 100, 1e-7);
IMPLEMENTATION
class eye {
public:
eye() {}
template<class T> const vec<T>& operator* (const vec<T>& x) const { return x; }
template<class T> const vec<T>& solve (const vec<T>& x) const { return x; }
template<class T> const vec<T>& trans_solve (const vec<T>& x) const { x; }
};
rheolef-6.1 rheolef-6.1 eye(2rheolef)
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)
I am responsible for administering 6 Tru64UX servers.
I need to keep an eye on all the commands executed by all the users.
Is there a way where I can save the commands executed in a seperate folder and then keep checking the list every now and then.
How can do it ? (5 Replies)
I have two issues with this script.
1. I cannot seem to get my counters to count correctly.
2. My function to eject to CAP1 or CAP2 is hung in a loop and doens't exit back to the previous function. I would like to be able to select which cap to eject to . Each cap holds only 40 tapes, so when one... (15 Replies)
Original code used fwrite instead of putc.
What is expected is that the destination file will be written to. Instead I end up with a zero length file. I'm sure there is something simple I'm missing.
tia.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char... (6 Replies)
Hi all,
Let me first start out by saying I'm a perl newbie and hope somebody can help, for the life of me I can't figure out why my script will not find and download a remote file via FTPSSL. What it's supposed to do is find the latest file named... (4 Replies)
I have just loaded Sabayon KDE4.2. I have a 64bit comp and have tried several Linux/Unix os and have had problems with all of them and now it seems this one as well. I can't load my printer up and I cannot access any login management. I have had trouble accessing my Login Manager. I have looked... (3 Replies)
I'm trying to run these commands (keylset,keylget) but i keep getting a error message "invalid command name "keylset"". I've tried running it on both ubuntu's terminal and also Evolane Tcl Engine. Any idea what could be the problem? (1 Reply)
What I'm trying to do is leave a tcpdump running all the time on a server, and at the end of every day kill it and start a new one. For some reason my boss doesn't want to set this up as a cron job, so I've come up with the following.:
#!/bin/bash
PCAPFILE=/tmp/mgmt.$(date... (8 Replies)
Hi unix people, i'm really a newbie and i've created a small bash to process some picture with ImageMagick.
I have just some issue and i think this script, if we can help me to correct in right way, could be useful!
Basically i have a Eyefi Card who puts files into a folder called "picture"... (1 Reply)