File: slepcmat.h.html

package info (click to toggle)
slepc 3.22.2%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 49,376 kB
  • sloc: ansic: 118,012; python: 4,887; f90: 3,620; cpp: 1,526; makefile: 811; sh: 311
file content (55 lines) | stat: -rw-r--r-- 8,397 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<center><a href="slepcmat.h">Actual source code: slepcmat.h</a></center><br>

<html>
<head> <link rel="canonical" href="https://slepc.upv.es/documentation/current/include/slepcmat.h.html" />
<title></title>
<meta name="generator" content="c2html 0.9.6">
<meta name="date" content="2024-12-02T08:56:44+00:00">
</head>

<body bgcolor="#FFFFFF">
   <div id="version" align=right><b>slepc-3.22.2 2024-12-02</b></div>
   <div id="bugreport" align=right><a href="mailto:slepc-maint@upv.es?subject=Typo or Error in Documentation &body=Please describe the typo or error in the documentation: slepc-3.22.2 v3.22.2 include/slepcmat.h.html "><small>Report Typos and Errors</small></a></div>
<pre width="80">
<a name="line1">  1: </a><font color="#B22222">/*</font>
<a name="line2">  2: </a><font color="#B22222">   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</font>
<a name="line3">  3: </a><font color="#B22222">   SLEPc - Scalable Library for Eigenvalue Problem Computations</font>
<a name="line4">  4: </a><font color="#B22222">   Copyright (c) 2002-, Universitat Politecnica de Valencia, Spain</font>

<a name="line6">  6: </a><font color="#B22222">   This file is part of SLEPc.</font>
<a name="line7">  7: </a><font color="#B22222">   SLEPc is distributed under a 2-clause BSD license (see LICENSE).</font>
<a name="line8">  8: </a><font color="#B22222">   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</font>
<a name="line9">  9: </a><font color="#B22222">*/</font>
<a name="line10"> 10: </a><font color="#B22222">/*</font>
<a name="line11"> 11: </a><font color="#B22222">   User interface for various matrix operations added in SLEPc</font>
<a name="line12"> 12: </a><font color="#B22222">*/</font>

<a name="line14"> 14: </a><font color="#A020F0">#pragma once</font>

<a name="line16"> 16: </a><font color="#A020F0">#include &lt;petscmat.h&gt;</font>

<a name="line18"> 18: </a><font color="#B22222">/* SUBMANSEC = sys */</font>

