init(diagonal:)

Creates a diagonal matrix with s on the diagonal and zeros elsewhere.

Declaration

init(diagonal s: Double)