This file is indexed.

/usr/include/trilinos/CEpetra_CrsMatrix.h is in libtrilinos-dev 10.4.0.dfsg-1ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
/*! @HEADER */
/*
************************************************************************

                CTrilinos:  C interface to Trilinos
                Copyright (2009) Sandia Corporation

Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
license for use of this work by or on behalf of the U.S. Government.

This library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of the
License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA
Questions? Contact M. Nicole Lemaster (mnlemas@sandia.gov)

************************************************************************
*/
/*! @HEADER */


#include "CTrilinos_config.h"


/*! @file CEpetra_CrsMatrix.h
 * @brief Wrappers for Epetra_CrsMatrix */

/* True C header file! */


#ifndef CEPETRA_CRSMATRIX_H
#define CEPETRA_CRSMATRIX_H


#include "CTrilinos_enums.h"


#ifdef __cplusplus
extern "C" {
#endif



/*! @name ID struct conversion functions */
/*@{*/

/*! @brief Changes the ID struct from the universal
   (generalized) struct type to the class-specific one.
*/
CT_Epetra_CrsMatrix_ID_t Epetra_CrsMatrix_Degeneralize ( 
  CTrilinos_Universal_ID_t id );

/*! @brief Changes the ID struct from the class-specific
   struct type to the universal (generalized) one.
*/
CTrilinos_Universal_ID_t Epetra_CrsMatrix_Generalize ( 
  CT_Epetra_CrsMatrix_ID_t id );

/*@}*/

/*! @name Epetra_CrsMatrix constructor wrappers */
/*@{*/

/*! @brief Wrapper for 
   Epetra_CrsMatrix::Epetra_CrsMatrix(Epetra_DataAccess CV, const Epetra_Map& RowMap, const int* NumEntriesPerRow, bool StaticProfile = false)
*/
CT_Epetra_CrsMatrix_ID_t Epetra_CrsMatrix_Create_VarPerRow ( 
  CT_Epetra_DataAccess_E_t CV, CT_Epetra_Map_ID_t RowMapID, 
  const int * NumEntriesPerRow, boolean StaticProfile );

/*! @brief Wrapper for 
   Epetra_CrsMatrix::Epetra_CrsMatrix(Epetra_DataAccess CV, const Epetra_Map& RowMap, int NumEntriesPerRow, bool StaticProfile = false)
*/
CT_Epetra_CrsMatrix_ID_t Epetra_CrsMatrix_Create ( 
  CT_Epetra_DataAccess_E_t CV, CT_Epetra_Map_ID_t RowMapID, 
  int NumEntriesPerRow, boolean StaticProfile );

/*! @brief Wrapper for 
   Epetra_CrsMatrix::Epetra_CrsMatrix(Epetra_DataAccess CV, const Epetra_Map& RowMap, const Epetra_Map& ColMap, const int* NumEntriesPerRow, bool StaticProfile = false)
*/
CT_Epetra_CrsMatrix_ID_t Epetra_CrsMatrix_Create_VarPerRow_WithColMap ( 
  CT_Epetra_DataAccess_E_t CV, CT_Epetra_Map_ID_t RowMapID, 
  CT_Epetra_Map_ID_t ColMapID, const int * NumEntriesPerRow, 
  boolean StaticProfile );

/*! @brief Wrapper for 
   Epetra_CrsMatrix::Epetra_CrsMatrix(Epetra_DataAccess CV, const Epetra_Map& RowMap, const Epetra_Map& ColMap, int NumEntriesPerRow, bool StaticProfile = false)
*/
CT_Epetra_CrsMatrix_ID_t Epetra_CrsMatrix_Create_WithColMap ( 
  CT_Epetra_DataAccess_E_t CV, CT_Epetra_Map_ID_t RowMapID, 
  CT_Epetra_Map_ID_t ColMapID, int NumEntriesPerRow, 
  boolean StaticProfile );

/*! @brief Wrapper for 
   Epetra_CrsMatrix::Epetra_CrsMatrix(Epetra_DataAccess CV, const Epetra_CrsGraph& Graph)
*/
CT_Epetra_CrsMatrix_ID_t Epetra_CrsMatrix_Create_FromGraph ( 
  CT_Epetra_DataAccess_E_t CV, CT_Epetra_CrsGraph_ID_t GraphID );

/*! @brief Wrapper for 
   Epetra_CrsMatrix::Epetra_CrsMatrix(const Epetra_CrsMatrix& Matrix)
*/
CT_Epetra_CrsMatrix_ID_t Epetra_CrsMatrix_Duplicate ( 
  CT_Epetra_CrsMatrix_ID_t MatrixID );

/*@}*/

/*! @name Epetra_CrsMatrix destructor wrappers */
/*@{*/

/*! @brief Wrapper for 
   virtual Epetra_CrsMatrix::~Epetra_CrsMatrix()
*/
void Epetra_CrsMatrix_Destroy ( CT_Epetra_CrsMatrix_ID_t * selfID );

/*@}*/

/*! @name Epetra_CrsMatrix member wrappers */
/*@{*/

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::PutScalar(double ScalarConstant)
*/
int Epetra_CrsMatrix_PutScalar ( 
  CT_Epetra_CrsMatrix_ID_t selfID, double ScalarConstant );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::Scale(double ScalarConstant)
*/
int Epetra_CrsMatrix_Scale ( 
  CT_Epetra_CrsMatrix_ID_t selfID, double ScalarConstant );

/*! @brief Wrapper for 
   virtual int Epetra_CrsMatrix::InsertGlobalValues(int GlobalRow, int NumEntries, double* Values, int* Indices)
*/
int Epetra_CrsMatrix_InsertGlobalValues ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int GlobalRow, int NumEntries, 
  double * Values, int * Indices );

