{ } Raw JSON

bundles / scipy 1.17.1 / scipy / sparse / linalg / _matfuncs / _smart_matrix_product

function

scipy.sparse.linalg._matfuncs:_smart_matrix_product

source: /scipy/sparse/linalg/_matfuncs.py :128

Signature

def   _smart_matrix_product ( A B alpha = None structure = None )

Summary

A matrix product that knows about sparse and structured matrices.

Parameters

A : 2d ndarray

First matrix.

B : 2d ndarray

Second matrix.

alpha : float

The matrix product will be scaled by this constant.

structure : str, optional

A string describing the structure of both matrices A and B. Only upper_triangular is currently supported.

Returns

M : 2d ndarray

Matrix product of A and B.

Aliases

  • scipy.sparse.linalg._matfuncs._smart_matrix_product