<a name="line20"> 20: </a><strong><font color="#4169E1">SLEPC_EXTERN <a href="https://petsc.org/release/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/sys/MatCreateTile.html#MatCreateTile">MatCreateTile</a>(<a href="https://petsc.org/release/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>,<a href="https://petsc.org/release/manualpages/Mat/Mat.html#Mat">Mat</a>,<a href="https://petsc.org/release/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>,<a href="https://petsc.org/release/manualpages/Mat/Mat.html#Mat">Mat</a>,<a href="https://petsc.org/release/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>,<a href="https://petsc.org/release/manualpages/Mat/Mat.html#Mat">Mat</a>,<a href="https://petsc.org/release/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>,<a href="https://petsc.org/release/manualpages/Mat/Mat.html#Mat">Mat</a>,<a href="https://petsc.org/release/manualpages/Mat/Mat.html#Mat">Mat</a>*)</font></strong>;
<a name="line21"> 21: </a><strong><font color="#4169E1">SLEPC_EXTERN <a href="https://petsc.org/release/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/sys/MatCreateVecsEmpty.html#MatCreateVecsEmpty">MatCreateVecsEmpty</a>(<a href="https://petsc.org/release/manualpages/Mat/Mat.html#Mat">Mat</a>,<a href="https://petsc.org/release/manualpages/Vec/Vec.html#Vec">Vec</a>*,<a href="https://petsc.org/release/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line22"> 22: </a><strong><font color="#4169E1">SLEPC_EXTERN <a href="https://petsc.org/release/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/sys/MatNormEstimate.html#MatNormEstimate">MatNormEstimate</a>(<a href="https://petsc.org/release/manualpages/Mat/Mat.html#Mat">Mat</a>,<a href="https://petsc.org/release/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="https://petsc.org/release/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="https://petsc.org/release/manualpages/Sys/PetscReal.html#PetscReal">PetscReal</a>*)</font></strong>;

<a name="line24"> 24: </a><font color="#B22222">/* Matrices for structured eigenproblems */</font>
<a name="line25"> 25: </a><strong><font color="#4169E1">SLEPC_EXTERN <a href="https://petsc.org/release/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/sys/MatCreateBSE.html#MatCreateBSE">MatCreateBSE</a>(<a href="https://petsc.org/release/manualpages/Mat/Mat.html#Mat">Mat</a>,<a href="https://petsc.org/release/manualpages/Mat/Mat.html#Mat">Mat</a>,<a href="https://petsc.org/release/manualpages/Mat/Mat.html#Mat">Mat</a>*)</font></strong>;

<a name="line27"> 27: </a><font color="#B22222">/* Deprecated functions */</font>
<a name="line28"> 28: </a>PETSC_DEPRECATED_FUNCTION(3, 6, 0, <font color="#666666">"<a href="https://petsc.org/release/manualpages/Mat/MatCreateRedundantMatrix.html#MatCreateRedundantMatrix">MatCreateRedundantMatrix</a>() followed by <a href="https://petsc.org/release/manualpages/Mat/MatConvert.html#MatConvert">MatConvert</a>()"</font>, ) static inline <a href="https://petsc.org/release/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> SlepcMatConvertSeqDense(<a href="https://petsc.org/release/manualpages/Mat/Mat.html#Mat">Mat</a> mat,<a href="https://petsc.org/release/manualpages/Mat/Mat.html#Mat">Mat</a> *newmat)
<a name="line29"> 29: </a>{
<a name="line30"> 30: </a>  <a href="https://petsc.org/release/manualpages/Mat/Mat.html#Mat">Mat</a> Ar;

<a name="line32"> 32: </a>  <a href="https://petsc.org/release/manualpages/Sys/PetscFunctionBegin.html#PetscFunctionBegin">PetscFunctionBegin</a>;
<a name="line33"> 33: </a>  <a href="https://petsc.org/release/manualpages/Sys/PetscCall.html#PetscCall">PetscCall</a>(<a href="https://petsc.org/release/manualpages/Mat/MatCreateRedundantMatrix.html#MatCreateRedundantMatrix">MatCreateRedundantMatrix</a>(mat,0,<a href="https://petsc.org/release/manualpages/Sys/PETSC_COMM_SELF.html#PETSC_COMM_SELF">PETSC_COMM_SELF</a>,<a href="https://petsc.org/release/manualpages/Mat/MatReuse.html#MatReuse">MAT_INITIAL_MATRIX</a>,&amp;Ar));
<a name="line34"> 34: </a>  <a href="https://petsc.org/release/manualpages/Sys/PetscCall.html#PetscCall">PetscCall</a>(<a href="https://petsc.org/release/manualpages/Mat/MatConvert.html#MatConvert">MatConvert</a>(Ar,<a href="https://petsc.org/release/manualpages/Mat/MATSEQDENSE.html#MATSEQDENSE">MATSEQDENSE</a>,<a href="https://petsc.org/release/manualpages/Mat/MatReuse.html#MatReuse">MAT_INITIAL_MATRIX</a>,newmat));
<a name="line35"> 35: </a>  <a href="https://petsc.org/release/manualpages/Sys/PetscCall.html#PetscCall">PetscCall</a>(<a href="https://petsc.org/release/manualpages/Mat/MatDestroy.html#MatDestroy">MatDestroy</a>(&amp;Ar));
<a name="line36"> 36: </a>  <a href="https://petsc.org/release/manualpages/Sys/PetscFunctionReturn.html#PetscFunctionReturn">PetscFunctionReturn</a>(<a href="https://petsc.org/release/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PETSC_SUCCESS</a>);
<a name="line37"> 37: </a>}
<a name="line38"> 38: </a>PETSC_DEPRECATED_FUNCTION(3, 8, 0, <font color="#666666">"<a href="../docs/manualpages/sys/MatCreateTile.html#MatCreateTile">MatCreateTile</a>()"</font>, ) static inline <a href="https://petsc.org/release/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> SlepcMatTile(<a href="https://petsc.org/release/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> a,<a href="https://petsc.org/release/manualpages/Mat/Mat.html#Mat">Mat</a> A,<a href="https://petsc.org/release/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> b,<a href="https://petsc.org/release/manualpages/Mat/Mat.html#Mat">Mat</a> B,<a href="https://petsc.org/release/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> c,<a href="https://petsc.org/release/manualpages/Mat/Mat.html#Mat">Mat</a> C,<a href="https://petsc.org/release/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> d,<a href="https://petsc.org/release/manualpages/Mat/Mat.html#Mat">Mat</a> D,<a href="https://petsc.org/release/manualpages/Mat/Mat.html#Mat">Mat</a> *G) {<font color="#4169E1">return</font> <a href="../docs/manualpages/sys/MatCreateTile.html#MatCreateTile">MatCreateTile</a>(a,A,b,B,c,C,d,D,G);}
</pre>
</body>

</html>