{ "cells": [ { "cell_type": "markdown", "id": "f8eb3ccc", "metadata": {}, "source": [ "# How to construct matrix\n", "| |know shape at compile time | NOT know |\n", "|--|--|--|\n", "| small size (around 4x4) | Matrix m | Matrix m|\n", "| large size | Matrix m(rows, cols) | Matrix m |\n", "\n", "# Difference of block operator\n", "\n", "m.block(i, j)\n", "\n", "m.block " ] }, { "cell_type": "code", "execution_count": null, "id": "fc45928a", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.0" } }, "nbformat": 4, "nbformat_minor": 5 }