<!--
{
  "availability" : [
    "iOS: 8.0.0 - 14.0.0",
    "iPadOS: 8.0.0 - 14.0.0",
    "macCatalyst: 13.1.0 - 14.0.0",
    "macOS: 10.10.0 - 11.0.0",
    "tvOS: 8.0.0 - 14.0.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 1.0.0 - 7.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/la_status(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@la_status"
  },
  "title" : "la_status(_:)"
}
-->

# la_status(_:)

```
func la_status(_ object: la_object_t) -> la_status_t
```

## Parameters

`object`

The object whose status is being requested.

## Return Value

The status of the supplied object.

## Discussion\abstract Query the status of an la_object.
\discussion Returns the status of a LinearAlgebra object.  The status will be
one of the codes defined in LinearAlgebra/base.h.  New status codes may be
added in the future, but the following basic principle will continue to hold:
zero indicates success, status codes greater than zero are warnings, and
status codes less than zero are errors.  Thus, careful error handling
might look like the following:

la_status_t status = la_status(result_object);
if (status == LA_SUCCESS) {
// Everything is copacetic.  Get your data from result_object.
} else if (status > 0) {
// No errors occured, but the result does not have full accuracy due to
// numerical considerations.  Here, you might re-compute the result using
// a more careful or stable algorithm.
} else {
// An error occured.  Something is seriously amiss and you will need
// to handle it however makes sense for your application.
}

Note that errors and warnings are propagated.  In general, there is no need
to check the status of each subcomputation.  Rather, the preferred idiom is
to do a complete computation, then check to see if anything went wrong.
Querying status may force evaluation of parts of your computation that might
otherwise be deferred until their results were actually needed.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)