MatrixSetDiag.Options

public static class MatrixSetDiag.Options

Optional attributes for MatrixSetDiag

Public Methods

MatrixSetDiag.Options
align(String align)

Inherited Methods

Public Methods

public MatrixSetDiag.Options align (String align)

Parameters
align Some diagonals are shorter than `max_diag_len` and need to be padded. `align` is a string specifying how superdiagonals and subdiagonals should be aligned, respectively. There are four possible alignments: "RIGHT_LEFT" (default), "LEFT_RIGHT", "LEFT_LEFT", and "RIGHT_RIGHT". "RIGHT_LEFT" aligns superdiagonals to the right (left-pads the row) and subdiagonals to the left (right-pads the row). It is the packing format LAPACK uses. cuSPARSE uses "LEFT_RIGHT", which is the opposite alignment.