diag(4rheolef)

diag4rheolef

Get diagonal part of a matrix

Overview

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)

Releases

4 releases since Debian 7 (Wheezy); the text changed 3 times.

  1. 7
  2. 8
  3. 9
  4. 10

From librheolef-dev 7.0-2+b1 in Debian 10 (Buster). Parsed by carta from the page's man source.