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
|
<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.4">
<meta name="date" content="2023-01-26T12:19:46+00:00">
</head>
<body bgcolor="#FFFFFF">
<div id="version" align=right><b>slepc-3.18.2 2023-01-26</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.18.2 v3.18.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">#if !defined(SLEPCMAT_H)</font>
<a name="line15"> 15: </a><strong><font color="#228B22">#define SLEPCMAT_H</font></strong>
<a name="line17"> 17: </a><font color="#A020F0">#include <petscmat.h></font>
<a name="line19"> 19: </a><font color="#B22222">/* SUBMANSEC = sys */</font>
<a name="line21"> 21: </a><strong><font color="#4169E1">SLEPC_EXTERN <a href="https://petsc.org/release/docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/sys/MatCreateTile.html#MatCreateTile">MatCreateTile</a>(<a href="https://petsc.org/release/docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>,<a href="https://petsc.org/release/docs/manualpages/Mat/Mat.html#Mat">Mat</a>,<a href="https://petsc.org/release/docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>,<a href="https://petsc.org/release/docs/manualpages/Mat/Mat.html#Mat">Mat</a>,<a href="https://petsc.org/release/docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>,<a href="https://petsc.org/release/docs/manualpages/Mat/Mat.html#Mat">Mat</a>,<a href="https://petsc.org/release/docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>,<a href="https://petsc.org/release/docs/manualpages/Mat/Mat.html#Mat">Mat</a>,<a href="https://petsc.org/release/docs/manualpages/Mat/Mat.html#Mat">Mat</a>*)</font></strong>;
<a name="line22"> 22: </a><strong><font color="#4169E1">SLEPC_EXTERN <a href="https://petsc.org/release/docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/sys/MatCreateVecsEmpty.html#MatCreateVecsEmpty">MatCreateVecsEmpty</a>(<a href="https://petsc.org/release/docs/manualpages/Mat/Mat.html#Mat">Mat</a>,<a href="https://petsc.org/release/docs/manualpages/Vec/Vec.html#Vec">Vec</a>*,<a href="https://petsc.org/release/docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line23"> 23: </a><strong><font color="#4169E1">SLEPC_EXTERN <a href="https://petsc.org/release/docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/sys/MatNormEstimate.html#MatNormEstimate">MatNormEstimate</a>(<a href="https://petsc.org/release/docs/manualpages/Mat/Mat.html#Mat">Mat</a>,<a href="https://petsc.org/release/docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="https://petsc.org/release/docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="https://petsc.org/release/docs/manualpages/Sys/PetscReal.html#PetscReal">PetscReal</a>*)</font></strong>;
<a name="line25"> 25: </a><font color="#B22222">/* Deprecated functions */</font>
<a name="line26"> 26: </a>PETSC_DEPRECATED_FUNCTION(<font color="#666666">"Use <a href="https://petsc.org/release/docs/manualpages/Mat/MatCreateRedundantMatrix.html#MatCreateRedundantMatrix">MatCreateRedundantMatrix</a>() followed by <a href="https://petsc.org/release/docs/manualpages/Mat/MatConvert.html#MatConvert">MatConvert</a>()"</font>) static inline <a href="https://petsc.org/release/docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> SlepcMatConvertSeqDense(<a href="https://petsc.org/release/docs/manualpages/Mat/Mat.html#Mat">Mat</a> mat,<a href="https://petsc.org/release/docs/manualpages/Mat/Mat.html#Mat">Mat</a> *newmat)
<a name="line27"> 27: </a>{
<a name="line28"> 28: </a> <a href="https://petsc.org/release/docs/manualpages/Mat/Mat.html#Mat">Mat</a> Ar;
<a name="line29"> 29: </a> <a href="https://petsc.org/release/docs/manualpages/Mat/MatCreateRedundantMatrix.html#MatCreateRedundantMatrix">MatCreateRedundantMatrix</a>(mat,0,<a href="https://petsc.org/release/docs/manualpages/Sys/PETSC_COMM_SELF.html#PETSC_COMM_SELF">PETSC_COMM_SELF</a>,<a href="https://petsc.org/release/docs/manualpages/Mat/MatReuse.html#MatReuse">MAT_INITIAL_MATRIX</a>,&Ar);
<a name="line30"> 30: </a> <a href="https://petsc.org/release/docs/manualpages/Mat/MatConvert.html#MatConvert">MatConvert</a>(Ar,<a href="https://petsc.org/release/docs/manualpages/Mat/MATSEQDENSE.html#MATSEQDENSE">MATSEQDENSE</a>,<a href="https://petsc.org/release/docs/manualpages/Mat/MatReuse.html#MatReuse">MAT_INITIAL_MATRIX</a>,newmat);
<a name="line31"> 31: </a> <a href="https://petsc.org/release/docs/manualpages/Mat/MatDestroy.html#MatDestroy">MatDestroy</a>(&Ar);
<a name="line32"> 32: </a> <font color="#4169E1">return</font> 0;
<a name="line33"> 33: </a>}
<a name="line34"> 34: </a>PETSC_DEPRECATED_FUNCTION(<font color="#666666">"Use <a href="../docs/manualpages/sys/MatCreateTile.html#MatCreateTile">MatCreateTile</a>()"</font>) static inline <a href="https://petsc.org/release/docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> SlepcMatTile(<a href="https://petsc.org/release/docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> a,<a href="https://petsc.org/release/docs/manualpages/Mat/Mat.html#Mat">Mat</a> A,<a href="https://petsc.org/release/docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> b,<a href="https://petsc.org/release/docs/manualpages/Mat/Mat.html#Mat">Mat</a> B,<a href="https://petsc.org/release/docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> c,<a href="https://petsc.org/release/docs/manualpages/Mat/Mat.html#Mat">Mat</a> C,<a href="https://petsc.org/release/docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> d,<a href="https://petsc.org/release/docs/manualpages/Mat/Mat.html#Mat">Mat</a> D,<a href="https://petsc.org/release/docs/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);}
<a name="line36"> 36: </a><font color="#A020F0">#endif</font>
</pre>
</body>
</html>
|