Skip to main content
Ctrl+K
Warp 1.11.0 - Home Warp 1.11.0 - Home

Warp 1.11.0

  • GitHub
  • PyPI
Warp 1.11.0 - Home Warp 1.11.0 - Home

Warp 1.11.0

  • GitHub
  • PyPI

Table of Contents

User Guide

  • Installation
  • Basics
  • Runtime
  • Devices
  • Differentiability
  • Generics
  • Tiles
  • Interoperability
  • Configuration
  • Debugging
  • Limitations
  • Contribution Guide
  • Publications using Warp
  • Compatibility & Support
  • FAQ
  • Changelog

Deep Dive

  • Code Generation
  • Allocators
  • Concurrency
  • Profiling

Domain Modules

  • Sparse Matrices
  • FEM Toolkit
  • Rendering

API Reference

  • warp
  • warp.autograd
  • warp.config
  • warp.fem
  • warp.jax_experimental
  • warp.optim
  • warp.render
  • warp.sparse
  • warp.types
  • warp.utils

Language Reference

  • Built-Ins

Project Links

  • GitHub
  • PyPI
  • warp.optim
  • warp.optim.linear
  • warp.optim.linear.aslinearoperator

warp.optim.linear.aslinearoperator#

warp.optim.linear.aslinearoperator(A)[source]#

Casts the dense or sparse matrix A as a LinearOperator

A must be of one of the following types:

  • warp.sparse.BsrMatrix

  • two-dimensional warp.array; then A is assumed to be a dense matrix

  • one-dimensional warp.array; then A is assumed to be a diagonal matrix

  • warp.optim.linear.LinearOperator; no casting necessary

Parameters:

A (array | BsrMatrix | LinearOperator)

Return type:

LinearOperator

previous

warp.optim.linear.LinearOperator

next

warp.optim.linear.bicgstab

On this page
  • aslinearoperator()
Edit on GitHub
NVIDIA NVIDIA

Copyright © 2022-2026 NVIDIA Corporation.