Home / Class/ to_mkl_complex Class — pytorch Architecture

to_mkl_complex Class — pytorch Architecture

Architecture documentation for the to_mkl_complex class in SparseBlas.cpp from the pytorch codebase.

Entity Profile

Source Code

aten/src/ATen/mkl/SparseBlas.cpp lines 12–18

template <typename scalar_t, typename MKL_Complex>
MKL_Complex to_mkl_complex(c10::complex<scalar_t> scalar) {
  MKL_Complex mkl_scalar;
  mkl_scalar.real = scalar.real();
  mkl_scalar.imag = scalar.imag();
  return mkl_scalar;
}

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free