/*! @brief Wrapper for 
   virtual int Epetra_CrsMatrix::ReplaceGlobalValues(int GlobalRow, int NumEntries, double* Values, int* Indices)
*/
int Epetra_CrsMatrix_ReplaceGlobalValues ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int GlobalRow, int NumEntries, 
  double * Values, int * Indices );

/*! @brief Wrapper for 
   virtual int Epetra_CrsMatrix::SumIntoGlobalValues(int GlobalRow, int NumEntries, double* Values, int* Indices)
*/
int Epetra_CrsMatrix_SumIntoGlobalValues ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int GlobalRow, int NumEntries, 
  double * Values, int * Indices );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::InsertMyValues(int MyRow, int NumEntries, double* Values, int* Indices)
*/
int Epetra_CrsMatrix_InsertMyValues ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int MyRow, int NumEntries, 
  double * Values, int * Indices );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::ReplaceMyValues(int MyRow, int NumEntries, double* Values, int* Indices)
*/
int Epetra_CrsMatrix_ReplaceMyValues ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int MyRow, int NumEntries, 
  double * Values, int * Indices );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::SumIntoMyValues(int MyRow, int NumEntries, double* Values, int* Indices)
*/
int Epetra_CrsMatrix_SumIntoMyValues ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int MyRow, int NumEntries, 
  double * Values, int * Indices );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::ReplaceDiagonalValues(const Epetra_Vector& Diagonal)
*/
int Epetra_CrsMatrix_ReplaceDiagonalValues ( 
  CT_Epetra_CrsMatrix_ID_t selfID, CT_Epetra_Vector_ID_t DiagonalID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::FillComplete(bool OptimizeDataStorage = true)
*/
int Epetra_CrsMatrix_FillComplete ( 
  CT_Epetra_CrsMatrix_ID_t selfID, boolean OptimizeDataStorage );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::FillComplete(const Epetra_Map& DomainMap, const Epetra_Map& RangeMap, bool OptimizeDataStorage = true)
*/
int Epetra_CrsMatrix_FillComplete_UsingMaps ( 
  CT_Epetra_CrsMatrix_ID_t selfID, CT_Epetra_Map_ID_t DomainMapID, 
  CT_Epetra_Map_ID_t RangeMapID, boolean OptimizeDataStorage );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::OptimizeStorage()
*/
int Epetra_CrsMatrix_OptimizeStorage ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::MakeDataContiguous()
*/
int Epetra_CrsMatrix_MakeDataContiguous ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::ExtractGlobalRowCopy(int GlobalRow, int Length, int& NumEntries, double* Values, int* Indices) const
*/
int Epetra_CrsMatrix_ExtractGlobalRowCopy_WithIndices ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int GlobalRow, int Length, 
  int * NumEntries, double * Values, int * Indices );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::ExtractMyRowCopy(int MyRow, int Length, int& NumEntries, double* Values, int* Indices) const
