Elemental
0.86
Introduction
A brief tour of the library
Build system
Core functionality
BLAS-like linear algebra
Level 1
Adjoint
AdjointContract
AdjointAxpy
AdjointAxpyContract
AllReduce
Axpy
AxpyTrapezoid
Broadcast
Conjugate
ConjugateDiagonal
ConjugateSubmatrix
Copy
DiagonalScale
DiagonalScaleTrapezoid
DiagonalSolve
Dot
Dotu
EntrywiseFill
EntrywiseMap
Fill
FillDiagonal
GetDiagonal
GetMappedDiagonal
C++ API
C API
Python API
GetSubmatrix
Hadamard
HilbertSchmidt
IndexDependentFill
IndexDependentMap
MakeTrapezoidal
Max
MaxAbs
Min
MinAbs
Nrm2
QuasiDiagonalScale
QuasiDiagonalSolve
Reshape
Scale
ScaleTrapezoid
SetDiagonal
SetSubmatrix
ShiftDiagonal
Swap
Symmetric2x2Scale
Symmetric2x2Solve
Transpose
TransposeAxpyContract
TransposeContract
UpdateDiagonal
UpdateSubmatrix
Zero
Level 2
Level 3
Tuning parameters
LAPACK-like linear algebra
Optimization
Control theory
Special matrices
Input/output
Indices
Elemental
Docs
»
BLAS-like linear algebra
»
Level 1
»
GetMappedDiagonal
View page source
GetMappedDiagonal
¶
Return a function of a diagonal of a matrix as a vector.
C++ API
¶
void
GetMappedDiagonal
(
const
Matrix<T> &
A
, Matrix<S> &
d
, std::function<S
(
T
)
>
func
,
Int
offset
= 0,
)
¶
void
GetMappedDiagonal
(
const
DistMatrix<T, U, V> &
A
, AbstractDistMatrix<S> &
d
, std::function<S
(
T
)
>
func
,
Int
offset
= 0,
)
¶
C API
¶
TODO
Python API
¶
TODO