Developer Reference

Intel® oneAPI Math Kernel Library LAPACK Examples

ID 766877
Date 12/20/2021
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

SGELS Example

The routine solves overdetermined or underdetermined real linear systems involving a rectangular matrix A, or its transpose, using a QR or LQ factorization of A. The routine assumes that A has full rank.

Several right-hand side vectors b and solution vectors x can be handled in a single call; they are stored as the columns of the right-hand side matrix B and the solution matrix X.

C Interface

Please refer to the Matrix Layout section of the C Interface Conventions for the description of Row Major (C default) and Column Major (Fortran default).