EVSL
1.1.0
EigenValues Slicing Library
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
EXTERNAL
CXSparse
Source
cs_ipvec.c
Go to the documentation of this file.
1
#include "
cs.h
"
2
/* x(p) = b, for dense vectors x and b; p=NULL denotes identity */
3
CS_INT
cs_ipvec
(
const
CS_INT
*p,
const
CS_ENTRY
*b,
CS_ENTRY
*x,
CS_INT
n)
4
{
5
CS_INT
k ;
6
if
(!x || !b)
return
(0) ;
/* check inputs */
7
for
(k = 0 ; k < n ; k++) x [p ? p [k] : k] = b [k] ;
8
return
(1) ;
9
}
CS_ENTRY
#define CS_ENTRY
Definition:
cs.h:635
cs_ipvec
CS_INT cs_ipvec(const CS_INT *p, const CS_ENTRY *b, CS_ENTRY *x, CS_INT n)
Definition:
cs_ipvec.c:3
cs.h
CS_INT
#define CS_INT
Definition:
cs.h:627
Generated by
1.8.6