Testing Latex and Code

math
c++
cuda
Author

solitary_crow

Published

August 6, 2025

Latex in markdown

\[x = 1\] \[\frac{1}{x} = 2\]

Code in markdown

def sum(seq):
    accu = 0
    for i in seq:
        accu += i
    return accu
#define TENSOR_CHECK(expression) {      \
    tensorError_t status = expression;  \
    if (status != tensorSuccess) {      \
        std::cerr << "[ERROR] "         \
        << tensorGetErrorString(status) \
        << " in file "                  \
        << __FILE__                     \
        << " at line "                  \
        << __LINE__                     \
        << std::endl; }                 \
}