You are reading something into what I said that I wasn't saying. Yes, I think that one simple step is better than several more complicated steps. But as Einstein said, make things as simple as possible but not simpler. Obviously there are many cases where you really need multiple steps. In those cases trying to cram everything into one step is as bad as trying to cram too much into one line of code. You will get no disagreement on that from me!
Still, and I am speaking here as someone who has taught linear algebra at the university level, the solution that I presented is the textbook solution to this type of problem. The only concepts that you need are that you can put a coordinate system on your subspace starting with a finite set of points (you need one more than the dimension of the space), and then use that coordinate system to write down the affine transformation if you know where those points go.
I won't put any more effort into trying to convince you of the merits of the textbook solution. This is a programming forum, not a mathematics class. Nor does it seem productive to continue to respond if you read this post as saying something else that I didn't say. So unless someone has a genuine question, I am leaving this conversation.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.