Table of Contents

Class SymmetricMultiply

Namespace
NVMathNet.LinAlg
Assembly
NVMath.Net.dll

Stateless helpers for cuBLAS symmetric matrix-matrix multiply (SYMM): C = alpha * A * B + beta * C (side=Left) or C = alpha * B * A + beta * C (side=Right) where A is symmetric, in column-major layout.

public static class SymmetricMultiply

Inheritance

Inherited Members

Methods

DsymmAsync(DeviceBuffer<double>, DeviceBuffer<double>, DeviceBuffer<double>, int, int, double, double, bool, bool, CudaStream?, CancellationToken)

Symmetric matrix-matrix multiply (double-precision, async).

public static Task DsymmAsync(DeviceBuffer<double> a, DeviceBuffer<double> b, DeviceBuffer<double> c, int m, int n, double alpha = 1, double beta = 0, bool leftSide = true, bool upper = false, CudaStream? stream = null, CancellationToken ct = default)

Parameters

a DeviceBuffer<double>
b DeviceBuffer<double>
c DeviceBuffer<double>
m int
n int
alpha double
beta double
leftSide bool
upper bool
stream CudaStream?
ct CancellationToken

Returns

Task

SsymmAsync(DeviceBuffer<float>, DeviceBuffer<float>, DeviceBuffer<float>, int, int, float, float, bool, bool, CudaStream?, CancellationToken)

Symmetric matrix-matrix multiply (single-precision, async).

public static Task SsymmAsync(DeviceBuffer<float> a, DeviceBuffer<float> b, DeviceBuffer<float> c, int m, int n, float alpha = 1, float beta = 0, bool leftSide = true, bool upper = false, CudaStream? stream = null, CancellationToken ct = default)

Parameters

a DeviceBuffer<float>

Device buffer for symmetric matrix A.

b DeviceBuffer<float>

Device buffer for matrix B (m×n).

c DeviceBuffer<float>

Device buffer for matrix C (m×n), updated in place.

m int

Rows of B and C.

n int

Columns of B and C.

alpha float

Scalar multiplier for A*B. Default: 1.

beta float

Scalar multiplier for existing C. Default: 0.

leftSide bool

If true, A is on the left (AB); if false, right (BA).

upper bool

If true, upper triangle of A is stored; otherwise lower.

stream CudaStream?

Optional CUDA stream.

ct CancellationToken

Cancellation token.

Returns

Task