*/
int Epetra_CrsMatrix_ExtractMyRowCopy_WithIndices ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int MyRow, int Length, 
  int * NumEntries, double * Values, int * Indices );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::ExtractGlobalRowCopy(int GlobalRow, int Length, int& NumEntries, double* Values) const
*/
int Epetra_CrsMatrix_ExtractGlobalRowCopy ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int GlobalRow, int Length, 
  int * NumEntries, double * Values );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::ExtractMyRowCopy(int MyRow, int Length, int& NumEntries, double* Values) const
*/
int Epetra_CrsMatrix_ExtractMyRowCopy ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int MyRow, int Length, 
  int * NumEntries, double * Values );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::ExtractDiagonalCopy(Epetra_Vector& Diagonal) const
*/
int Epetra_CrsMatrix_ExtractDiagonalCopy ( 
  CT_Epetra_CrsMatrix_ID_t selfID, CT_Epetra_Vector_ID_t DiagonalID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::ExtractGlobalRowView(int GlobalRow, int& NumEntries, double*& Values, int*& Indices) const
*/
int Epetra_CrsMatrix_ExtractGlobalRowView_WithIndices ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int GlobalRow, int * NumEntries, 
  double ** Values, int ** Indices );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::ExtractMyRowView(int MyRow, int& NumEntries, double*& Values, int*& Indices) const
*/
int Epetra_CrsMatrix_ExtractMyRowView_WithIndices ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int MyRow, int * NumEntries, 
  double ** Values, int ** Indices );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::ExtractGlobalRowView(int GlobalRow, int& NumEntries, double*& Values) const
*/
int Epetra_CrsMatrix_ExtractGlobalRowView ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int GlobalRow, int * NumEntries, 
  double ** Values );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::ExtractMyRowView(int MyRow, int& NumEntries, double*& Values) const
*/
int Epetra_CrsMatrix_ExtractMyRowView ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int MyRow, int * NumEntries, 
  double ** Values );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::Multiply(bool TransA, const Epetra_Vector& x, Epetra_Vector& y) const
