6

I have difficulties to create a Householder matrix.

  M = \left(
    \begin{array}{c | c c c c}
      1 & 0 & 0 & 0 & 0 \\ \hline
      0 &  \\
      0 & H_{u} \in \mathbb{R}^{4 \times 4} \\
      0 &  \\
      0 &  \\
    \end{array}
    \right)

Enter image description here

7
  • 2
    You can use nicematrix package.
    – Sebastiano
    Jan 1, 2021 at 21:14
  • 2
    Thanks, I never used Jan 1, 2021 at 21:16
  • @Gianni Spear What does the final outcome have to look like ? or is it about the zeros placement on the top line ?
    – mxnc baud
    Jan 1, 2021 at 21:19
  • 1
    Hey. The final outcome is a matrix with Hu in R^{4 x 4} centered and the first row of zeros in order (i.e., with equal spaces) Jan 1, 2021 at 21:22
  • 1
    @Sebastiano it'd be great to see an answer using the nicematrix package, if you have time :)
    – cmhughes
    Jan 2, 2021 at 10:33

3 Answers 3

11
\documentclass{article}
\usepackage{amssymb,amsmath,multirow}

\begin{document}

\[
 M = \left(
    \begin{array}{c | c c c c}
      1 & 0 & 0 & 0 & 0 \\ \hline
      0 & \multicolumn{4}{c}{\multirow{4}{*}{$H_{u}\in\mathbb{R}^{4\times4}$}} \\
      0 & \\
      0 & \\
      0 & \\
    \end{array}
    \right)
\]

\end{document}

enter image description here

14

Nest matrix inside array:

\documentclass{article}
\usepackage{amsmath,amssymb}

\newcommand{\RR}{\mathbb{R}}

\begin{document}

\[
M=\left(
  \begin{array}{c | c}
  1 & \begin{matrix} 0 & 0 & 0 & 0 \end{matrix} \\
  \hline
  \begin{matrix} 0 \\ 0 \\ 0 \\ 0 \end{matrix} &
  H_u\in\RR^{4\times 4}
  \end{array}
\right)
\]

\end{document}

enter image description here

9

Use:

\documentclass{article}
\usepackage{amsmath,amssymb}
\usepackage{nicematrix}


\begin{document}

$M=\begin{pNiceArray}{c|cccc}[margin]
1 & 0 & 0 & 0  & 0\\
\hline
0 &   &  &  &\\
0 &   \Block[l]{3-3}<\large>{H_{u}\in\mathbb{R}^{4\times4}}&  &  &\\
0 &  &  &   &\\
0 &  &  &   & 
\end{pNiceArray}$

\end{document}

Enter image description here

3
  • 2
    Nicely done :) +1 from me
    – cmhughes
    Jan 2, 2021 at 12:31
  • 2
    +1: Same from me Jan 3, 2021 at 3:01
  • @Dr.ManuelKuehner Thank you very much and my sincere best regards.
    – Sebastiano
    Jan 3, 2021 at 11:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .