bettercmath ~master (2021-10-22T22:55:25.7546802)
Dub
Repo
Matrix.fromDiagonal
bettercmath
matrix
Matrix
Constructs a Matrix with diagonal values from
diag
and all others equal to 0.
Matrix
fromDiagonal
(T diag)
Matrix
fromDiagonal
(T[N] diag)
struct
Matrix
(T, uint numColumns, uint numRows = numColumns)
static
Matrix
fromDiagonal
(
uint
N
)
(
const
auto
ref
T
[
N
]
diag
)
if
(
N
<=
minDimension
)
if
(
numColumns
> 0 &&
numRows
> 0
)
Meta
Source
See Implementation
bettercmath
matrix
Matrix
aliases
ElementType
ortho
constructors
this
enums
opDollar
functions
columns
copyInto
opBinary
opCast
opIndex
opOpAssign
rows
manifest constants
columnSize
identity
isSquare
minDimension
numElements
rowSize
static functions
fromColumns
fromDiagonal
fromRows
orthographic
perspective
perspectiveDegrees
variables
elements
Constructs a Matrix with diagonal values from diag and all others equal to 0.