*/
int Epetra_CrsMatrix_Multiply_Vector ( 
  CT_Epetra_CrsMatrix_ID_t selfID, boolean TransA, 
  CT_Epetra_Vector_ID_t xID, CT_Epetra_Vector_ID_t yID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::Multiply1(bool TransA, const Epetra_Vector& x, Epetra_Vector& y) const
*/
int Epetra_CrsMatrix_Multiply1_Vector ( 
  CT_Epetra_CrsMatrix_ID_t selfID, boolean TransA, 
  CT_Epetra_Vector_ID_t xID, CT_Epetra_Vector_ID_t yID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::Multiply(bool TransA, const Epetra_MultiVector& X, Epetra_MultiVector& Y) const
*/
int Epetra_CrsMatrix_Multiply_MultiVector ( 
  CT_Epetra_CrsMatrix_ID_t selfID, boolean TransA, 
  CT_Epetra_MultiVector_ID_t XID, CT_Epetra_MultiVector_ID_t YID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::Multiply1(bool TransA, const Epetra_MultiVector& X, Epetra_MultiVector& Y) const
*/
int Epetra_CrsMatrix_Multiply1_MultiVector ( 
  CT_Epetra_CrsMatrix_ID_t selfID, boolean TransA, 
  CT_Epetra_MultiVector_ID_t XID, CT_Epetra_MultiVector_ID_t YID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::Solve(bool Upper, bool Trans, bool UnitDiagonal, const Epetra_Vector& x, Epetra_Vector& y) const
*/
int Epetra_CrsMatrix_Solve_Vector ( 
  CT_Epetra_CrsMatrix_ID_t selfID, boolean Upper, boolean Trans, 
  boolean UnitDiagonal, CT_Epetra_Vector_ID_t xID, 
  CT_Epetra_Vector_ID_t yID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::Solve(bool Upper, bool Trans, bool UnitDiagonal, const Epetra_MultiVector& X, Epetra_MultiVector& Y) const
*/
int Epetra_CrsMatrix_Solve_MultiVector ( 
  CT_Epetra_CrsMatrix_ID_t selfID, boolean Upper, boolean Trans, 
  boolean UnitDiagonal, CT_Epetra_MultiVector_ID_t XID, 
  CT_Epetra_MultiVector_ID_t YID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::InvRowSums(Epetra_Vector& x) const
*/
int Epetra_CrsMatrix_InvRowSums ( 
  CT_Epetra_CrsMatrix_ID_t selfID, CT_Epetra_Vector_ID_t xID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::InvRowMaxs(Epetra_Vector& x) const
*/
int Epetra_CrsMatrix_InvRowMaxs ( 
  CT_Epetra_CrsMatrix_ID_t selfID, CT_Epetra_Vector_ID_t xID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::LeftScale(const Epetra_Vector& x)
*/
int Epetra_CrsMatrix_LeftScale ( 
  CT_Epetra_CrsMatrix_ID_t selfID, CT_Epetra_Vector_ID_t xID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::InvColSums(Epetra_Vector& x) const
*/
int Epetra_CrsMatrix_InvColSums ( 
  CT_Epetra_CrsMatrix_ID_t selfID, CT_Epetra_Vector_ID_t xID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::InvColMaxs(Epetra_Vector& x) const
*/
int Epetra_CrsMatrix_InvColMaxs ( 
  CT_Epetra_CrsMatrix_ID_t selfID, CT_Epetra_Vector_ID_t xID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::RightScale(const Epetra_Vector& x)
*/
int Epetra_CrsMatrix_RightScale ( 
  CT_Epetra_CrsMatrix_ID_t selfID, CT_Epetra_Vector_ID_t xID );

/*! @brief Wrapper for 
   bool Epetra_CrsMatrix::Filled() const
*/
boolean Epetra_CrsMatrix_Filled ( CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   bool Epetra_CrsMatrix::StorageOptimized() const
*/
boolean Epetra_CrsMatrix_StorageOptimized ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   bool Epetra_CrsMatrix::IndicesAreGlobal() const
*/
boolean Epetra_CrsMatrix_IndicesAreGlobal ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   bool Epetra_CrsMatrix::IndicesAreLocal() const
*/
boolean Epetra_CrsMatrix_IndicesAreLocal ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   bool Epetra_CrsMatrix::IndicesAreContiguous() const
*/
boolean Epetra_CrsMatrix_IndicesAreContiguous ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   bool Epetra_CrsMatrix::LowerTriangular() const
*/
boolean Epetra_CrsMatrix_LowerTriangular ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   bool Epetra_CrsMatrix::UpperTriangular() const
*/
boolean Epetra_CrsMatrix_UpperTriangular ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   bool Epetra_CrsMatrix::NoDiagonal() const
*/
boolean Epetra_CrsMatrix_NoDiagonal ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   double Epetra_CrsMatrix::NormInf() const
*/
double Epetra_CrsMatrix_NormInf ( CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   double Epetra_CrsMatrix::NormOne() const
*/
double Epetra_CrsMatrix_NormOne ( CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   double Epetra_CrsMatrix::NormFrobenius() const
*/
double Epetra_CrsMatrix_NormFrobenius ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::NumGlobalNonzeros() const
*/
int Epetra_CrsMatrix_NumGlobalNonzeros ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::NumGlobalRows() const
*/
int Epetra_CrsMatrix_NumGlobalRows ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::NumGlobalCols() const
*/
int Epetra_CrsMatrix_NumGlobalCols ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::NumGlobalDiagonals() const
*/
int Epetra_CrsMatrix_NumGlobalDiagonals ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::NumMyNonzeros() const
*/
int Epetra_CrsMatrix_NumMyNonzeros ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::NumMyRows() const
*/
int Epetra_CrsMatrix_NumMyRows ( CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::NumMyCols() const
*/
int Epetra_CrsMatrix_NumMyCols ( CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::NumMyDiagonals() const
*/
int Epetra_CrsMatrix_NumMyDiagonals ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::NumGlobalEntries(int Row) const
*/
int Epetra_CrsMatrix_NumGlobalEntries ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int Row );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::NumAllocatedGlobalEntries(int Row) const
*/
int Epetra_CrsMatrix_NumAllocatedGlobalEntries ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int Row );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::MaxNumEntries() const
*/
int Epetra_CrsMatrix_MaxNumEntries ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::GlobalMaxNumEntries() const
*/
int Epetra_CrsMatrix_GlobalMaxNumEntries ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::NumMyEntries(int Row) const
*/
int Epetra_CrsMatrix_NumMyEntries ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int Row );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::NumAllocatedMyEntries(int Row) const
*/
int Epetra_CrsMatrix_NumAllocatedMyEntries ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int Row );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::IndexBase() const
*/
int Epetra_CrsMatrix_IndexBase ( CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   bool Epetra_CrsMatrix::StaticGraph()
*/
boolean Epetra_CrsMatrix_StaticGraph ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   const Epetra_CrsGraph& Epetra_CrsMatrix::Graph() const
*/
CT_Epetra_CrsGraph_ID_t Epetra_CrsMatrix_Graph ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   const Epetra_Map& Epetra_CrsMatrix::RowMap() const
*/
CT_Epetra_Map_ID_t Epetra_CrsMatrix_RowMap ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::ReplaceRowMap(const Epetra_BlockMap& newmap)
*/
int Epetra_CrsMatrix_ReplaceRowMap ( 
  CT_Epetra_CrsMatrix_ID_t selfID, CT_Epetra_BlockMap_ID_t newmapID );

/*! @brief Wrapper for 
   bool Epetra_CrsMatrix::HaveColMap() const
*/
boolean Epetra_CrsMatrix_HaveColMap ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::ReplaceColMap(const Epetra_BlockMap& newmap)
*/
int Epetra_CrsMatrix_ReplaceColMap ( 
  CT_Epetra_CrsMatrix_ID_t selfID, CT_Epetra_BlockMap_ID_t newmapID );

/*! @brief Wrapper for 
   const Epetra_Map& Epetra_CrsMatrix::ColMap() const
*/
CT_Epetra_Map_ID_t Epetra_CrsMatrix_ColMap ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   const Epetra_Map& Epetra_CrsMatrix::DomainMap() const
*/
CT_Epetra_Map_ID_t Epetra_CrsMatrix_DomainMap ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   const Epetra_Map& Epetra_CrsMatrix::RangeMap() const
*/
CT_Epetra_Map_ID_t Epetra_CrsMatrix_RangeMap ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   const Epetra_Import* Epetra_CrsMatrix::Importer() const
*/
CT_Epetra_Import_ID_t Epetra_CrsMatrix_Importer ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   const Epetra_Export* Epetra_CrsMatrix::Exporter() const
*/
CT_Epetra_Export_ID_t Epetra_CrsMatrix_Exporter ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   const Epetra_Comm& Epetra_CrsMatrix::Comm() const
*/
CT_Epetra_Comm_ID_t Epetra_CrsMatrix_Comm ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::LRID( int GRID_in) const
*/
int Epetra_CrsMatrix_LRID ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int GRID_in );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::GRID( int LRID_in) const
*/
int Epetra_CrsMatrix_GRID ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int LRID_in );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::LCID( int GCID_in) const
*/
int Epetra_CrsMatrix_LCID ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int GCID_in );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::GCID( int LCID_in) const
*/
int Epetra_CrsMatrix_GCID ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int LCID_in );

/*! @brief Wrapper for 
   bool Epetra_CrsMatrix::MyGRID(int GRID_in) const
*/
boolean Epetra_CrsMatrix_MyGRID ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int GRID_in );

/*! @brief Wrapper for 
   bool Epetra_CrsMatrix::MyLRID(int LRID_in) const
*/
boolean Epetra_CrsMatrix_MyLRID ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int LRID_in );

/*! @brief Wrapper for 
   bool Epetra_CrsMatrix::MyGCID(int GCID_in) const
*/
boolean Epetra_CrsMatrix_MyGCID ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int GCID_in );

/*! @brief Wrapper for 
   bool Epetra_CrsMatrix::MyLCID(int LCID_in) const
*/
boolean Epetra_CrsMatrix_MyLCID ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int LCID_in );

/*! @brief Wrapper for 
   bool Epetra_CrsMatrix::MyGlobalRow(int GID) const
*/
boolean Epetra_CrsMatrix_MyGlobalRow ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int GID );

/*! @brief Wrapper for 
   const char* Epetra_CrsMatrix::Label() const
*/
const char * Epetra_CrsMatrix_Label ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::SetUseTranspose(bool UseTranspose_in)
*/
int Epetra_CrsMatrix_SetUseTranspose ( 
  CT_Epetra_CrsMatrix_ID_t selfID, boolean UseTranspose_in );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::Apply(const Epetra_MultiVector& X, Epetra_MultiVector& Y) const
*/
int Epetra_CrsMatrix_Apply ( 
  CT_Epetra_CrsMatrix_ID_t selfID, CT_Epetra_MultiVector_ID_t XID, 
  CT_Epetra_MultiVector_ID_t YID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::ApplyInverse(const Epetra_MultiVector& X, Epetra_MultiVector& Y) const
*/
int Epetra_CrsMatrix_ApplyInverse ( 
  CT_Epetra_CrsMatrix_ID_t selfID, CT_Epetra_MultiVector_ID_t XID, 
  CT_Epetra_MultiVector_ID_t YID );

/*! @brief Wrapper for 
   bool Epetra_CrsMatrix::HasNormInf() const
*/
boolean Epetra_CrsMatrix_HasNormInf ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   bool Epetra_CrsMatrix::UseTranspose() const
*/
boolean Epetra_CrsMatrix_UseTranspose ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   const Epetra_Map& Epetra_CrsMatrix::OperatorDomainMap() const
*/
CT_Epetra_Map_ID_t Epetra_CrsMatrix_OperatorDomainMap ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   const Epetra_Map& Epetra_CrsMatrix::OperatorRangeMap() const
*/
CT_Epetra_Map_ID_t Epetra_CrsMatrix_OperatorRangeMap ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::NumMyRowEntries(int MyRow, int& NumEntries) const
*/
int Epetra_CrsMatrix_NumMyRowEntries ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int MyRow, int * NumEntries );

/*! @brief Wrapper for 
   const Epetra_Map& Epetra_CrsMatrix::RowMatrixRowMap() const
*/
CT_Epetra_Map_ID_t Epetra_CrsMatrix_RowMatrixRowMap ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   const Epetra_Map& Epetra_CrsMatrix::RowMatrixColMap() const
*/
CT_Epetra_Map_ID_t Epetra_CrsMatrix_RowMatrixColMap ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   const Epetra_Import* Epetra_CrsMatrix::RowMatrixImporter() const
*/
CT_Epetra_Import_ID_t Epetra_CrsMatrix_RowMatrixImporter ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   const Epetra_Map& Epetra_CrsMatrix::ImportMap() const
*/
CT_Epetra_Map_ID_t Epetra_CrsMatrix_ImportMap ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::TransformToLocal()
*/
int Epetra_CrsMatrix_TransformToLocal ( 
  CT_Epetra_CrsMatrix_ID_t selfID );

/*! @brief Wrapper for 
   int Epetra_CrsMatrix::TransformToLocal(const Epetra_Map* DomainMap, const Epetra_Map* RangeMap)
*/
int Epetra_CrsMatrix_TransformToLocal_UsingMaps ( 
  CT_Epetra_CrsMatrix_ID_t selfID, CT_Epetra_Map_ID_t DomainMapID, 
  CT_Epetra_Map_ID_t RangeMapID );

/*@}*/

/*! @name Epetra_CrsMatrix operator wrappers */
/*@{*/

/*! @brief Wrapper for 
   Epetra_CrsMatrix& Epetra_CrsMatrix::operator=(const Epetra_CrsMatrix& src)
*/
void Epetra_CrsMatrix_Assign ( 
  CT_Epetra_CrsMatrix_ID_t selfID, CT_Epetra_CrsMatrix_ID_t srcID );

/*! @brief Wrapper for 
   inline double* Epetra_CrsMatrix::operator[] (int Loc) const
*/
double * Epetra_CrsMatrix_getRow ( 
  CT_Epetra_CrsMatrix_ID_t selfID, int Loc );

/*@}*/


#ifdef __cplusplus
} /* extern "C" */
#endif


#endif /* CEPETRA_CRSMATRIX_H */