Skip to content

Conversation

@lukas-valenta-tul
Copy link
Collaborator

@lukas-valenta-tul lukas-valenta-tul commented Jan 7, 2026

  • Pomocí knihovny Eigen a šablonové techniky implementujte operace:

    • Normy: 1, 2, infty, frobenius
    • Reductions: sum, min, max
    • Vektorový součin, cross(u,v)
    • Transpose, A.T
    • sym(A)=(A+A.T)/2, dev(A) = A - trace(A)/D * I
    • Det, inv, cofactor for 2x2 and 3x3 matrices
  • Porovnejte rychlost vyhodnocení v BParseru vůči C++ implementaci a vůči Numpy pro vybrané komplexní operace.

    • “sum(A*B)”
    • norm(v, 2)
    • cross(u,v)
    • inv(A)).
  • Implementujte funkce pro výpis a načtení acyklického grafu operací.

    • DOT (graphiz)
    • C++
  • Pro vybrané komplexní operace proveďte manuální optimalizaci jejich grafů včetně použití sdružených elementárních operací (např: Y += a * b).

  • Implementujte uspořádání grafu operací do kanonické formy pro jednodušší vyhledávání možných sdružených operací.

  • Implementujte vyhledávání a aplikaci sdružených operací.

@lukas-valenta-tul lukas-valenta-tul self-assigned this Jan 7, 2026
CMakeLists.txt Outdated

macro(define_nit_gen make_name def_file gen_file)
set(src_name "nitpick_generate")
set(nit_source "${CMAKE_CURRENT_SOURCE_DIR}/nitpick/${src_name}.cc")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simplify

CMakeLists.txt Outdated
define_test(test_speed bparser)
define_test(test_simd)

macro(define_nit_gen make_name def_file gen_file)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

zrusit def_file, gen_file jako samostatne parametry; odvodit of make_name

CMakeLists.txt Outdated
define_nit_run(${make_name} ${def_file} ${gen_file})
endmacro()

define_nit(basic_expr basic_expr_def.hh basic_expr_gen.hh)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

define_nit_test(basic_expr)
define_nit_test(norm2)

define_nit_test = define_nit

CMakeLists.txt Outdated
macro(define_nit make_name def_file gen_file)
define_nit_gen(${make_name} ${def_file} ${gen_file})

define_nit_run(${make_name} ${def_file} ${gen_file})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Define nit_run vzdy pro *gen_ref.h a pro *_gen_edit.h.

CMakeLists.txt Outdated
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/cases")
endmacro()

macro(define_nit_run make_name def_file gen_file)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

zrusit def_file odvozeny make_name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants